Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
berryIStackPresentationSite.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 BERRYISTACKPRESENTATIONSITE_H_
14 #define BERRYISTACKPRESENTATIONSITE_H_
15 
16 #include <berryMacros.h>
17 
18 #include <list>
19 
20 #include "berryIPresentablePart.h"
21 
23 
24 namespace berry
25 {
26 
35 {
36 
38 
39  static int STATE_MINIMIZED; // = 0;
40 
41  static int STATE_MAXIMIZED; // = 1;
42 
43  static int STATE_RESTORED; // = 2;
44 
45  ~IStackPresentationSite() override;
46 
53  virtual void SetState(int newState) = 0;
54 
60  virtual int GetState() = 0;
61 
68  virtual bool SupportsState(int state) = 0;
69 
79  virtual void DragStart(IPresentablePart::Pointer beingDragged,
80  QPoint& initialPosition, bool keyboard) = 0;
81 
87  virtual void Close(const QList<IPresentablePart::Pointer>& toClose) = 0;
88 
97  virtual void DragStart(QPoint& initialPosition, bool keyboard) = 0;
98 
105  virtual bool IsCloseable(IPresentablePart::Pointer toClose) = 0;
106 
114  virtual bool IsPartMoveable(IPresentablePart::Pointer toMove) = 0;
115 
121  virtual bool IsStackMoveable() = 0;
122 
128  virtual void SelectPart(IPresentablePart::Pointer toSelect) = 0;
129 
135  virtual IPresentablePart::Pointer GetSelectedPart() = 0;
136 
144  virtual void FlushLayout() = 0;
145 
152  virtual QList<IPresentablePart::Pointer> GetPartList() = 0;
153 
167  virtual QString GetProperty(const QString& id) = 0;
168 };
169 
170 }
171 
172 #endif /* BERRYISTACKPRESENTATIONSITE_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define berryObjectMacro(...)
Definition: berryMacros.h:33
#define BERRY_UI_QT