Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 
119  virtual QString GetId() = 0;
120 
130  virtual QWidget* CreateSash(QWidget* parent, int style) = 0;
131 // {
132 // int orientation = style & (SASHORIENTATION_HORIZONTAL
133 // | SASHORIENTATION_VERTICAL);
134 // Sash sash = new Sash(parent, orientation | SWT.SMOOTH);
135 // return sash;
136 // }
137 
146  virtual int GetSashSize(int style) = 0;
147 
151  virtual void UpdateTheme() = 0;
152 };
153 
154 }
155 
156 Q_DECLARE_INTERFACE(berry::IPresentationFactory, "org.blueberry.ui.IPresentationFactory")
157 
158 #endif /* BERRYABSTRACTPRESENTATIONFACTORY_H_ */
berry::IPresentationFactory
Definition: berryIPresentationFactory.h:32
berry::IPresentationFactory::SASHTYPE_NORMAL
static int SASHTYPE_NORMAL
Definition: berryIPresentationFactory.h:42
berry::IPresentationFactory::SASHORIENTATION_VERTICAL
static int SASHORIENTATION_VERTICAL
Definition: berryIPresentationFactory.h:57
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berryStackPresentation.h
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IPresentationFactory::SASHORIENTATION_HORIZONTAL
static int SASHORIENTATION_HORIZONTAL
Definition: berryIPresentationFactory.h:52
berry::IPresentationFactory::SASHTYPE_FLOATING
static int SASHTYPE_FLOATING
Definition: berryIPresentationFactory.h:47
berry
Definition: QmitkPropertyItemModel.h:24