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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berryIStateListener.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
18
#ifndef BERRYISTATELISTENER_H_
19
#define BERRYISTATELISTENER_H_
20
21
#include <
org_blueberry_core_commands_Export.h
>
22
23
#include "
berryMessage.h
"
24
25
namespace
berry
{
26
27
template
<
class
T>
class
SmartPointer;
28
29
class
Object;
30
class
State;
31
40
struct
BERRY_COMMANDS
IStateListener
41
{
42
43
struct
Events
{
44
45
typedef
Message2<const SmartPointer<State>
&,
const
SmartPointer<Object>
&>
StateEvent
;
46
47
StateEvent
stateChanged
;
48
49
void
AddListener(
IStateListener
* listener);
50
void
RemoveListener(
IStateListener
* listener);
51
52
private
:
53
typedef
MessageDelegate2<IStateListener, const SmartPointer<State>
&,
const
SmartPointer<Object>
&>
Delegate
;
54
};
55
56
virtual
~
IStateListener
();
57
67
virtual
void
HandleStateChange(
const
SmartPointer<State>
& state,
68
const
SmartPointer<Object>
& oldValue) = 0;
69
};
70
71
72
}
73
74
#endif
/* BERRYISTATELISTENER_H_ */
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IStateListener::Events::StateEvent
Message2< const SmartPointer< State > &, const SmartPointer< Object > & > StateEvent
Definition:
berryIStateListener.h:45
berryMessage.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:25
berry::IStateListener::Events
Definition:
berryIStateListener.h:43
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:23
berry::IStateListener::Events::stateChanged
StateEvent stateChanged
Definition:
berryIStateListener.h:47
org_blueberry_core_commands_Export.h
berry::MessageDelegate2
Definition:
berryMessage.h:220
berry::Message2
Definition:
berryMessage.h:862
berry::IStateListener
Definition:
berryIStateListener.h:40
git
MITK
Plugins
org.blueberry.core.commands
src
berryIStateListener.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1