21 #ifndef SIMPLEPLUGINPROGRESSWIDGET_H
22 #define SIMPLEPLUGINPROGRESSWIDGET_H
24 #include <tulip/PluginProgress.h>
31 class SimplePluginProgressWidgetData;
41 Ui::SimplePluginProgressWidgetData *_ui;
44 void checkLastUpdate();
50 explicit SimplePluginProgressWidget(QWidget *parent=NULL,Qt::WindowFlags f=0);
51 virtual ~SimplePluginProgressWidget();
53 void setComment(
const std::string&);
54 void setComment(
const QString &);
55 void setComment(
const char *);
57 void setTitle(
const std::string &) {}
64 bool isPreviewMode()
const;
65 void setPreviewMode(
bool drawPreview);
66 void showPreview(
bool showPreview);
70 std::string getError();
71 void setError(
const std::string &error);
74 void closeEvent(QCloseEvent *);
77 void setCancelButtonVisible(
bool);
78 void setStopButtonVisible(
bool);
88 explicit SimplePluginProgressDialog(QWidget *parent=NULL);
89 virtual ~SimplePluginProgressDialog();
91 void setComment(
const std::string&);
92 void setComment(
const QString &);
93 void setComment(
const char *);
95 void setTitle(
const std::string &title);
102 bool isPreviewMode()
const;
103 void setPreviewMode(
bool drawPreview);
104 void showPreview(
bool showPreview);
108 std::string getError();
109 void setError(
const std::string &error);
112 void closeEvent(QCloseEvent *);
115 void setCancelButtonVisible(
bool v);
116 void setStopButtonVisible(
bool v);
119 tlp::SimplePluginProgressWidget *_progress;
124 #endif // SIMPLEPLUGINPROGRESSWIDGET_H