20 #include <qmainwindow.h>
21 #include <qstatusbar.h>
22 #include <qapplication.h>
23 #include <qdesktopwidget.h>
27 #include <itkObjectFactory.h>
35 m_StatusBar->showMessage(t);
45 m_StatusBar->showMessage(t, ms);
55 m_GreyValueLabel->setText(text);
62 if (m_StatusBar !=
nullptr)
63 m_StatusBar->clearMessage();
73 if (m_StatusBar !=
nullptr)
74 m_StatusBar->setSizeGripEnabled(enable);
78 QmitkStatusBar::QmitkStatusBar(QStatusBar* instance)
79 :StatusBarImplementation()
81 m_StatusBar = instance;
82 m_GreyValueLabel =
new QLabel(m_StatusBar,
nullptr);
83 int xResolution = QApplication::desktop()->screenGeometry(0).width()-100;
84 m_GreyValueLabel->setMaximumSize(QSize(xResolution,50));
85 m_GreyValueLabel->setSizePolicy(QSizePolicy::Maximum,QSizePolicy::Fixed);
86 m_StatusBar->addPermanentWidget(m_GreyValueLabel);
virtual void Clear() override
removes any temporary message being shown.
virtual void DisplayGreyValueText(const char *t) override
virtual void SetSizeGripEnabled(bool enable) override
Set the QSizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) ...
virtual void DisplayText(const char *t) override
Send a string to the applications StatusBar (QStatusBar).
virtual ~QmitkStatusBar()
Destructor.
static void SetImplementation(StatusBarImplementation *instance)
Supply a GUI- dependent StatusBar. Has to be set by the application to connect the application depend...