Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIWindowListener.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 BERRYIWINDOWLISTENER_H_
19 #define BERRYIWINDOWLISTENER_H_
20 
22 
23 #include <berryMessage.h>
24 
25 #include "berryIWorkbenchWindow.h"
26 
27 namespace berry
28 {
29 
37 {
38 
39  struct Events {
41 
42  WindowEvent windowActivated;
43  WindowEvent windowDeactivated;
44  WindowEvent windowClosed;
45  WindowEvent windowOpened;
46 
47  void AddListener(IWindowListener* listener);
48  void RemoveListener(IWindowListener* listener);
49 
50  private:
51 
53  };
54 
55  virtual ~IWindowListener();
56 
66  virtual void WindowActivated(const IWorkbenchWindow::Pointer& /*window*/) {}
67 
77  virtual void WindowDeactivated(const IWorkbenchWindow::Pointer& /*window*/) {}
78 
85  virtual void WindowClosed(const IWorkbenchWindow::Pointer& /*window*/) {}
86 
93  virtual void WindowOpened(const IWorkbenchWindow::Pointer& /*window*/) {}
94 
95 };
96 
97 }
98 
99 #endif /* BERRYIWINDOWLISTENER_H_ */
virtual void WindowClosed(const IWorkbenchWindow::Pointer &)
virtual void WindowOpened(const IWorkbenchWindow::Pointer &)
virtual void WindowDeactivated(const IWorkbenchWindow::Pointer &)
virtual void WindowActivated(const IWorkbenchWindow::Pointer &)
Message1< const IWorkbenchWindow::Pointer & > WindowEvent
#define BERRY_UI_QT