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
berryIShellListener.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 "
berryIShellListener.h
"
18
#include "
berryShell.h
"
19
20
namespace
berry
{
21
22
void
23
IShellListener::Events
24
::AddListener
(
IShellListener
* listener)
25
{
26
if
(listener ==
nullptr
)
return
;
27
28
shellActivated +=
Delegate
(listener, &
IShellListener::ShellActivated
);
29
shellClosed +=
Delegate
(listener, &
IShellListener::ShellClosed
);
30
shellDeactivated +=
Delegate
(listener, &
IShellListener::ShellDeactivated
);
31
shellDeiconified +=
Delegate
(listener, &
IShellListener::ShellDeiconified
);
32
shellIconified +=
Delegate
(listener, &
IShellListener::ShellIconified
);
33
}
34
35
void
36
IShellListener::Events
37
::RemoveListener
(
IShellListener
* listener)
38
{
39
if
(listener ==
nullptr
)
return
;
40
41
shellActivated -=
Delegate
(listener, &
IShellListener::ShellActivated
);
42
shellClosed -=
Delegate
(listener, &
IShellListener::ShellClosed
);
43
shellDeactivated -=
Delegate
(listener, &
IShellListener::ShellDeactivated
);
44
shellDeiconified -=
Delegate
(listener, &
IShellListener::ShellDeiconified
);
45
shellIconified -=
Delegate
(listener, &
IShellListener::ShellIconified
);
46
}
47
48
IShellListener::~IShellListener
()
49
{
50
}
51
52
void
IShellListener::ShellActivated
(
const
ShellEvent::Pointer
&
/*e*/
)
53
{}
54
void
IShellListener::ShellClosed
(
const
ShellEvent::Pointer
&
/*e*/
)
55
{}
56
void
IShellListener::ShellDeactivated
(
const
ShellEvent::Pointer
&
/*e*/
)
57
{}
58
void
IShellListener::ShellDeiconified
(
const
ShellEvent::Pointer
&
/*e*/
)
59
{}
60
void
IShellListener::ShellIconified
(
const
ShellEvent::Pointer
&
/*e*/
)
61
{}
62
63
}
berry::IShellListener::ShellDeactivated
virtual void ShellDeactivated(const ShellEvent::Pointer &e)
Definition:
berryIShellListener.cpp:56
berry::IShellListener::ShellClosed
virtual void ShellClosed(const ShellEvent::Pointer &e)
Definition:
berryIShellListener.cpp:54
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IShellListener::~IShellListener
virtual ~IShellListener()
Definition:
berryIShellListener.cpp:48
berry::IShellListener
Definition:
berryIShellListener.h:44
berry::IShellListener::ShellActivated
virtual void ShellActivated(const ShellEvent::Pointer &e)
Definition:
berryIShellListener.cpp:52
berry::SmartPointer< Self >
berryIShellListener.h
berryShell.h
berry::IShellListener::ShellDeiconified
virtual void ShellDeiconified(const ShellEvent::Pointer &e)
Definition:
berryIShellListener.cpp:58
berry::IShellListener::Events::AddListener
void AddListener(IShellListener *listener)
Definition:
berryIShellListener.cpp:24
berry::IShellListener::ShellIconified
virtual void ShellIconified(const ShellEvent::Pointer &e)
Definition:
berryIShellListener.cpp:60
berry::IShellListener::Events::RemoveListener
void RemoveListener(IShellListener *listener)
Definition:
berryIShellListener.cpp:37
berry::MessageDelegate1
Definition:
berryMessage.h:174
git
MITK
Plugins
org.blueberry.ui.qt
src
berryIShellListener.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1