Medical Imaging Interaction Toolkit  2023.12.99-63768887
Medical Imaging Interaction Toolkit
berryIPageLayout.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 BERRYIPAGELAYOUT_H_
14 #define BERRYIPAGELAYOUT_H_
15 
16 #include "berryIFolderLayout.h"
18 #include "berryIViewLayout.h"
20 
21 #include <string>
22 
23 namespace berry {
24 
84 {
85 
87 
92  static const QString ID_EDITOR_AREA; // = "org.blueberry.ui.editors";
93 
97  static const QString ID_RES_NAV; // = "org.blueberry.ui.views.ResourceNavigator";
98 
102  static const QString ID_PROP_SHEET; // = "org.blueberry.ui.views.PropertySheet";
103 
107  static const QString ID_OUTLINE; // = "org.blueberry.ui.views.ContentOutline";
108 
112  static const QString ID_BOOKMARKS; // = "org.blueberry.ui.views.BookmarkView";
113 
118  static const QString ID_PROBLEM_VIEW; // = "org.blueberry.ui.views.ProblemView";
119 
124  static const QString ID_PROGRESS_VIEW; // = "org.blueberry.ui.views.ProgressView";
125 
129  static const QString ID_TASK_LIST; // = "org.blueberry.ui.views.TaskList";
130 
136  static const QString ID_NAVIGATE_ACTION_SET; // = "org.blueberry.ui.NavigateActionSet";
137 
142  static const int LEFT; // = 1;
143 
148  static const int RIGHT; // = 2;
149 
154  static const int TOP; // = 3;
155 
160  static const int BOTTOM; // = 4;
161 
166  static const float RATIO_MIN; // = 0.05f;
167 
172  static const float RATIO_MAX; // = 0.95f;
173 
178  static const float DEFAULT_VIEW_RATIO; // = 0.5f;
179 
184  static const float INVALID_RATIO; // = -1f;
185 
190  static const float nullptr_RATIO; // = -2f;
191 
201  virtual void AddPerspectiveShortcut(const QString& id) = 0;
202 
230  virtual void AddPlaceholder(const QString& viewId, int relationship, float ratio,
231  const QString& refId) = 0;
232 
242  virtual void AddShowInPart(const QString& id) = 0;
243 
253  virtual void AddShowViewShortcut(const QString& id) = 0;
254 
275  virtual void AddView(const QString& viewId, int relationship, float ratio,
276  const QString& refId) = 0;
277 
299  virtual IFolderLayout::Pointer CreateFolder(const QString& folderId, int relationship,
300  float ratio, const QString& refId) = 0;
301 
324  virtual IPlaceholderFolderLayout::Pointer CreatePlaceholderFolder(const QString& folderId,
325  int relationship, float ratio, const QString& refId) = 0;
326 
338  virtual QString GetEditorArea() = 0;
339 
346  virtual bool IsEditorAreaVisible() = 0;
347 
353  virtual void SetEditorAreaVisible(bool showEditorArea) = 0;
354 
363  virtual void SetFixed(bool isFixed) = 0;
364 
374  virtual bool IsFixed() = 0;
375 
386  virtual IViewLayout::Pointer GetViewLayout(const QString& id) = 0;
387 
419  virtual void AddStandaloneView(const QString& viewId, bool showTitle,
420  int relationship, float ratio, const QString& refId) = 0;
421 
458  virtual void AddStandaloneViewPlaceholder(const QString& viewId, int relationship,
459  float ratio, const QString& refId, bool showTitle) = 0;
460 
461 
468  virtual IPerspectiveDescriptor::Pointer GetDescriptor() = 0;
469 
483  virtual IPlaceholderFolderLayout::Pointer GetFolderForView(const QString& id) = 0;
484 };
485 
486 }
487 
488 #endif /*BERRYIPAGELAYOUT_H_*/
berry::IPageLayout::LEFT
static const int LEFT
Definition: berryIPageLayout.h:142
berry::IPageLayout::INVALID_RATIO
static const float INVALID_RATIO
Definition: berryIPageLayout.h:184
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::IPageLayout::ID_NAVIGATE_ACTION_SET
static const QString ID_NAVIGATE_ACTION_SET
Definition: berryIPageLayout.h:136
berryIViewLayout.h
berry::IPageLayout::ID_PROP_SHEET
static const QString ID_PROP_SHEET
Definition: berryIPageLayout.h:102
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::IPageLayout::ID_EDITOR_AREA
static const QString ID_EDITOR_AREA
Definition: berryIPageLayout.h:92
berry::IPageLayout::BOTTOM
static const int BOTTOM
Definition: berryIPageLayout.h:160
berry::IPageLayout::ID_PROGRESS_VIEW
static const QString ID_PROGRESS_VIEW
Definition: berryIPageLayout.h:124
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IPageLayout::RATIO_MIN
static const float RATIO_MIN
Definition: berryIPageLayout.h:166
berry::IPageLayout::ID_PROBLEM_VIEW
static const QString ID_PROBLEM_VIEW
Definition: berryIPageLayout.h:118
berry::IPageLayout::RIGHT
static const int RIGHT
Definition: berryIPageLayout.h:148
berryIFolderLayout.h
berry::IPageLayout::DEFAULT_VIEW_RATIO
static const float DEFAULT_VIEW_RATIO
Definition: berryIPageLayout.h:178
berry::IPageLayout::ID_OUTLINE
static const QString ID_OUTLINE
Definition: berryIPageLayout.h:107
berry::IPageLayout
Definition: berryIPageLayout.h:83
berry::IPageLayout::ID_RES_NAV
static const QString ID_RES_NAV
Definition: berryIPageLayout.h:97
berryIPerspectiveDescriptor.h
berry::IPageLayout::TOP
static const int TOP
Definition: berryIPageLayout.h:154
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry::IPageLayout::ID_TASK_LIST
static const QString ID_TASK_LIST
Definition: berryIPageLayout.h:129
berry::IPageLayout::nullptr_RATIO
static const float nullptr_RATIO
Definition: berryIPageLayout.h:190
berry::IPageLayout::ID_BOOKMARKS
static const QString ID_BOOKMARKS
Definition: berryIPageLayout.h:112
berry
Definition: QmitkPropertyItemModel.h:24
berryIPlaceholderFolderLayout.h
berry::IPageLayout::RATIO_MAX
static const float RATIO_MAX
Definition: berryIPageLayout.h:172