Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
berryGuiTkISelectionListener.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 #ifndef BERRYGUITKISELECTIONLISTENER_H_
14 #define BERRYGUITKISELECTIONLISTENER_H_
15 
16 #include <berryMacros.h>
17 #include <berryMessage.h>
18 
20 
21 namespace berry
22 {
23 
24 namespace GuiTk
25 {
26 
43 struct BERRY_UI_QT ISelectionListener: public virtual Object
44 {
45 
47 
49 
51 
52  EventType selected;
53  EventType defaultSelected;
54 
55  void AddListener(ISelectionListener::Pointer listener);
56  void RemoveListener(ISelectionListener::Pointer listener);
57 
58  private:
60  };
61 
62  ~ISelectionListener() override;
63 
75 
88 };
89 
90 }
91 
92 }
93 
94 #endif /* BERRYGUITKISELECTIONLISTENER_H_ */
virtual void WidgetDefaultSelected(SelectionEvent::Pointer)
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define berryObjectMacro(...)
Definition: berryMacros.h:33
virtual void WidgetSelected(SelectionEvent::Pointer)
Message1< SelectionEvent::Pointer > EventType
#define BERRY_UI_QT