Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
berryIWindowListener.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 BERRYIWINDOWLISTENER_H_
15 #define BERRYIWINDOWLISTENER_H_
16 
18 
19 #include <berryMessage.h>
20 
21 #include "berryIWorkbenchWindow.h"
22 
23 namespace berry
24 {
25 
33 {
34 
35  struct Events {
37 
38  WindowEvent windowActivated;
39  WindowEvent windowDeactivated;
40  WindowEvent windowClosed;
41  WindowEvent windowOpened;
42 
43  void AddListener(IWindowListener* listener);
44  void RemoveListener(IWindowListener* listener);
45 
46  private:
47 
49  };
50 
51  virtual ~IWindowListener();
52 
62  virtual void WindowActivated(const IWorkbenchWindow::Pointer& /*window*/) {}
63 
73  virtual void WindowDeactivated(const IWorkbenchWindow::Pointer& /*window*/) {}
74 
81  virtual void WindowClosed(const IWorkbenchWindow::Pointer& /*window*/) {}
82 
89  virtual void WindowOpened(const IWorkbenchWindow::Pointer& /*window*/) {}
90 
91 };
92 
93 }
94 
95 #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