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 *);
55 void setTitle(
const std::string &) {}
62 bool isPreviewMode()
const;
63 void setPreviewMode(
bool drawPreview);
64 void showPreview(
bool showPreview);
68 std::string getError();
69 void setError(
const std::string &error);
72 void closeEvent(QCloseEvent *);
75 void setCancelButtonVisible(
bool);
76 void setStopButtonVisible(
bool);
86 explicit SimplePluginProgressDialog(QWidget *parent=NULL);
87 virtual ~SimplePluginProgressDialog();
89 void setComment(
const std::string&);
90 void setComment(
const QString &);
91 void setComment(
const char *);
93 void setTitle(
const std::string &title);
100 bool isPreviewMode()
const;
101 void setPreviewMode(
bool drawPreview);
102 void showPreview(
bool showPreview);
106 std::string getError();
107 void setError(
const std::string &error);
110 void closeEvent(QCloseEvent *);
113 void setCancelButtonVisible(
bool v);
114 void setStopButtonVisible(
bool v);
117 tlp::SimplePluginProgressWidget *_progress;
122 #endif // SIMPLEPLUGINPROGRESSWIDGET_H