Medical Imaging Interaction Toolkit  2025.12.02
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
QT-Toolkit/GUI dependent class that provides to send a Message to the QT's StatusBar.
void DisplayGenericOutputText(const char *t) override
void DisplayWarningText(const char *t) override
mitkClassMacro(QmitkStatusBar, mitk::StatusBarImplementation)
void DisplayText(const char *t, int ms) override
Send a string with a time delay to the applications StatusBar.
~QmitkStatusBar() override
Destructor.
void DisplayText(const char *t) override
Send a string to the applications StatusBar (QStatusBar).
void Clear() override
removes any temporary message being shown.
void DisplayGreyValueText(const char *t) override
void SetSizeGripEnabled(bool enable) override
Set the QSizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) ...
void DisplayErrorText(const char *t) override
Send a string as an error message to StatusBar. The implementation calls DisplayText()
QmitkStatusBar(QStatusBar *instance)
Constructor; holds param instance internally and connects this to the mitkStatusBar.
void DisplayWarningText(const char *t, int ms) override
void DisplayDebugText(const char *t) override
GUI independent Interface for all Gui dependent implementations of a StatusBar.
virtual void DisplayText(const char *t)=0
Send a string to the applications StatusBar.