Medical Imaging Interaction Toolkit  2018.4.99-c7ee88da
Medical Imaging Interaction Toolkit
berryExtensionFactory.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 BERRYEXTENSIONFACTORY_H
14 #define BERRYEXTENSIONFACTORY_H
15 
19 
21 
22 namespace berry {
23 
33 {
34  Q_OBJECT
36 
37 public:
38 
39  ~ExtensionFactory() override;
40 
44  static const QString STYLE_PREFERENCE_PAGE; // = "stylePreferencePage";
45 
49  static const QString PERSPECTIVES_PREFERENCE_PAGE; // = "perspectivesPreferencePage";
50 
51  /*
52  * Factory ID for the show in contribution.
53  */
54  //static const QString SHOW_IN_CONTRIBUTION = "showInContribution";
55 
56 
61  QObject* Create() override;
62 
63  /*
64  * @see IExecutableExtension#SetInitializationData
65  */
66  void SetInitializationData(const SmartPointer<IConfigurationElement>& config,
67  const QString& propertyName, const Object::Pointer& data) override;
68 
69 private:
70 
71  QObject* Configure(QObject* obj);
72 
74 
75  QString id;
76 
77  QString propertyName;
78 
79 };
80 
81 }
82 
83 #endif // BERRYEXTENSIONFACTORY_H
static const QString STYLE_PREFERENCE_PAGE
Implements transparent reference counting.
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:82
static const QString PERSPECTIVES_PREFERENCE_PAGE
#define BERRY_UI_QT