Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
berryAbstractHandlerWithState.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 BERRYABSTRACTHANDLERWITHSTATE_H
14
#define BERRYABSTRACTHANDLERWITHSTATE_H
15
16
#include "
berryAbstractHandler.h
"
17
#include "
berryIObjectWithState.h
"
18
#include "
berryIStateListener.h
"
19
20
#include <
org_blueberry_core_commands_Export.h
>
21
22
namespace
berry
{
23
24
class
State;
25
38
class
BERRY_COMMANDS
AbstractHandlerWithState
:
public
AbstractHandler
,
public
IObjectWithState
,
39
protected
IStateListener
40
{
41
42
private
:
43
48
QHash<QString,SmartPointer<State> > states;
49
50
public
:
51
52
berryObjectMacro
(
berry::AbstractHandlerWithState
);
53
71
void
AddState(
const
QString& stateId,
const
SmartPointer<State>
& state)
override
;
72
73
SmartPointer<State>
GetState(
const
QString& stateId)
const override
;
74
75
QList<QString> GetStateIds()
const override
;
76
92
void
RemoveState(
const
QString& stateId)
override
;
93
};
94
95
}
96
97
#endif // BERRYABSTRACTHANDLERWITHSTATE_H
berry::AbstractHandlerWithState
Definition:
berryAbstractHandlerWithState.h:38
berryIObjectWithState.h
org_blueberry_core_commands_Export.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berryIStateListener.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:26
berry::AbstractHandler
Definition:
berryAbstractHandler.h:34
berry::IObjectWithState
Definition:
berryIObjectWithState.h:35
berryAbstractHandler.h
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:33
berry::IStateListener
Definition:
berryIStateListener.h:36
berry
Definition:
QmitkPropertyItemModel.h:24
src
MITK
Plugins
org.blueberry.core.commands
src
berryAbstractHandlerWithState.h
Generated on Wed May 17 2023 16:26:01 for Medical Imaging Interaction Toolkit by
1.8.17