22 #include <qapplication.h>
23 #include <qprogressbar.h>
28 void QmitkProgressBar::Reset()
64 : QProgressBar(parent), ProgressBarImplementation()
86 this->setValue(m_Progress);
88 if (m_Progress >= m_TotalSteps)
104 m_TotalSteps += steps;
105 this->setMaximum(m_TotalSteps);
106 this->setValue(m_Progress);
107 if (m_TotalSteps > 0)
120 this->setTextVisible(visible);
virtual void SetPercentageVisible(bool visible) override
Sets whether the current progress value is displayed.
void SignalSetPercentageVisible(bool visible)
void RegisterImplementationInstance(ProgressBarImplementation *implementation)
Supply a GUI- dependent ProgressBar. Has to be set by the application to connect the application depe...
virtual void ExecutePendingRequests()
virtual void Progress(unsigned int steps) override
Sets the current amount of progress to current progress + steps.
virtual void SlotAddStepsToDo(unsigned int steps)
static ProgressBar * GetInstance()
static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progre...
QmitkProgressBar(QWidget *parent=nullptr, const char *name=nullptr)
Constructor; holds param instance internally and connects this to the mitkProgressBar.
void SignalAddStepsToDo(unsigned int steps)
static RenderingManager * GetInstance()
void UnregisterImplementationInstance(ProgressBarImplementation *implementation)
virtual void AddStepsToDo(unsigned int steps) override
Adds steps to totalSteps.
virtual void SlotProgress(unsigned int steps)
virtual void SlotSetPercentageVisible(bool visible)
virtual ~QmitkProgressBar()
Destructor.
void SignalProgress(unsigned int steps)