Medical Imaging Interaction Toolkit  2024.06.00
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 
65 CommandManagerEvent (CommandManager& commandManager,
66  const QString& commandId, const bool commandIdAdded,
67  const bool commandIdChanged, const QString& categoryId,
68  const bool categoryIdAdded, const bool categoryIdChanged);
69 
90  CommandManagerEvent(CommandManager& commandManager,
91  const QString& parameterTypeId, const bool parameterTypeIdAdded,
92  const bool parameterTypeIdChanged);
93 
100  QString GetCategoryId() const;
101 
108  QString GetCommandId() const;
109 
116  CommandManager& GetCommandManager() const;
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 
171  bool IsParameterTypeChanged() const;
172 
183  bool IsParameterTypeDefined() const;
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_ */
berry::CommandManager
Definition: berryCommandManager.h:49
org_blueberry_core_commands_Export.h
berryMacros.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition: org_blueberry_core_commands_Export.h:26
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
berry::CommandManagerEvent
Definition: berryCommandManagerEvent.h:34
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berryObject.h
berry
Definition: QmitkPropertyItemModel.h:24