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