Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
berryState.h
Go to the documentation of this file.
1
/*===================================================================
2
3
BlueBerry Platform
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef BERRYSTATE_H_
18
#define BERRYSTATE_H_
19
20
#include <
berryMacros.h
>
21
#include <
berryObject.h
>
22
#include <
org_blueberry_core_commands_Export.h
>
23
24
#include "
berryIStateListener.h
"
25
26
namespace
berry
{
27
46
class
BERRY_COMMANDS
State
:
public
Object
{
47
48
public
:
49
50
berryObjectMacro
(
State
);
51
58
virtual
void
AddListener(
IStateListener
* listener);
59
60
void
AddListener(
const
IStateListener::Events::StateEvent::AbstractDelegate
& delegate);
61
67
QString GetId()
const
;
68
77
virtual
Object::Pointer
GetValue()
const
;
78
85
virtual
void
RemoveListener(
IStateListener
* listener);
86
87
void
RemoveListener(
const
IStateListener::Events::StateEvent::AbstractDelegate
& delegate);
88
96
virtual
void
SetId(
const
QString&
id
);
97
104
virtual
void
SetValue(
const
Object::Pointer
& value);
105
106
107
protected
:
108
115
void
FireStateChanged(
const
Object::Pointer
& oldValue);
116
117
IStateListener::Events
stateEvents
;
118
119
private
:
120
125
QString id;
126
130
Object::Pointer
value;
131
132
};
133
134
}
135
136
Q_DECLARE_INTERFACE(
berry::State
,
"org.blueberry.core.commands.State"
)
137
138
#endif
/*BERRYSTATE_H_*/
berry
Definition:
QmitkPropertyItemModel.h:27
berry::State::stateEvents
IStateListener::Events stateEvents
Definition:
berryState.h:117
berryMacros.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:78
berry::SmartPointer< Self >
berry::IStateListener::Events
Definition:
berryIStateListener.h:43
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:37
berryIStateListener.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:23
berry::State
Definition:
berryState.h:46
berryObject.h
org_blueberry_core_commands_Export.h
berry::MessageAbstractDelegate2
Definition:
berryMessage.h:86
berry::IStateListener
Definition:
berryIStateListener.h:40
git
MITK
Plugins
org.blueberry.core.commands
src
berryState.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1