15 #include <QProgressDialog>
28 :
public QProgressDialog,
48 virtual void update(
float percent)
override;
52 inline virtual void setInfo(
const char* infoStr)
override {
56 virtual void start()
override;
57 virtual void stop()
override;
62 virtual void setInfo(QString infoStr);
virtual void stop()=0
Notifies the fact that the process has ended.
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
virtual void update(float percent)=0
Notifies the algorithm progress.
Graphical progress indicator (thread-safe)
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
QAtomicInt m_currentValue
Current progress value (percent)
void scheduleRefresh()
Schedules a call to refresh.
virtual bool isCancelRequested() override
Checks if the process should be canceled.
QAtomicInt m_lastRefreshValue
Last displayed progress value (percent)
virtual ~ecvProgressDialog()
Destructor (virtual)
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.