18 #include <qapplication.h> 19 #include <qprogressbar.h> 24 void QmitkProgressBar::Reset()
82 this->setValue(m_Progress);
84 if (m_Progress >= m_TotalSteps)
100 m_TotalSteps += steps;
101 this->setMaximum(m_TotalSteps);
102 this->setValue(m_Progress);
103 if (m_TotalSteps > 0)
116 this->setTextVisible(visible);
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()
void Progress(unsigned int steps) override
Sets the current amount of progress to current progress + steps.
virtual void SlotAddStepsToDo(unsigned int steps)
ProgressBarImplementation()
Constructor.
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()
~QmitkProgressBar() override
Destructor.
void UnregisterImplementationInstance(ProgressBarImplementation *implementation)
void AddStepsToDo(unsigned int steps) override
Adds steps to totalSteps.
virtual void SlotProgress(unsigned int steps)
wbAdvisor reset(new berry::WorkbenchAdvisor)
virtual void SlotSetPercentageVisible(bool visible)
void SignalProgress(unsigned int steps)