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);
49 virtual ~SimplePluginProgressWidget();
51 void setComment(
const std::string&);
52 void setComment(
const QString &);
53 void setComment(
const char *);
60 bool isPreviewMode()
const;
61 void setPreviewMode(
bool drawPreview);
62 void showPreview(
bool showPreview);
66 std::string getError();
67 void setError(
const std::string &error);
70 void setCancelButtonVisible(
bool);
71 void setStopButtonVisible(
bool);
72 void setPreviewButtonVisible(
bool);
77 void setPreview(
bool);
83 explicit SimplePluginProgressDialog(QWidget *parent=NULL);
84 virtual ~SimplePluginProgressDialog();
86 void setComment(
const std::string&);
87 void setComment(
const QString &);
88 void setComment(
const char *);
95 bool isPreviewMode()
const;
96 void setPreviewMode(
bool drawPreview);
97 void showPreview(
bool showPreview);
101 std::string getError();
102 void setError(
const std::string &error);
105 void setCancelButtonVisible(
bool v);
106 void setStopButtonVisible(
bool v);
107 void setPreviewButtonVisible(
bool v);
110 tlp::SimplePluginProgressWidget *_progress;
115 #endif // SIMPLEPLUGINPROGRESSWIDGET_H