UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QfProgress.H
1 /* QfProgress.H */
2 /* $Id: QfProgress.H,v 1.5 2003/11/17 07:51:34 vlad Exp $ */
3 #ifndef __QfProgress_H
4 #define __QfProgress_H
5 
6 #include <mix/Progress.hpp>
7 #include <zm/qvfcdefs.h>
8 #include <zm/QfBrick.H>
9 #include <zm/QfCastle.H>
10 
11 
17 class QfProgress: public QfBrick, public Progress
18 {
19 public:
20 
23  QfProgress (QfCastle* pControlWindow = NULL,
24  const char* szLabel = NULL,
25  const char* szName = QfPROGRESS_NAME);
26 
28  virtual ~QfProgress ();
29 
32  virtual void set_progress_label (const char* szLabel);
33 
36  virtual void set_comment (const char* szLabel);
37 
39  virtual Logic user_break ();
40 
43  /*
44  * Adjustable features.
45  */
46 
48  virtual void set_sensitive (Logic flag);
49 
51  virtual void set_limits (double min_value, double max_value);
52 
54  virtual void set_value (double cur_value);
55 
56 protected:
57 
60  char *szFmtLabel;
61 
63  char *szComment;
64 
68 
70  Widget wLabel, wComment, wProgress;
71 
73  virtual void create_self (Widget wParent);
74 
76  virtual void update ();
77 
79  static void keep_position_cb (Widget w, XtPointer pUserData,
80  XtPointer pCallData);
81 };
82 
83 
84 #endif /* QfProgress.H */
char * szName
Definition: Progress.hpp:54
char * szFmtLabel
Definition: QfProgress.H:60
Widget wLabel
Definition: QfProgress.H:70
virtual void set_progress_label(const char *szLabel)
static void keep_position_cb(Widget w, XtPointer pUserData, XtPointer pCallData)
Definition: QfBrick.H:54
QfProgress(QfCastle *pControlWindow=NULL, const char *szLabel=NULL, const char *szName=QfPROGRESS_NAME)
Definition: QfProgress.H:17
Definition: QfCastle.H:13
virtual void set_comment(const char *szLabel)
Definition: Progress.hpp:16
virtual void set_sensitive(Logic flag)
virtual void update()
virtual void set_limits(double min_value, double max_value)
virtual void create_self(Widget wParent)
virtual void set_value(double cur_value)
virtual ~QfProgress()
char * szComment
Definition: QfProgress.H:63
virtual Logic user_break()
QfCastle * pUserBreakControl
Definition: QfProgress.H:67