Medical Imaging Interaction Toolkit  2018.4.99-93926fb8
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 
199  //virtual void AddActionSet(const QString& actionSetId) = 0;
200 
201 
211  virtual void AddPerspectiveShortcut(const QString& id) = 0;
212 
240  virtual void AddPlaceholder(const QString& viewId, int relationship, float ratio,
241  const QString& refId) = 0;
242 
252  virtual void AddShowInPart(const QString& id) = 0;
253 
263  virtual void AddShowViewShortcut(const QString& id) = 0;
264 
285  virtual void AddView(const QString& viewId, int relationship, float ratio,
286  const QString& refId) = 0;
287 
309  virtual IFolderLayout::Pointer CreateFolder(const QString& folderId, int relationship,
310  float ratio, const QString& refId) = 0;
311 
334  virtual IPlaceholderFolderLayout::Pointer CreatePlaceholderFolder(const QString& folderId,
335  int relationship, float ratio, const QString& refId) = 0;
336 
348  virtual QString GetEditorArea() = 0;
349 
356  virtual bool IsEditorAreaVisible() = 0;
357 
363  virtual void SetEditorAreaVisible(bool showEditorArea) = 0;
364 
373  virtual void SetFixed(bool isFixed) = 0;
374 
384  virtual bool IsFixed() = 0;
385 
396  virtual IViewLayout::Pointer GetViewLayout(const QString& id) = 0;
397 
429  virtual void AddStandaloneView(const QString& viewId, bool showTitle,
430  int relationship, float ratio, const QString& refId) = 0;
431 
468  virtual void AddStandaloneViewPlaceholder(const QString& viewId, int relationship,
469  float ratio, const QString& refId, bool showTitle) = 0;
470 
471 
478  virtual IPerspectiveDescriptor::Pointer GetDescriptor() = 0;
479 
493  virtual IPlaceholderFolderLayout::Pointer GetFolderForView(const QString& id) = 0;
494 };
495 
496 }
497 
498 #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