Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryStackPresentation.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
14
#ifndef BERRYSTACKPRESENTATION_H_
15
#define BERRYSTACKPRESENTATION_H_
16
17
#include <
berryMacros.h
>
18
19
#include <
org_blueberry_ui_qt_Export.h
>
20
21
#include "
berryIStackPresentationSite.h
"
22
#include "
berryIPresentationSerializer.h
"
23
#include "
berryStackDropResult.h
"
24
25
#include "
berryISizeProvider.h
"
26
#include "
berryIMemento.h
"
27
28
namespace
berry
29
{
30
52
class
BERRY_UI_QT
StackPresentation
:
public
Object
,
public
ISizeProvider
{
53
54
public
:
55
56
berryObjectMacro
(
StackPresentation
);
57
58
private
:
59
63
IStackPresentationSite::WeakPtr
site;
64
65
protected
:
66
72
StackPresentation
(
IStackPresentationSite::Pointer
stackSite);
73
74
~
StackPresentation
()
override
;
75
80
IStackPresentationSite::Pointer
GetSite();
81
82
public
:
83
87
static
const
int
AS_INACTIVE
;
// = 0;
88
92
static
const
int
AS_ACTIVE_FOCUS
;
// = 1;
93
98
static
const
int
AS_ACTIVE_NOFOCUS
;
// = 2;
99
105
virtual
void
SetBounds(
const
QRect& bounds) = 0;
106
118
virtual
QSize ComputeMinimumSize();
119
120
/*
121
* @see ISizeProvider#getSizeFlags(boolean)
122
*/
123
int
GetSizeFlags(
bool
width)
override
;
124
125
/*
126
* @see ISizeProvider#computePreferredSize(boolean, int, int, int)
127
*/
128
int
ComputePreferredSize(
bool
width,
int
availableParallel,
int
availablePerpendicular,
int
preferredResult)
override
;
129
137
virtual
void
SetActive(
int
newState) = 0;
138
150
virtual
void
SetVisible(
bool
isVisible) = 0;
151
165
virtual
void
SetState(
int
state) = 0;
166
172
virtual
QWidget* GetControl() = 0;
173
186
virtual
void
AddPart(
IPresentablePart::Pointer
newPart,
Object::Pointer
cookie) = 0;
187
193
virtual
void
RemovePart(
IPresentablePart::Pointer
oldPart) = 0;
194
203
virtual
void
MovePart(
IPresentablePart::Pointer
toMove,
Object::Pointer
cookie);
204
211
virtual
void
SelectPart(
IPresentablePart::Pointer
toSelect) = 0;
212
223
virtual
StackDropResult::Pointer
DragOver(QWidget* currentControl,
const
QPoint& location) = 0;
224
229
// virtual void ShowSystemMenu() = 0;
230
234
// virtual void ShowPaneMenu() = 0;
235
240
virtual
void
ShowPartList();
241
249
virtual
void
SaveState(
IPresentationSerializer
* context,
IMemento::Pointer
memento);
250
258
virtual
void
RestoreState(
IPresentationSerializer
* context,
IMemento::Pointer
memento);
259
266
virtual
QList<QWidget*> GetTabList(
IPresentablePart::Pointer
part) = 0;
267
};
268
269
}
270
271
#endif
/* BERRYSTACKPRESENTATION_H_ */
org_blueberry_ui_qt_Export.h
berryIStackPresentationSite.h
berry::StackPresentation
Definition:
berryStackPresentation.h:52
berryIMemento.h
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berry::ISizeProvider
Definition:
berryISizeProvider.h:28
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
berry::StackPresentation::AS_INACTIVE
static const int AS_INACTIVE
Definition:
berryStackPresentation.h:87
berryStackDropResult.h
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:26
berryIPresentationSerializer.h
berry::StackPresentation::AS_ACTIVE_FOCUS
static const int AS_ACTIVE_FOCUS
Definition:
berryStackPresentation.h:92
berry::StackPresentation::AS_ACTIVE_NOFOCUS
static const int AS_ACTIVE_NOFOCUS
Definition:
berryStackPresentation.h:98
berryISizeProvider.h
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:31
berry::WeakPointer
implements a WeakPointer class to deal with circular reference problems.
Definition:
berrySmartPointer.h:32
berry
Definition:
QmitkPropertyItemModel.h:24
berry::IPresentationSerializer
Definition:
berryIPresentationSerializer.h:32
src
MITK
Plugins
org.blueberry.ui.qt
src
presentations
berryStackPresentation.h
Generated on Sat Nov 23 2024 02:13:08 for Medical Imaging Interaction Toolkit by
1.8.17