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.h
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
18
#ifndef BERRYIWORKBENCHLISTENER_H_
19
#define BERRYIWORKBENCHLISTENER_H_
20
21
#include <
org_blueberry_ui_qt_Export.h
>
22
23
#include "
berryMessage.h
"
24
25
namespace
berry
26
{
27
28
struct
IWorkbench;
29
39
struct
BERRY_UI_QT
IWorkbenchListener
40
{
41
42
struct
Events
{
43
typedef
Message2<IWorkbench*, bool, bool>
PreShutdownEvent
;
44
typedef
Message1<IWorkbench*>
PostShutdownEvent
;
45
46
PreShutdownEvent
preShutdown
;
47
PostShutdownEvent
postShutdown
;
48
49
void
AddListener(
IWorkbenchListener
* listener);
50
void
RemoveListener(
IWorkbenchListener
* listener);
51
52
private
:
53
54
typedef
MessageDelegate2<IWorkbenchListener, IWorkbench*, bool, bool>
Delegate2
;
55
typedef
MessageDelegate1<IWorkbenchListener, IWorkbench*>
Delegate1
;
56
};
57
58
virtual
~
IWorkbenchListener
();
59
82
virtual
bool
PreShutdown
(
IWorkbench
*
/*workbench*/
,
bool
/*forced*/
) {
return
true
; }
83
93
virtual
void
PostShutdown
(
IWorkbench
*
/*workbench*/
) {}
94
95
};
96
97
}
98
99
#endif
/* BERRYIWORKBENCHLISTENER_H_ */
berry
Definition:
QmitkPropertyItemModel.h:27
berryMessage.h
org_blueberry_ui_qt_Export.h
berry::IWorkbenchListener::PreShutdown
virtual bool PreShutdown(IWorkbench *, bool)
Definition:
berryIWorkbenchListener.h:82
berry::IWorkbenchListener::Events::PreShutdownEvent
Message2< IWorkbench *, bool, bool > PreShutdownEvent
Definition:
berryIWorkbenchListener.h:43
berry::IWorkbenchListener::PostShutdown
virtual void PostShutdown(IWorkbench *)
Definition:
berryIWorkbenchListener.h:93
berry::IWorkbenchListener::Events::postShutdown
PostShutdownEvent postShutdown
Definition:
berryIWorkbenchListener.h:47
berry::IWorkbenchListener::Events::PostShutdownEvent
Message1< IWorkbench * > PostShutdownEvent
Definition:
berryIWorkbenchListener.h:44
berry::IWorkbench
Definition:
berryIWorkbench.h:86
berry::Message1< IWorkbench * >
berry::MessageDelegate2
Definition:
berryMessage.h:220
berry::Message2< IWorkbench *, bool, bool >
berry::IWorkbenchListener::Events
Definition:
berryIWorkbenchListener.h:42
berry::IWorkbenchListener::Events::preShutdown
PreShutdownEvent preShutdown
Definition:
berryIWorkbenchListener.h:46
berry::IWorkbenchListener
Definition:
berryIWorkbenchListener.h:39
berry::MessageDelegate1
Definition:
berryMessage.h:174
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:23
git
MITK
Plugins
org.blueberry.ui.qt
src
berryIWorkbenchListener.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1