Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryUIElement.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 BERRYUIELEMENT_H_
15 #define BERRYUIELEMENT_H_
16 
17 #include <berryMacros.h>
18 #include <berryObject.h>
19 
21 
22 #include <QIcon>
23 
24 namespace berry {
25 
26 struct IServiceLocator;
27 
37 {
38 
39 private:
40 
41  IServiceLocator* serviceLocator;
42 
43 protected:
44 
52  UIElement(IServiceLocator* serviceLocator);
53 
54 public:
55 
57 
58 
64  virtual void SetText(const QString& text) = 0;
65 
73  virtual void SetToolTip(const QString& text) = 0;
74 
81  virtual void SetIcon(const QIcon& icon) = 0;
82 
90  virtual void SetChecked(bool checked) = 0;
91 
108  IServiceLocator* GetServiceLocator() const;
109 
122  virtual void SetDropDownId(const QString& id);
123 
124 };
125 
126 }
127 
128 #endif /* BERRYUIELEMENT_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT