Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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 internaly 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 /* define QMITKSTATUSBAR_H */
void DisplayWarningText(const char *t) override
void DisplayErrorText(const char *t) override
Send a string as an error message to StatusBar. The implementation calls DisplayText() ...
virtual void SetSizeGripEnabled(bool enable)=0
Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) t...
GUI indepentent Interface for all Gui depentent implementations of a StatusBar.
void DisplayWarningText(const char *t, int ms) override
QT-Toolkit/GUI dependent class that provides to send a Message to the QT&#39;s StatusBar.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
void DisplayGenericOutputText(const char *t) override
void DisplayDebugText(const char *t) override
virtual void DisplayText(const char *t)=0
Send a string to the applications StatusBar.
virtual void Clear()=0
removes any temporary message being shown.
virtual void DisplayGreyValueText(const char *t)=0