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
berryIHandlerListener.cpp
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
#include "
berryIHandlerListener.h
"
18
19
#include "
berryIHandler.h
"
20
#include "
berryHandlerEvent.h
"
21
22
namespace
berry
{
23
24
void
25
IHandlerListener::Events
26
::AddListener
(
IHandlerListener
* l)
27
{
28
if
(l ==
nullptr
)
return
;
29
30
handlerChanged +=
Delegate
(l, &
IHandlerListener::HandlerChanged
);
31
}
32
33
void
34
IHandlerListener::Events
35
::RemoveListener
(
IHandlerListener
* l)
36
{
37
if
(l ==
nullptr
)
return
;
38
39
handlerChanged -=
Delegate
(l, &
IHandlerListener::HandlerChanged
);
40
}
41
42
IHandlerListener::~IHandlerListener
()
43
{
44
}
45
46
}
47
berry
Definition:
QmitkPropertyItemModel.h:27
berryHandlerEvent.h
berry::IHandlerListener::Events::RemoveListener
void RemoveListener(IHandlerListener *listener)
Definition:
berryIHandlerListener.cpp:35
berryIHandler.h
berry::IHandlerListener::Events::AddListener
void AddListener(IHandlerListener *listener)
Definition:
berryIHandlerListener.cpp:26
berryIHandlerListener.h
berry::IHandlerListener
Definition:
berryIHandlerListener.h:41
berry::IHandlerListener::~IHandlerListener
virtual ~IHandlerListener()
Definition:
berryIHandlerListener.cpp:42
berry::IHandlerListener::HandlerChanged
virtual void HandlerChanged(const SmartPointer< HandlerEvent > &handlerEvent)=0
berry::MessageDelegate1
Definition:
berryMessage.h:174
git
MITK
Plugins
org.blueberry.core.commands
src
berryIHandlerListener.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1