Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryICommandListener.cpp
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 #include "berryICommandListener.h"
14 
15 #include "berryCommand.h"
16 #include "berryCommandEvent.h"
17 #include "berryCommandCategory.h"
18 #include "berryState.h"
19 #include "berryIHandler.h"
20 
21 namespace berry {
22 
23 void
26 {
27  if (l == nullptr) return;
28 
29  commandChanged += Delegate(l, &ICommandListener::CommandChanged);
30 }
31 
32 void
35 {
36  if (l == nullptr) return;
37 
38  commandChanged -= Delegate(l, &ICommandListener::CommandChanged);
39 }
40 
42 {
43 }
44 
45 }
46 
47 
48 
void RemoveListener(ICommandListener *listener)
virtual void CommandChanged(const SmartPointer< const CommandEvent > &commandEvent)=0
void AddListener(ICommandListener *listener)