Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryIPresentationFactory.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 
18 #ifndef BERRYIPRESENTATIONFACTORY_H_
19 #define BERRYIPRESENTATIONFACTORY_H_
20 
21 #include <berryMacros.h>
22 
23 #include "berryStackPresentation.h"
24 
25 #include <QObject>
26 
27 namespace berry
28 {
29 
37 
38 public:
39 
40  virtual ~IPresentationFactory();
41 
46  static int SASHTYPE_NORMAL; // = 0;
51  static int SASHTYPE_FLOATING; // = 1<<1;
56  static int SASHORIENTATION_HORIZONTAL; // = SWT.HORIZONTAL; // 1<<8
61  static int SASHORIENTATION_VERTICAL; // = SWT.VERTICAL; // 1<<9
62 
76  virtual StackPresentation::Pointer CreateEditorPresentation(
77  QWidget* parent, IStackPresentationSite::Pointer site) = 0;
78 
92  virtual StackPresentation::Pointer CreateViewPresentation(QWidget* parent,
94 
113  virtual StackPresentation::Pointer CreateStandaloneViewPresentation(
114  QWidget* parent, IStackPresentationSite::Pointer site, bool showTitle) = 0;
115 
122 // public IStatusLineManager createStatusLineManager() {
123 // return new StatusLineManager();
124 // }
125 
134 // public Control createStatusLineControl(IStatusLineManager statusLine,
135 // Composite parent) {
136 // return ((StatusLineManager) statusLine).createControl(parent, SWT.NONE);
137 // }
138 
146  virtual QString GetId() = 0;
147 
157  virtual QWidget* CreateSash(QWidget* parent, int style) = 0;
158 // {
159 // int orientation = style & (SASHORIENTATION_HORIZONTAL
160 // | SASHORIENTATION_VERTICAL);
161 // Sash sash = new Sash(parent, orientation | SWT.SMOOTH);
162 // return sash;
163 // }
164 
173  virtual int GetSashSize(int style) = 0;
174 
178  virtual void UpdateTheme() = 0;
179 };
180 
181 }
182 
183 Q_DECLARE_INTERFACE(berry::IPresentationFactory, "org.blueberry.ui.IPresentationFactory")
184 
185 #endif /* BERRYABSTRACTPRESENTATIONFACTORY_H_ */
#define BERRY_UI_QT