Medical Imaging Interaction Toolkit  2021.10.99-fd647480
Medical Imaging Interaction Toolkit
berryISelectionChangedListener.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 BERRYISELECTIONCHANGEDLISTENER_H_
14 #define BERRYISELECTIONCHANGEDLISTENER_H_
15 
17 
18 #include <berryMacros.h>
19 #include <berryMessage.h>
20 
22 
23 namespace berry
24 {
25 
26 class SelectionChangedEvent;
27 
38 {
39 
41 
43 
44  void AddListener(ISelectionChangedListener* listener);
45  void RemoveListener(ISelectionChangedListener* listener);
46 
47  private:
48 
50  };
51 
52  virtual ~ISelectionChangedListener();
53 
59  virtual void SelectionChanged(const SelectionChangedEvent::Pointer& event) = 0;
60 };
61 
62 }
63 
64 #endif /*BERRYISELECTIONCHANGEDLISTENER_H_*/
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:82
Message1< const SelectionChangedEvent::Pointer & > selectionChanged
#define BERRY_UI_QT