Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef QMITKSTATUSBAR_H
19 #define QMITKSTATUSBAR_H
21 #include <mitkCommon.h>
22 #include <QStatusBar>
24 #include <QLabel>
25 
37 {
38 public:
39 
41 
42  //##Documentation
43  //##@brief Constructor;
44  //## holds param instance internaly and connects this to the mitkStatusBar
45  QmitkStatusBar(QStatusBar* instance);
46 
47  //##Documentation
48  //##@brief Destructor
49  virtual ~QmitkStatusBar();
50 
51 
52  //##Documentation
53  //## @brief Send a string to the applications StatusBar (QStatusBar).
54  virtual void DisplayText(const char* t) override;
55  virtual void DisplayText(const char* t, int ms) override;
56 
57  //##Documentation
58  //## @brief Send a string as an error message to StatusBar.
59  //## The implementation calls DisplayText()
60  virtual void DisplayErrorText(const char *t) override { this->DisplayText(t); };
61  virtual void DisplayWarningText(const char *t) override { this->DisplayText(t); };
62  virtual void DisplayWarningText(const char *t, int ms) override { this->DisplayText(t, ms); };
63  virtual void DisplayGenericOutputText(const char *t) override {this->DisplayText(t);}
64  virtual void DisplayDebugText(const char *t) override { this->DisplayText(t); };
65  virtual void DisplayGreyValueText(const char *t) override;
66 
67  //##Documentation
68  //## @brief removes any temporary message being shown.
69  virtual void Clear() override;
70 
71  //##Documentation
72  //## @brief Set the QSizeGrip of the window
73  //## (the triangle in the lower right Windowcorner for changing the size)
74  //## to enabled or disabled
75  virtual void SetSizeGripEnabled(bool enable) override;
76 
77 private:
78  //static Pointer m_Instance;
79  QStatusBar* m_StatusBar;
80  QLabel* m_GreyValueLabel;
81 
82 };
83 
84 #endif /* define QMITKSTATUSBAR_H */
virtual void DisplayWarningText(const char *t) override
virtual void SetSizeGripEnabled(bool enable)=0
Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) t...
virtual void DisplayDebugText(const char *t) override
virtual void DisplayErrorText(const char *t) override
Send a string as an error message to StatusBar. The implementation calls DisplayText() ...
GUI indepentent Interface for all Gui depentent implementations of a StatusBar.
virtual void DisplayGenericOutputText(const char *t) override
QT-Toolkit/GUI dependent class that provides to send a Message to the QT's StatusBar.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
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 DisplayWarningText(const char *t, int ms) override
virtual void DisplayGreyValueText(const char *t)=0