21 #ifndef SIMPLEPLUGINPROGRESSWIDGET_H
22 #define SIMPLEPLUGINPROGRESSWIDGET_H
24 #include <QtGui/QDialog>
25 #include <QtGui/QWidget>
26 #include <QtCore/QTime>
28 #include <tulip/PluginProgress.h>
31 class SimplePluginProgressWidgetData;
39 Ui::SimplePluginProgressWidgetData *_ui;
42 void checkLastUpdate();
48 explicit SimplePluginProgressWidget(QWidget *parent=NULL,Qt::WindowFlags f=0);
50 void setComment(
const std::string&);
51 void setComment(
const QString &);
52 void setComment(
const char *);
59 bool isPreviewMode()
const;
60 void setPreviewMode(
bool drawPreview);
61 void showPreview(
bool showPreview);
65 std::string getError();
66 void setError(
const std::string &error);
71 void setPreview(
bool);
76 explicit SimplePluginProgressDialog(QWidget *parent=NULL);
77 virtual ~SimplePluginProgressDialog();
79 void setComment(
const std::string&);
80 void setComment(
const QString &);
81 void setComment(
const char *);
88 bool isPreviewMode()
const;
89 void setPreviewMode(
bool drawPreview);
90 void showPreview(
bool showPreview);
94 std::string getError();
95 void setError(
const std::string &error);
98 tlp::SimplePluginProgressWidget *_progress;
103 #endif // SIMPLEPLUGINPROGRESSWIDGET_H