Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkStatusBar.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef QmitkStatusBar_h
15 #define QmitkStatusBar_h
17 #include <mitkCommon.h>
18 #include <QStatusBar>
20 #include <QLabel>
21 
33 {
34 public:
35 
37 
38  //##Documentation
39  //##@brief Constructor;
40  //## holds param instance internally and connects this to the mitkStatusBar
41  QmitkStatusBar(QStatusBar* instance);
42 
43  //##Documentation
44  //##@brief Destructor
45  ~QmitkStatusBar() override;
46 
47 
48  //##Documentation
49  //## @brief Send a string to the applications StatusBar (QStatusBar).
50  void DisplayText(const char* t) override;
51  void DisplayText(const char* t, int ms) override;
52 
53  //##Documentation
54  //## @brief Send a string as an error message to StatusBar.
55  //## The implementation calls DisplayText()
56  void DisplayErrorText(const char *t) override { this->DisplayText(t); };
57  void DisplayWarningText(const char *t) override { this->DisplayText(t); };
58  void DisplayWarningText(const char *t, int ms) override { this->DisplayText(t, ms); };
59  void DisplayGenericOutputText(const char *t) override {this->DisplayText(t);}
60  void DisplayDebugText(const char *t) override { this->DisplayText(t); };
61  void DisplayGreyValueText(const char *t) override;
62 
63  //##Documentation
64  //## @brief removes any temporary message being shown.
65  void Clear() override;
66 
67  //##Documentation
68  //## @brief Set the QSizeGrip of the window
69  //## (the triangle in the lower right Windowcorner for changing the size)
70  //## to enabled or disabled
71  void SetSizeGripEnabled(bool enable) override;
72 
73 private:
74  //static Pointer m_Instance;
75  QStatusBar* m_StatusBar;
76  QLabel* m_GreyValueLabel;
77 
78 };
79 
80 #endif
QmitkStatusBar
QT-Toolkit/GUI dependent class that provides to send a Message to the QT's StatusBar.
Definition: QmitkStatusBar.h:32
QmitkStatusBar::DisplayWarningText
void DisplayWarningText(const char *t) override
Definition: QmitkStatusBar.h:57
mitk::StatusBarImplementation::DisplayGreyValueText
virtual void DisplayGreyValueText(const char *t)=0
QmitkStatusBar::DisplayGenericOutputText
void DisplayGenericOutputText(const char *t) override
Definition: QmitkStatusBar.h:59
mitk::StatusBarImplementation::SetSizeGripEnabled
virtual void SetSizeGripEnabled(bool enable)=0
Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) t...
mitk::StatusBarImplementation
GUI independent Interface for all Gui dependent implementations of a StatusBar.
Definition: mitkStatusBarImplementation.h:22
mitk::StatusBarImplementation::DisplayText
virtual void DisplayText(const char *t)=0
Send a string to the applications StatusBar.
mitk::StatusBarImplementation::Clear
virtual void Clear()=0
removes any temporary message being shown.
mitkCommon.h
QmitkStatusBar::DisplayWarningText
void DisplayWarningText(const char *t, int ms) override
Definition: QmitkStatusBar.h:58
mitkStatusBarImplementation.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
QmitkStatusBar::DisplayErrorText
void DisplayErrorText(const char *t) override
Send a string as an error message to StatusBar. The implementation calls DisplayText()
Definition: QmitkStatusBar.h:56
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
org_mitk_gui_qt_application_Export.h
QmitkStatusBar::DisplayDebugText
void DisplayDebugText(const char *t) override
Definition: QmitkStatusBar.h:60