Medical Imaging Interaction Toolkit  2018.4.99-6aa36ba9
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 
107  //DialogSettings dialogSettings = null;
108 
112  mutable IPreferencesService* preferencesService;
113 
117  //BundleListener bundleListener;
118 
119 public:
120 
129 
144 // IDialogSettings getDialogSettings();
145 
158  IPreferencesService* GetPreferencesService() const;
159 
160  SmartPointer<IPreferences> GetPreferences() const;
161 
170  IWorkbench* GetWorkbench();
171 
172 
173 protected:
174 
186 // ImageRegistry createImageRegistry();
187 
209 // void initializeImageRegistry(ImageRegistry reg);
210 
223 // void loadDialogSettings();
224 
225 
234 // void refreshPluginActions();
235 
240 // void saveDialogSettings();
241 
242 
243 public:
244 
250  void start(ctkPluginContext* context) override;
251 
260  void stop(ctkPluginContext* context) override;
261 
282  static QIcon ImageDescriptorFromPlugin(
283  const QString& pluginId, const QString& imageFilePath);
284 
285  static QIcon GetMissingIcon();
286 };
287 
288 } // namespace berry
289 
290 #endif /*BERRYABSTRACTUICTKPLUGIN_H_*/
Implements transparent reference counting.
#define BERRY_UI_QT