Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryGuiTkISelectionListener.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 #ifndef BERRYGUITKISELECTIONLISTENER_H_
18 #define BERRYGUITKISELECTIONLISTENER_H_
19 
20 #include <berryMacros.h>
21 #include <berryMessage.h>
22 
24 
25 namespace berry
26 {
27 
28 namespace GuiTk
29 {
30 
47 struct BERRY_UI_QT ISelectionListener: public virtual Object
48 {
49 
51 
52  struct BERRY_UI_QT Events {
53 
54  typedef Message1<SelectionEvent::Pointer> EventType;
55 
56  EventType selected;
57  EventType defaultSelected;
58 
59  void AddListener(ISelectionListener::Pointer listener);
60  void RemoveListener(ISelectionListener::Pointer listener);
61 
62  private:
64  };
65 
66  virtual ~ISelectionListener();
67 
80  virtual void WidgetSelected(SelectionEvent::Pointer /*e*/) {}
81 
96 };
97 
98 }
99 
100 }
101 
102 #endif /* BERRYGUITKISELECTIONLISTENER_H_ */
virtual void WidgetDefaultSelected(SelectionEvent::Pointer)
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
virtual void WidgetSelected(SelectionEvent::Pointer)
berryObjectMacro(berry::GuiTk::ISelectionListener) struct BERRY_UI_QT Events
#define BERRY_UI_QT