Medical Imaging Interaction Toolkit  2024.06.00
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 
42 
43  void AddListener(IWindowListener* listener);
44  void RemoveListener(IWindowListener* listener);
45 
46  private:
47 
49  };
50 
51  virtual ~IWindowListener();
52 
60  virtual void WindowActivated(const IWorkbenchWindow::Pointer& /*window*/) {}
61 
69  virtual void WindowDeactivated(const IWorkbenchWindow::Pointer& /*window*/) {}
70 
76  virtual void WindowClosed(const IWorkbenchWindow::Pointer& /*window*/) {}
77 
83  virtual void WindowOpened(const IWorkbenchWindow::Pointer& /*window*/) {}
84 
85 };
86 
87 }
88 
89 #endif /* BERRYIWINDOWLISTENER_H_ */
org_blueberry_ui_qt_Export.h
berry::IWindowListener::Events::windowDeactivated
WindowEvent windowDeactivated
Definition: berryIWindowListener.h:39
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berryMessage.h
berry::Message1< const IWorkbenchWindow::Pointer & >
berry::IWindowListener::Events::windowOpened
WindowEvent windowOpened
Definition: berryIWindowListener.h:41
berryIWorkbenchWindow.h
berry::IWindowListener::Events
Definition: berryIWindowListener.h:35
berry::MessageDelegate1
Definition: berryMessage.h:170
berry::IWindowListener::WindowActivated
virtual void WindowActivated(const IWorkbenchWindow::Pointer &)
Definition: berryIWindowListener.h:60
berry::IWindowListener::WindowOpened
virtual void WindowOpened(const IWorkbenchWindow::Pointer &)
Definition: berryIWindowListener.h:83
berry::IWindowListener::Events::windowActivated
WindowEvent windowActivated
Definition: berryIWindowListener.h:38
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IWindowListener::Events::windowClosed
WindowEvent windowClosed
Definition: berryIWindowListener.h:40
berry::IWindowListener
Definition: berryIWindowListener.h:32
berry::IWindowListener::Events::WindowEvent
Message1< const IWorkbenchWindow::Pointer & > WindowEvent
Definition: berryIWindowListener.h:36
berry::IWindowListener::WindowClosed
virtual void WindowClosed(const IWorkbenchWindow::Pointer &)
Definition: berryIWindowListener.h:76
berry
Definition: QmitkPropertyItemModel.h:24
berry::IWindowListener::WindowDeactivated
virtual void WindowDeactivated(const IWorkbenchWindow::Pointer &)
Definition: berryIWindowListener.h:69