Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryExtensionFactory.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 BERRYEXTENSIONFACTORY_H
18 #define BERRYEXTENSIONFACTORY_H
19 
23 
25 
26 namespace berry {
27 
37 {
38  Q_OBJECT
40 
41 public:
42 
44 
48  static const QString STYLE_PREFERENCE_PAGE; // = "stylePreferencePage";
49 
53  static const QString PERSPECTIVES_PREFERENCE_PAGE; // = "perspectivesPreferencePage";
54 
55  /*
56  * Factory ID for the show in contribution.
57  */
58  //static const QString SHOW_IN_CONTRIBUTION = "showInContribution";
59 
60 
65  QObject* Create() override;
66 
67  /*
68  * @see IExecutableExtension#SetInitializationData
69  */
70  void SetInitializationData(const SmartPointer<IConfigurationElement>& config,
71  const QString& propertyName, const Object::Pointer& data) override;
72 
73 private:
74 
75  QObject* Configure(QObject* obj);
76 
78 
79  QString id;
80 
81  QString propertyName;
82 
83 };
84 
85 }
86 
87 #endif // BERRYEXTENSIONFACTORY_H
static const QString STYLE_PREFERENCE_PAGE
Implements transparent reference counting.
static const QString PERSPECTIVES_PREFERENCE_PAGE
#define BERRY_UI_QT