Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryISelectionProvider.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 BERRYISELECTIONPROVIDER_H_
18 #define BERRYISELECTIONPROVIDER_H_
19 
20 #include <berryMacros.h>
21 
23 #include "berryISelection.h"
24 
25 namespace berry
26 {
27 
37 struct BERRY_UI_QT ISelectionProvider : public virtual Object
38 {
39 
41 
43 
50  virtual void AddSelectionChangedListener(ISelectionChangedListener* listener) = 0;
51 
57  virtual ISelection::ConstPointer GetSelection() const = 0;
58 
65  virtual void RemoveSelectionChangedListener(
66  ISelectionChangedListener* listener) = 0;
67 
73  virtual void SetSelection(const ISelection::ConstPointer& selection) = 0;
74 };
75 
76 }
77 
78 #endif /*BERRYISELECTIONPROVIDER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT