Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryICommandListener.cpp
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
#include "
berryICommandListener.h
"
14
15
#include "
berryCommand.h
"
16
#include "
berryCommandEvent.h
"
17
#include "
berryCommandCategory.h
"
18
#include "
berryState.h
"
19
#include "
berryIHandler.h
"
20
21
namespace
berry
{
22
23
void
24
ICommandListener::Events
25
::AddListener
(
ICommandListener
* l)
26
{
27
if
(l ==
nullptr
)
return
;
28
29
commandChanged +=
Delegate
(l, &
ICommandListener::CommandChanged
);
30
}
31
32
void
33
ICommandListener::Events
34
::RemoveListener
(
ICommandListener
* l)
35
{
36
if
(l ==
nullptr
)
return
;
37
38
commandChanged -=
Delegate
(l, &
ICommandListener::CommandChanged
);
39
}
40
41
ICommandListener::~ICommandListener
()
42
{
43
}
44
45
}
46
47
48
berry
Definition:
QmitkPropertyItemModel.h:23
berryICommandListener.h
berry::ICommandListener::Events::RemoveListener
void RemoveListener(ICommandListener *listener)
Definition:
berryICommandListener.cpp:34
berry::ICommandListener::~ICommandListener
virtual ~ICommandListener()
Definition:
berryICommandListener.cpp:41
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:37
berry::ICommandListener::Events::AddListener
void AddListener(ICommandListener *listener)
Definition:
berryICommandListener.cpp:25
berry::MessageDelegate1
Definition:
berryMessage.h:170
berryCommandEvent.h
Source
Plugins
org.blueberry.core.commands
src
berryICommandListener.cpp
Generated on Thu Mar 12 2020 10:23:32 for Medical Imaging Interaction Toolkit by
1.8.13