Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryCommandContributionItemParameter.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 
18 #ifndef BERRYCOMMANDCONTRIBUTIONITEMPARAMETER_H
19 #define BERRYCOMMANDCONTRIBUTIONITEMPARAMETER_H
20 
21 #include <QHash>
22 #include <QIcon>
23 #include <QKeySequence>
24 
26 
27 namespace berry {
28 
29 struct IServiceLocator;
30 
37 {
38 
39 public:
40 
42 
43 
49  IServiceLocator* serviceLocator;
50 
55  QString id;
56 
60  QString commandId;
61 
67  QHash<QString, Object::Pointer> parameters;
68 
72  QIcon icon;
73 
77  QString label;
78 
83  QChar mnemonic;
84 
89  QKeySequence shortcut;
90 
95  QString tooltip;
96 
102 
107  QString helpContextId;
108 
112  QString iconStyle;
113 
118 
123  CommandContributionItem::Modes mode;
124 
143  const QString& id, const QString& commandId,
145 
191  const QString& id, const QString& commandId,
192  const QHash<QString, Object::Pointer> &parameters,
193  const QIcon& icon, const QString label,
194  const QChar &mnemonic, const QString& tooltip,
195  CommandContributionItem::Style style, const QString& helpContextId,
196  bool visibleEnabled);
197 };
198 
199 }
200 
201 #endif // BERRYCOMMANDCONTRIBUTIONITEM_H
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT