Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryCommandManagerEvent.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 BERRYCOMMANDMANAGEREVENT_H_
18 #define BERRYCOMMANDMANAGEREVENT_H_
19 
21 
22 #include <berryObject.h>
23 #include <berryMacros.h>
24 
25 namespace berry
26 {
27 
28 class CommandManager;
29 
39 {
40 
41 public:
42 
44 
69 CommandManagerEvent (CommandManager& commandManager,
70  const QString& commandId, const bool commandIdAdded,
71  const bool commandIdChanged, const QString& categoryId,
72  const bool categoryIdAdded, const bool categoryIdChanged);
73 
94  CommandManagerEvent(CommandManager& commandManager,
95  const QString& parameterTypeId, const bool parameterTypeIdAdded,
96  const bool parameterTypeIdChanged);
97 
104  QString GetCategoryId() const;
105 
112  QString GetCommandId() const;
113 
120  CommandManager& GetCommandManager() const;
121 
130  QString GetParameterTypeId() const;
131 
138  bool IsCategoryChanged() const;
139 
147  bool IsCategoryDefined() const;
148 
155  bool IsCommandChanged() const;
156 
164  bool IsCommandDefined() const;
165 
175  bool IsParameterTypeChanged() const;
176 
187  bool IsParameterTypeDefined() const;
188 
189 private:
190 
197  static const int CHANGED_CATEGORY_DEFINED; // = 1;
198 
205  static const int CHANGED_COMMAND_DEFINED; // = 1 << 1;
206 
216  static const int CHANGED_PARAMETER_TYPE_DEFINED; // = 1 << 2;
217 
223  const QString categoryId;
224 
230  int changedValues;
231 
237  const QString commandId;
238 
245  const QString parameterTypeId;
246 
250  CommandManager& commandManager;
251 
252 };
253 
254 }
255 
256 #endif /* BERRYCOMMANDMANAGEREVENT_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37