Medical Imaging Interaction Toolkit
2024.06.99-c1478648
Medical Imaging Interaction Toolkit
berryIWorkbenchListener.h
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
14
#ifndef BERRYIWORKBENCHLISTENER_H_
15
#define BERRYIWORKBENCHLISTENER_H_
16
17
#include <
org_blueberry_ui_qt_Export.h
>
18
19
#include "
berryMessage.h
"
20
21
namespace
berry
22
{
23
24
struct
IWorkbench;
25
35
struct
BERRY_UI_QT
IWorkbenchListener
36
{
37
38
struct
Events
{
39
typedef
Message2<IWorkbench*, bool, bool>
PreShutdownEvent
;
40
typedef
Message1<IWorkbench*>
PostShutdownEvent
;
41
42
PreShutdownEvent
preShutdown
;
43
PostShutdownEvent
postShutdown
;
44
45
void
AddListener(
IWorkbenchListener
* listener);
46
void
RemoveListener(
IWorkbenchListener
* listener);
47
48
private
:
49
50
typedef
MessageDelegate2<IWorkbenchListener, IWorkbench*, bool, bool>
Delegate2
;
51
typedef
MessageDelegate1<IWorkbenchListener, IWorkbench*>
Delegate1
;
52
};
53
54
virtual
~
IWorkbenchListener
();
55
75
virtual
bool
PreShutdown
(
IWorkbench
*
/*workbench*/
,
bool
/*forced*/
) {
return
true
; }
76
84
virtual
void
PostShutdown
(
IWorkbench
*
/*workbench*/
) {}
85
86
};
87
88
}
89
90
#endif
/* BERRYIWORKBENCHLISTENER_H_ */
berry::IWorkbenchListener::PreShutdown
virtual bool PreShutdown(IWorkbench *, bool)
Definition:
berryIWorkbenchListener.h:75
org_blueberry_ui_qt_Export.h
berry::IWorkbenchListener::PostShutdown
virtual void PostShutdown(IWorkbench *)
Definition:
berryIWorkbenchListener.h:84
berryMessage.h
berry::Message1< IWorkbench * >
berry::IWorkbenchListener::Events::postShutdown
PostShutdownEvent postShutdown
Definition:
berryIWorkbenchListener.h:43
berry::MessageDelegate1
Definition:
berryMessage.h:170
berry::IWorkbenchListener::Events::PostShutdownEvent
Message1< IWorkbench * > PostShutdownEvent
Definition:
berryIWorkbenchListener.h:40
berry::Message2< IWorkbench *, bool, bool >
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:26
berry::IWorkbenchListener::Events::PreShutdownEvent
Message2< IWorkbench *, bool, bool > PreShutdownEvent
Definition:
berryIWorkbenchListener.h:39
berry::MessageDelegate2
Definition:
berryMessage.h:216
berry::IWorkbenchListener
Definition:
berryIWorkbenchListener.h:35
berry::IWorkbenchListener::Events::preShutdown
PreShutdownEvent preShutdown
Definition:
berryIWorkbenchListener.h:42
berry::IWorkbenchListener::Events
Definition:
berryIWorkbenchListener.h:38
berry::IWorkbench
Definition:
berryIWorkbench.h:80
berry
Definition:
QmitkPropertyItemModel.h:24
src
MITK
Plugins
org.blueberry.ui.qt
src
berryIWorkbenchListener.h
Generated on Mon Oct 7 2024 02:32:58 for Medical Imaging Interaction Toolkit by
1.8.17