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