1 /**
2 *  Copyright Mikael H�gdahl - triyana@users.sourceforge.net
3 *
4 *  This source is distributed under the terms of the Q Public License version 1.0,
5 *  created by Trolltech (www.trolltech.com).
6 */
7 
8 #ifndef ProgressDlg_h
9 #define ProgressDlg_h
10 
11 #include <fl/Fl_Dialog.h>
12 #include <MHDate.h>
13 #include <FL/Fl_Progress.H>
14 #include <FL/Fl_Box.H>
15 #include <FL/Fl_Button.H>
16 
17 
18 /**
19 *  A work progress dialog.
20 */
21 class ProgressDlg : public Fl_Dialog {
22 public:
23                             ProgressDlg (const char* message, int disableCancel = 1, int disableprogress = 0);
~ProgressDlg()24                             ~ProgressDlg () {hide (); delete aDate;}
25 
26     void                    cb1 ();
27     void                    Value (double v, const char* message);
28 
29 private:
30     char                    aBuffer[100];
31     char                    aBuffer2[100];
32     int                     aDiff;
33     double                  aStart;
34     MHDate*                 aDate;
35     Fl_Box*                 aInfo;
36     Fl_Box*                 aInfo2;
37     Fl_Button*              aCancel;
38     Fl_Progress*            aProgress;
39 
40 };
41 
42 #endif
43