Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryAbstractUICTKPlugin.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 #ifndef BERRYABSTRACTUICTKPLUGIN_H_
18 #define BERRYABSTRACTUICTKPLUGIN_H_
19 
21 
22 #include <berryPlugin.h>
23 
24 namespace berry {
25 
26 template<class T> class SmartPointer;
27 
28 struct IPreferences;
29 struct IPreferencesService;
30 struct IWorkbench;
31 
96 {
97  Q_OBJECT
98 
99 private:
100 
105  static const QString FN_DIALOG_SETTINGS;
106 
111  //DialogSettings dialogSettings = null;
112 
116  mutable IPreferencesService* preferencesService;
117 
121  //BundleListener bundleListener;
122 
123 public:
124 
133 
148 // IDialogSettings getDialogSettings();
149 
162  IPreferencesService* GetPreferencesService() const;
163 
164  SmartPointer<IPreferences> GetPreferences() const;
165 
174  IWorkbench* GetWorkbench();
175 
176 
177 protected:
178 
190 // ImageRegistry createImageRegistry();
191 
213 // void initializeImageRegistry(ImageRegistry reg);
214 
227 // void loadDialogSettings();
228 
229 
238 // void refreshPluginActions();
239 
244 // void saveDialogSettings();
245 
246 
247 public:
248 
254  void start(ctkPluginContext* context) override;
255 
264  void stop(ctkPluginContext* context) override;
265 
286  static QIcon ImageDescriptorFromPlugin(
287  const QString& pluginId, const QString& imageFilePath);
288 
289  static QIcon GetMissingIcon();
290 };
291 
292 } // namespace berry
293 
294 #endif /*BERRYABSTRACTUICTKPLUGIN_H_*/
Implements transparent reference counting.
#define BERRY_UI_QT