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
berryIWindowListener.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 "
berryIWindowListener.h
"
18
19
namespace
berry
{
20
21
void
22
IWindowListener::Events
23
::AddListener
(
IWindowListener
* listener)
24
{
25
if
(listener ==
nullptr
)
return
;
26
27
windowActivated +=
Delegate
(listener, &
IWindowListener::WindowActivated
);
28
windowDeactivated +=
Delegate
(listener, &
IWindowListener::WindowDeactivated
);
29
windowClosed +=
Delegate
(listener, &
IWindowListener::WindowClosed
);
30
windowOpened +=
Delegate
(listener, &
IWindowListener::WindowOpened
);
31
}
32
33
void
34
IWindowListener::Events
35
::RemoveListener
(
IWindowListener
* listener)
36
{
37
if
(listener ==
nullptr
)
return
;
38
39
windowActivated -=
Delegate
(listener, &
IWindowListener::WindowActivated
);
40
windowDeactivated -=
Delegate
(listener, &
IWindowListener::WindowDeactivated
);
41
windowClosed -=
Delegate
(listener, &
IWindowListener::WindowClosed
);
42
windowOpened -=
Delegate
(listener, &
IWindowListener::WindowOpened
);
43
}
44
45
IWindowListener::~IWindowListener
()
46
{
47
}
48
49
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IWindowListener::Events::RemoveListener
void RemoveListener(IWindowListener *listener)
Definition:
berryIWindowListener.cpp:35
berry::IWindowListener::WindowClosed
virtual void WindowClosed(const IWorkbenchWindow::Pointer &)
Definition:
berryIWindowListener.h:85
berry::IWindowListener::WindowOpened
virtual void WindowOpened(const IWorkbenchWindow::Pointer &)
Definition:
berryIWindowListener.h:93
berry::IWindowListener::WindowDeactivated
virtual void WindowDeactivated(const IWorkbenchWindow::Pointer &)
Definition:
berryIWindowListener.h:77
berry::IWindowListener
Definition:
berryIWindowListener.h:36
berry::IWindowListener::Events::AddListener
void AddListener(IWindowListener *listener)
Definition:
berryIWindowListener.cpp:23
berry::IWindowListener::WindowActivated
virtual void WindowActivated(const IWorkbenchWindow::Pointer &)
Definition:
berryIWindowListener.h:66
berryIWindowListener.h
berry::MessageDelegate1
Definition:
berryMessage.h:174
berry::IWindowListener::~IWindowListener
virtual ~IWindowListener()
Definition:
berryIWindowListener.cpp:45
git
MITK
Plugins
org.blueberry.ui.qt
src
berryIWindowListener.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1