Medical Imaging Interaction Toolkit  2018.4.99-68f53314
Medical Imaging Interaction Toolkit
berryAbstractUICTKPlugin.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 #ifndef BERRYABSTRACTUICTKPLUGIN_H_
14 #define BERRYABSTRACTUICTKPLUGIN_H_
15 
17 
18 #include <berryPlugin.h>
19 
20 namespace berry {
21 
22 template<class T> class SmartPointer;
23 
24 struct IPreferences;
25 struct IPreferencesService;
26 struct IWorkbench;
27 
92 {
93  Q_OBJECT
94 
95 private:
96 
101  static const QString FN_DIALOG_SETTINGS;
102 
106  mutable IPreferencesService* preferencesService;
107 
108 public:
109 
118 
131  IPreferencesService* GetPreferencesService() const;
132 
133  SmartPointer<IPreferences> GetPreferences() const;
134 
143  IWorkbench* GetWorkbench();
144 
145 public:
146 
154  void start(ctkPluginContext* context) override;
155 
164  void stop(ctkPluginContext* context) override;
165 
186  static QIcon ImageDescriptorFromPlugin(
187  const QString& pluginId, const QString& imageFilePath);
188 
189  static QIcon GetMissingIcon();
190 };
191 
192 } // namespace berry
193 
194 #endif /*BERRYABSTRACTUICTKPLUGIN_H_*/
Implements transparent reference counting.
#define BERRY_UI_QT