Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIPageLayout.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 #ifndef BERRYIPAGELAYOUT_H_
18 #define BERRYIPAGELAYOUT_H_
19 
20 #include "berryIFolderLayout.h"
22 #include "berryIViewLayout.h"
24 
25 #include <string>
26 
27 namespace berry {
28 
88 {
89 
91 
92 
96  static const QString ID_EDITOR_AREA; // = "org.blueberry.ui.editors";
97 
101  static const QString ID_RES_NAV; // = "org.blueberry.ui.views.ResourceNavigator";
102 
106  static const QString ID_PROP_SHEET; // = "org.blueberry.ui.views.PropertySheet";
107 
111  static const QString ID_OUTLINE; // = "org.blueberry.ui.views.ContentOutline";
112 
116  static const QString ID_BOOKMARKS; // = "org.blueberry.ui.views.BookmarkView";
117 
122  static const QString ID_PROBLEM_VIEW; // = "org.blueberry.ui.views.ProblemView";
123 
128  static const QString ID_PROGRESS_VIEW; // = "org.blueberry.ui.views.ProgressView";
129 
133  static const QString ID_TASK_LIST; // = "org.blueberry.ui.views.TaskList";
134 
140  static const QString ID_NAVIGATE_ACTION_SET; // = "org.blueberry.ui.NavigateActionSet";
141 
146  static const int LEFT; // = 1;
147 
152  static const int RIGHT; // = 2;
153 
158  static const int TOP; // = 3;
159 
164  static const int BOTTOM; // = 4;
165 
170  static const float RATIO_MIN; // = 0.05f;
171 
176  static const float RATIO_MAX; // = 0.95f;
177 
182  static const float DEFAULT_VIEW_RATIO; // = 0.5f;
183 
188  static const float INVALID_RATIO; // = -1f;
189 
194  static const float NULL_RATIO; // = -2f;
195 
203  //virtual void AddActionSet(const QString& actionSetId) = 0;
204 
205 
215  virtual void AddPerspectiveShortcut(const QString& id) = 0;
216 
244  virtual void AddPlaceholder(const QString& viewId, int relationship, float ratio,
245  const QString& refId) = 0;
246 
256  virtual void AddShowInPart(const QString& id) = 0;
257 
267  virtual void AddShowViewShortcut(const QString& id) = 0;
268 
289  virtual void AddView(const QString& viewId, int relationship, float ratio,
290  const QString& refId) = 0;
291 
313  virtual IFolderLayout::Pointer CreateFolder(const QString& folderId, int relationship,
314  float ratio, const QString& refId) = 0;
315 
338  virtual IPlaceholderFolderLayout::Pointer CreatePlaceholderFolder(const QString& folderId,
339  int relationship, float ratio, const QString& refId) = 0;
340 
352  virtual QString GetEditorArea() = 0;
353 
360  virtual bool IsEditorAreaVisible() = 0;
361 
367  virtual void SetEditorAreaVisible(bool showEditorArea) = 0;
368 
377  virtual void SetFixed(bool isFixed) = 0;
378 
388  virtual bool IsFixed() = 0;
389 
400  virtual IViewLayout::Pointer GetViewLayout(const QString& id) = 0;
401 
433  virtual void AddStandaloneView(const QString& viewId, bool showTitle,
434  int relationship, float ratio, const QString& refId) = 0;
435 
472  virtual void AddStandaloneViewPlaceholder(const QString& viewId, int relationship,
473  float ratio, const QString& refId, bool showTitle) = 0;
474 
475 
482  virtual IPerspectiveDescriptor::Pointer GetDescriptor() = 0;
483 
497  virtual IPlaceholderFolderLayout::Pointer GetFolderForView(const QString& id) = 0;
498 };
499 
500 }
501 
502 #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:78
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:37
static const QString ID_PROBLEM_VIEW
static const float NULL_RATIO
static const QString ID_TASK_LIST
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