22 #include <QProgressBar>
25 #include <QPushButton>
37 QProgressBar* _progressBar;
38 QLabel* _progressText;
39 QPushButton* _progressStop;
51 bool processEvent(QEvent *e);
52 void setupProgress(QWidget* parent, QToolBar* progressToolBar);
54 void start(
const QString& msg,
int steps,
bool allowCancel =
true);
55 void start(
const char* msg,
int steps,
bool allowCancel =
true)
57 start(QString::fromLocal8Bit(msg), steps, allowCancel);
59 void start(std::string msg,
int steps,
bool allowCancel =
true)
61 start(QString::fromStdString(msg), steps, allowCancel);
63 bool advance(
int step = -1);
67 void setMax(
int steps);
68 void setMsg(
const QString& msg);
69 void setMsg(
const char* msg) {
setMsg(QString::fromLocal8Bit(msg)); }
70 void setMsg(std::string msg) {
setMsg(QString::fromStdString(msg)); }
75 QString makeMsg()
const;
78 mgx_EXPORT
void progressStart(
const QString& msg,
int steps = 0,
bool allowCancel =
true);
79 mgx_EXPORT
void progressStart(
const char* msg,
int steps = 0,
bool allowCancel =
true);
80 mgx_EXPORT
void progressStart(
const std::string &msg,
int steps = 0,
bool allowCancel =
true);