Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryICommandListener.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 
17 #include "berryICommandListener.h"
18 
19 #include "berryCommand.h"
20 #include "berryCommandEvent.h"
21 #include "berryCommandCategory.h"
22 #include "berryState.h"
23 #include "berryIHandler.h"
24 
25 namespace berry {
26 
27 void
30 {
31  if (l == nullptr) return;
32 
33  commandChanged += Delegate(l, &ICommandListener::CommandChanged);
34 }
35 
36 void
39 {
40  if (l == nullptr) return;
41 
42  commandChanged -= Delegate(l, &ICommandListener::CommandChanged);
43 }
44 
46 {
47 }
48 
49 }
50 
51 
52 
void RemoveListener(ICommandListener *listener)
virtual void CommandChanged(const SmartPointer< const CommandEvent > &commandEvent)=0
void AddListener(ICommandListener *listener)