Mercurial > hg > svgui
comparison widgets/ProgressDialog.h @ 410:33b7f5e54d60
* Merge revisions 1041 to 1130 from sv-rdf-import branch
author | Chris Cannam |
---|---|
date | Thu, 18 Sep 2008 12:09:32 +0000 |
parents | 22b72f0f6a4e |
children | b68f3162b5a8 |
comparison
equal
deleted
inserted
replaced
409:feeb48f7478a | 410:33b7f5e54d60 |
---|---|
27 public: | 27 public: |
28 ProgressDialog(QString message, bool cancellable, | 28 ProgressDialog(QString message, bool cancellable, |
29 int timeBeforeShow = 0, QWidget *parent = 0); | 29 int timeBeforeShow = 0, QWidget *parent = 0); |
30 virtual ~ProgressDialog(); | 30 virtual ~ProgressDialog(); |
31 | 31 |
32 virtual bool isDefinite() const; | |
33 virtual void setDefinite(bool definite); | |
34 | |
35 virtual bool wasCancelled() const; | |
36 | |
32 signals: | 37 signals: |
38 void showing(); | |
33 void cancelled(); | 39 void cancelled(); |
34 | 40 |
35 public slots: | 41 public slots: |
36 virtual void setMessage(QString text); | 42 virtual void setMessage(QString text); |
37 virtual void setProgress(int percentage); | 43 virtual void setProgress(int percentage); |
38 | 44 |
39 protected slots: | 45 protected slots: |
40 virtual void showTimerElapsed(); | 46 virtual void showTimerElapsed(); |
47 void canceled(); | |
41 | 48 |
42 protected: | 49 protected: |
43 QProgressDialog *m_dialog; | 50 QProgressDialog *m_dialog; |
44 QTimer *m_showTimer; | 51 QTimer *m_showTimer; |
45 bool m_timerElapsed; | 52 bool m_timerElapsed; |
53 bool m_cancelled; | |
46 }; | 54 }; |
47 | 55 |
48 #endif | 56 #endif |