Medical Imaging Interaction Toolkit
2025.12.02
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
berryAbstractHandler.h
berryIObjectWithState.h
berryIStateListener.h
berry::AbstractHandlerWithState
Definition:
berryAbstractHandlerWithState.h:40
berry::AbstractHandlerWithState::berryObjectMacro
berryObjectMacro(berry::AbstractHandlerWithState)
berry::AbstractHandlerWithState::RemoveState
void RemoveState(const QString &stateId) override
berry::AbstractHandlerWithState::GetStateIds
QList< QString > GetStateIds() const override
berry::AbstractHandlerWithState::GetState
SmartPointer< State > GetState(const QString &stateId) const override
berry::AbstractHandlerWithState::AddState
void AddState(const QString &stateId, const SmartPointer< State > &state) override
berry::AbstractHandler
Definition:
berryAbstractHandler.h:34
berry::SmartPointer
Implements transparent reference counting.
Definition:
berrySmartPointer.h:32
berry
Definition:
QmitkPropertyItemModel.h:25
org_blueberry_core_commands_Export.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:26
berry::IObjectWithState
Definition:
berryIObjectWithState.h:36
berry::IStateListener
Definition:
berryIStateListener.h:37
src
MITK
Plugins
org.blueberry.core.commands
src
berryAbstractHandlerWithState.h
Generated on Mon Feb 23 2026 23:28:07 for Medical Imaging Interaction Toolkit by
1.9.1