Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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_*/
static const int LEFT
static const float INVALID_RATIO
static const int BOTTOM
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
static const int RIGHT
static const float RATIO_MIN
static const QString ID_BOOKMARKS
static const int TOP
static const QString ID_PROGRESS_VIEW
static const float RATIO_MAX
#define berryObjectMacro(...)
Definition: berryMacros.h:33
static const QString ID_PROBLEM_VIEW
static const QString ID_EDITOR_AREA
static const QString ID_TASK_LIST
static const float nullptr_RATIO
static const QString ID_NAVIGATE_ACTION_SET
static const QString ID_OUTLINE
static const QString ID_PROP_SHEET
static const float DEFAULT_VIEW_RATIO
static const QString ID_RES_NAV
#define BERRY_UI_QT