Medical Imaging Interaction Toolkit  2023.04.00
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_ */
org_blueberry_ui_qt_Export.h
berry::IStackPresentationSite
Definition: berryIStackPresentationSite.h:34
berryMacros.h
berry::SmartPointer< Self >
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::IStackPresentationSite::STATE_MINIMIZED
static int STATE_MINIMIZED
Definition: berryIStackPresentationSite.h:39
berry::IStackPresentationSite::STATE_MAXIMIZED
static int STATE_MAXIMIZED
Definition: berryIStackPresentationSite.h:41
berryIPresentablePart.h
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IStackPresentationSite::STATE_RESTORED
static int STATE_RESTORED
Definition: berryIStackPresentationSite.h:43
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:33
berry
Definition: QmitkPropertyItemModel.h:24