16 #include <qmainwindow.h> 17 #include <qstatusbar.h> 18 #include <qapplication.h> 19 #include <qdesktopwidget.h> 23 #include <itkObjectFactory.h> 31 m_StatusBar->showMessage(t);
41 m_StatusBar->showMessage(t, ms);
51 m_GreyValueLabel->setText(text);
58 if (m_StatusBar !=
nullptr)
59 m_StatusBar->clearMessage();
69 if (m_StatusBar !=
nullptr)
70 m_StatusBar->setSizeGripEnabled(enable);
75 :StatusBarImplementation()
77 m_StatusBar = instance;
78 m_GreyValueLabel =
new QLabel(m_StatusBar,
nullptr);
79 int xResolution = QApplication::desktop()->screenGeometry(0).width()-100;
80 m_GreyValueLabel->setMaximumSize(QSize(xResolution,50));
81 m_GreyValueLabel->setSizePolicy(QSizePolicy::Maximum,QSizePolicy::Fixed);
82 m_StatusBar->addPermanentWidget(m_GreyValueLabel);
void Clear() override
removes any temporary message being shown.
void DisplayGreyValueText(const char *t) override
~QmitkStatusBar() override
Destructor.
void SetSizeGripEnabled(bool enable) override
Set the QSizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) ...
void DisplayText(const char *t) override
Send a string to the applications StatusBar (QStatusBar).
QmitkStatusBar(QStatusBar *instance)
Constructor; holds param instance internaly and connects this to the mitkStatusBar.
static void SetImplementation(StatusBarImplementation *instance)
Supply a GUI- dependent StatusBar. Has to be set by the application to connect the application depend...