]> Creatis software - clitk.git/blob - vv/vvProgressDialog.h
removed headers
[clitk.git] / vv / vvProgressDialog.h
1 #ifndef vvProgressDialog_h
2 #define vvProgressDialog_h
3 #include "ui_vvProgressDialog.h"
4 #include <string>
5
6 class vvProgressDialog : public QDialog, private Ui::vvProgressDialog
7 {
8     Q_OBJECT
9
10 public:
11     vvProgressDialog(std::string message,bool show_progress=false) {
12         setupUi(this);
13         textLabel->setText(message.c_str());
14         if (show_progress) 
15             progressBar->show();
16         else 
17             progressBar->hide();
18         this->show();
19     }
20     void Update(std::string message)
21     {
22         textLabel->setText(message.c_str());
23     }
24     void SetProgress(unsigned int current,unsigned int max)
25     {
26         progressBar->setMaximum(max);
27         progressBar->setValue(current);
28     }
29     ~vvProgressDialog() {}
30
31 public slots:
32
33 };
34
35 #endif