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
berryIWorkbenchListener.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 "
berryIWorkbenchListener.h
"
18
19
namespace
berry
{
20
21
void
22
IWorkbenchListener::Events
23
::AddListener
(
IWorkbenchListener
* listener)
24
{
25
if
(listener ==
nullptr
)
return
;
26
27
preShutdown +=
Delegate2
(listener, &
IWorkbenchListener::PreShutdown
);
28
postShutdown +=
Delegate1
(listener, &
IWorkbenchListener::PostShutdown
);
29
}
30
31
void
32
IWorkbenchListener::Events
33
::RemoveListener
(
IWorkbenchListener
* listener)
34
{
35
if
(listener ==
nullptr
)
return
;
36
37
preShutdown -=
Delegate2
(listener, &
IWorkbenchListener::PreShutdown
);
38
postShutdown -=
Delegate1
(listener, &
IWorkbenchListener::PostShutdown
);
39
}
40
41
IWorkbenchListener::~IWorkbenchListener
()
42
{
43
}
44
45
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IWorkbenchListener::Events::AddListener
void AddListener(IWorkbenchListener *listener)
Definition:
berryIWorkbenchListener.cpp:23
berry::IWorkbenchListener::~IWorkbenchListener
virtual ~IWorkbenchListener()
Definition:
berryIWorkbenchListener.cpp:41
berry::IWorkbenchListener::PreShutdown
virtual bool PreShutdown(IWorkbench *, bool)
Definition:
berryIWorkbenchListener.h:82
berryIWorkbenchListener.h
berry::IWorkbenchListener::PostShutdown
virtual void PostShutdown(IWorkbench *)
Definition:
berryIWorkbenchListener.h:93
berry::IWorkbenchListener::Events::RemoveListener
void RemoveListener(IWorkbenchListener *listener)
Definition:
berryIWorkbenchListener.cpp:33
berry::MessageDelegate2
Definition:
berryMessage.h:220
berry::IWorkbenchListener
Definition:
berryIWorkbenchListener.h:39
berry::MessageDelegate1
Definition:
berryMessage.h:174
git
MITK
Plugins
org.blueberry.ui.qt
src
berryIWorkbenchListener.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1