Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryGuiTkISelectionListener.cpp
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 
18 
19 namespace berry {
20 
21 namespace GuiTk {
22 
24 {
25 }
26 
27 void
30 {
31  if (l.IsNull()) return;
32 
33  selected += Delegate(l.GetPointer(), &ISelectionListener::WidgetSelected);
34  defaultSelected += Delegate(l.GetPointer(), &ISelectionListener::WidgetDefaultSelected);
35 }
36 
37 void
40 {
41  if (l.IsNull()) return;
42 
43  selected -= Delegate(l.GetPointer(), &ISelectionListener::WidgetSelected);
44  defaultSelected -= Delegate(l.GetPointer(), &ISelectionListener::WidgetDefaultSelected);
45 }
46 
47 }
48 
49 }
virtual void WidgetDefaultSelected(SelectionEvent::Pointer)
void AddListener(ISelectionListener *listener)
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:88
virtual void WidgetSelected(SelectionEvent::Pointer)
ObjectType * GetPointer() const
void RemoveListener(ISelectionListener *listener)