54 void setParent(
QWidget* parent);
55 void start(
const QString& msg,
int steps,
bool allow_cancel =
true);
56 void start(
const char* msg,
int steps,
bool allow_cancel =
true)
60 void start(std::string msg,
int steps,
bool allow_cancel =
true)
64 bool advance(
int step);
67 void setMaximum(
int steps);
68 void setMsg(
const QString& msg);
69 void setMsg(
const char* msg) {
72 void setMsg(std::string msg) {
78 static void useModal();
79 static void useModeless();
91 void createDialog(
const QString& msg,
int steps,
int value,
bool allow_cancel);
104 GlobalProgress::instance().start(msg, steps, allow_cancel);
106 Progress(std::string msg,
int steps,
bool allow_cancel =
true)
108 GlobalProgress::instance().start(msg, steps, allow_cancel);
110 Progress(
const char* msg,
int steps,
bool allow_cancel =
true)
112 GlobalProgress::instance().start(msg, steps, allow_cancel);
116 GlobalProgress::instance().stop();
119 bool restart(
const QString& msg,
int steps)
121 GlobalProgress::instance().stop();
122 GlobalProgress::instance().start(msg, steps);
125 bool restart(std::string msg,
int steps) {
128 bool restart(
const char* msg,
int steps) {
132 void setMsg(
const QString& msg) {
133 GlobalProgress::instance().setMsg(msg);
135 void setMsg(std::string msg) {
138 void setMsg(
const char* msg) {
142 bool advance(
int step) {
143 return GlobalProgress::instance().advance(step);
146 return GlobalProgress::instance().canceled();
149 void setMaximum(
int step) {
150 GlobalProgress::instance().setMaximum(step);
153 return GlobalProgress::instance().exec();
Definition: Progress.hpp:30
fromLocal8Bit(const char *str, int size=-1)
fromStdString(const std::string &str)
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Definition: Progress.hpp:99