src/dialogs.h

changeset 370
843b3dbbd849
parent 337
4e05207c76c9
child 395
5210bcb1d7e0
equal deleted inserted replaced
369:0060d11e4991 370:843b3dbbd849
36 class CheckBoxGroup; 36 class CheckBoxGroup;
37 class QLabel; 37 class QLabel;
38 class QAbstractButton; 38 class QAbstractButton;
39 class Ui_OverlayUI; 39 class Ui_OverlayUI;
40 class Ui_LDPathUI; 40 class Ui_LDPathUI;
41 class Ui_OpenProgressUI;
41 42
42 class OverlayDialog : public QDialog 43 class OverlayDialog : public QDialog
43 { 44 {
44 Q_OBJECT 45 Q_OBJECT
45 46
88 void slot_tryConfigure(); 89 void slot_tryConfigure();
89 void slot_exit(); 90 void slot_exit();
90 }; 91 };
91 92
92 // ============================================================================= 93 // =============================================================================
93 class OpenProgressDialog : public QDialog { 94 class OpenProgressDialog : public QDialog
95 {
94 Q_OBJECT 96 Q_OBJECT
95 READ_PROPERTY (ulong, progress, setProgress) 97 READ_PROPERTY( ulong, progress, setProgress )
96 DECLARE_PROPERTY (ulong, numLines, setNumLines) 98 DECLARE_PROPERTY( ulong, numLines, setNumLines )
97 99
98 public: 100 public:
99 explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 101 explicit OpenProgressDialog( QWidget* parent = null, Qt::WindowFlags f = 0 );
102 virtual ~OpenProgressDialog();
100 103
101 public slots: 104 public slots:
102 void updateProgress (int progress); 105 void updateProgress (int progress);
103 106
104 private: 107 private:
105 QProgressBar* progressBar; 108 Ui_OpenProgressUI* ui;
106 QLabel* progressText;
107 109
108 void updateValues (); 110 void updateValues ();
109 }; 111 };
110 112
111 #endif // DIALOGS_H 113 #endif // DIALOGS_H

mercurial