UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZmProgress.H
1 /* ZmProgress.H */
2 /* $Id: ZmProgress.H,v 1.4 2009/08/06 10:53:03 vlad Exp $ */
3 #ifndef __ZmProgress_H
4 #define __ZmProgress_H
5 
6 #include <zm/Zm.h>
7 #include <mix/Progress.hpp>
8 
9 
10 /***********************************************************************
11  * Class for maintaining progress indicator window with "Stop" button.
12  * To colorize it let's use next app-defaults lines:
13  * AppName*ProgressShell*Progress.width: 200
14  * AppName*ProgressShell*Progress.foreground: lightgrey
15  * AppName*ProgressShell*Progress.background: aquamarine3
16  * AppName*ProgressShell*Progress.troughColor: lightgrey
17  ***********************************************************************/
18 class ZmProgress : public Progress
19 {
20 public:
21 
24  ZmProgress (Widget wParent, const char* id = "unknown");
25 
27  virtual ~ZmProgress ();
28 
30  //virtual void set_limits (double min_value, double max_value);
31 
33  //virtual void set_value (double cur_value);
34 
36  virtual void set_comment (const char* text);
37 
39  virtual Logic user_break ();
40 
41 protected:
42 
43  Widget wDialogShell;
44  Widget wMainForm;
45  Widget wStageLabel;
46  Widget wSeparator;
47  Widget wBreakButton;
48  Widget wProgress;
51  virtual void update ();
52 
54  static void break_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
55 
57  Logic bUserBreak;
58 
59 };
60 
61 
62 #endif /* ZmProgress.H */
virtual ~ZmProgress()
Logic bUserBreak
Definition: ZmProgress.H:57
Definition: Progress.hpp:16
ZmProgress(Widget wParent, const char *id="unknown")
Widget wProgress
Definition: ZmProgress.H:48
virtual Logic user_break()
Widget wStageLabel
Definition: ZmProgress.H:45
virtual void update()
Widget wBreakButton
Definition: ZmProgress.H:47
virtual void set_comment(const char *text)
static void break_cb(Widget w, XtPointer pUserData, XtPointer pCallData)
Definition: ZmProgress.H:18