Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIStackPresentationSite.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 BERRYISTACKPRESENTATIONSITE_H_
18 #define BERRYISTACKPRESENTATIONSITE_H_
19 
20 #include <berryMacros.h>
21 
22 #include <list>
23 
24 #include "berryIPresentablePart.h"
25 
27 
28 namespace berry
29 {
30 
40 {
41 
43 
44  static int STATE_MINIMIZED; // = 0;
45 
46  static int STATE_MAXIMIZED; // = 1;
47 
48  static int STATE_RESTORED; // = 2;
49 
51 
58  virtual void SetState(int newState) = 0;
59 
65  virtual int GetState() = 0;
66 
73  virtual bool SupportsState(int state) = 0;
74 
84  virtual void DragStart(IPresentablePart::Pointer beingDragged,
85  QPoint& initialPosition, bool keyboard) = 0;
86 
92  virtual void Close(const QList<IPresentablePart::Pointer>& toClose) = 0;
93 
102  virtual void DragStart(QPoint& initialPosition, bool keyboard) = 0;
103 
110  virtual bool IsCloseable(IPresentablePart::Pointer toClose) = 0;
111 
119  virtual bool IsPartMoveable(IPresentablePart::Pointer toMove) = 0;
120 
126  virtual bool IsStackMoveable() = 0;
127 
133  virtual void SelectPart(IPresentablePart::Pointer toSelect) = 0;
134 
140  virtual IPresentablePart::Pointer GetSelectedPart() = 0;
141 
155  //virtual void AddSystemActions(IMenuManager menuManager);
156 
164  virtual void FlushLayout() = 0;
165 
172  virtual QList<IPresentablePart::Pointer> GetPartList() = 0;
173 
187  virtual QString GetProperty(const QString& id) = 0;
188 };
189 
190 }
191 
192 #endif /* BERRYISTACKPRESENTATIONSITE_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT