Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryUIElement.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
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 BERRYUIELEMENT_H_
19 #define BERRYUIELEMENT_H_
20 
21 #include <berryMacros.h>
22 #include <berryObject.h>
23 
25 
26 #include <QIcon>
27 
28 namespace berry {
29 
30 struct IServiceLocator;
31 
41 {
42 
43 private:
44 
45  IServiceLocator* serviceLocator;
46 
47 protected:
48 
56  UIElement(IServiceLocator* serviceLocator);
57 
58 public:
59 
61 
62 
68  virtual void SetText(const QString& text) = 0;
69 
77  virtual void SetToolTip(const QString& text) = 0;
78 
85  virtual void SetIcon(const QIcon& icon) = 0;
86 
94  virtual void SetChecked(bool checked) = 0;
95 
112  IServiceLocator* GetServiceLocator() const;
113 
126  virtual void SetDropDownId(const QString& id);
127 
128 };
129 
130 }
131 
132 #endif /* BERRYUIELEMENT_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT