Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryIPresentationFactory.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 
14 #ifndef BERRYIPRESENTATIONFACTORY_H_
15 #define BERRYIPRESENTATIONFACTORY_H_
16 
17 #include <berryMacros.h>
18 
19 #include "berryStackPresentation.h"
20 
21 #include <QObject>
22 
23 namespace berry
24 {
25 
33 
34 public:
35 
36  virtual ~IPresentationFactory();
37 
42  static int SASHTYPE_NORMAL; // = 0;
47  static int SASHTYPE_FLOATING; // = 1<<1;
52  static int SASHORIENTATION_HORIZONTAL; // = SWT.HORIZONTAL; // 1<<8
57  static int SASHORIENTATION_VERTICAL; // = SWT.VERTICAL; // 1<<9
58 
72  virtual StackPresentation::Pointer CreateEditorPresentation(
73  QWidget* parent, IStackPresentationSite::Pointer site) = 0;
74 
88  virtual StackPresentation::Pointer CreateViewPresentation(QWidget* parent,
90 
109  virtual StackPresentation::Pointer CreateStandaloneViewPresentation(
110  QWidget* parent, IStackPresentationSite::Pointer site, bool showTitle) = 0;
111 
118 // public IStatusLineManager createStatusLineManager() {
119 // return new StatusLineManager();
120 // }
121 
130 // public Control createStatusLineControl(IStatusLineManager statusLine,
131 // Composite parent) {
132 // return ((StatusLineManager) statusLine).createControl(parent, SWT.NONE);
133 // }
134 
142  virtual QString GetId() = 0;
143 
153  virtual QWidget* CreateSash(QWidget* parent, int style) = 0;
154 // {
155 // int orientation = style & (SASHORIENTATION_HORIZONTAL
156 // | SASHORIENTATION_VERTICAL);
157 // Sash sash = new Sash(parent, orientation | SWT.SMOOTH);
158 // return sash;
159 // }
160 
169  virtual int GetSashSize(int style) = 0;
170 
174  virtual void UpdateTheme() = 0;
175 };
176 
177 }
178 
179 Q_DECLARE_INTERFACE(berry::IPresentationFactory, "org.blueberry.ui.IPresentationFactory")
180 
181 #endif /* BERRYABSTRACTPRESENTATIONFACTORY_H_ */
#define BERRY_UI_QT