13 #ifndef QmitkProgressBar_h
14 #define QmitkProgressBar_h
18 #include <QProgressBar>
88 void Reset()
override;
90 unsigned int m_TotalSteps;
92 unsigned int m_Progress;
Qt implementation of the MITK progress bar interface.
void SignalSetPercentageVisible(bool visible)
Internal signal to dispatch SetPercentageVisible to the GUI thread.
virtual void SlotAddStepsToDo(unsigned int steps)
~QmitkProgressBar() override
virtual void SlotProgress(unsigned int steps)
void AddStepsToDo(unsigned int steps) override
Adds the given number of steps to the total step count.
void SignalProgress(unsigned int steps)
Internal signal to dispatch Progress to the GUI thread.
QmitkProgressBar(QWidget *parent=nullptr, const char *name=nullptr)
Constructs the progress bar and registers it with mitk::ProgressBar.
void SignalAddStepsToDo(unsigned int steps)
Internal signal to dispatch AddStepsToDo to the GUI thread.
void SetPercentageVisible(bool visible) override
Sets whether the percentage text is displayed on the progress bar.
void Progress(unsigned int steps) override
Advances the progress by the given number of steps.
virtual void SlotSetPercentageVisible(bool visible)
GUI-independent interface for all GUI-dependent implementations of a progress bar.
virtual void Reset()=0
Explicitly resets the progress bar to zero.