Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryCommandManagerEvent.h
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 #ifndef BERRYCOMMANDMANAGEREVENT_H_
14 #define BERRYCOMMANDMANAGEREVENT_H_
15 
17 
18 #include <berryObject.h>
19 #include <berryMacros.h>
20 
21 namespace berry
22 {
23 
24 class CommandManager;
25 
35 {
36 
37 public:
38 
40 
66  const QString& commandId, const bool commandIdAdded,
67  const bool commandIdChanged, const QString& categoryId,
68  const bool categoryIdAdded, const bool categoryIdChanged);
69 
91  const QString& parameterTypeId, const bool parameterTypeIdAdded,
92  const bool parameterTypeIdChanged);
93 
100  QString GetCategoryId() const;
101 
108  QString GetCommandId() const;
109 
117 
126  QString GetParameterTypeId() const;
127 
134  bool IsCategoryChanged() const;
135 
143  bool IsCategoryDefined() const;
144 
151  bool IsCommandChanged() const;
152 
160  bool IsCommandDefined() const;
161 
172 
184 
185 private:
186 
193  static const int CHANGED_CATEGORY_DEFINED; // = 1;
194 
201  static const int CHANGED_COMMAND_DEFINED; // = 1 << 1;
202 
212  static const int CHANGED_PARAMETER_TYPE_DEFINED; // = 1 << 2;
213 
219  const QString categoryId;
220 
226  int changedValues;
227 
233  const QString commandId;
234 
241  const QString parameterTypeId;
242 
246  CommandManager& commandManager;
247 
248 };
249 
250 }
251 
252 #endif /* BERRYCOMMANDMANAGEREVENT_H_ */
QString GetCommandId() const
bool IsCategoryChanged() const
QString GetCategoryId() const
bool IsParameterTypeChanged() const
bool IsParameterTypeDefined() const
CommandManagerEvent(CommandManager &commandManager, const QString &parameterTypeId, const bool parameterTypeIdAdded, const bool parameterTypeIdChanged)
CommandManagerEvent(CommandManager &commandManager, const QString &commandId, const bool commandIdAdded, const bool commandIdChanged, const QString &categoryId, const bool categoryIdAdded, const bool categoryIdChanged)
QString GetParameterTypeId() const
CommandManager & GetCommandManager() const
berryObjectMacro(CommandManagerEvent)
bool IsCategoryDefined() const
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73