Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <berryCommandContributionItemParameter.h>
Public Attributes | |
IServiceLocator * | serviceLocator |
QString | id |
QString | commandId |
QHash< QString, Object::Pointer > | parameters |
QIcon | icon |
QString | label |
QChar | mnemonic |
QKeySequence | shortcut |
QString | tooltip |
CommandContributionItem::Style | style |
QString | helpContextId |
QString | iconStyle |
bool | visibleEnabled |
CommandContributionItem::Modes | mode |
Additional Inherited Members | |
Public Types inherited from berry::Object | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Object | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A help class for the various parameters that can be used with command contributions. Mandatory parameters are in the constructor, and public fields can be set to fill in other parameters.
Definition at line 32 of file berryCommandContributionItemParameter.h.
berry::CommandContributionItemParameter::CommandContributionItemParameter | ( | IServiceLocator * | serviceLocator, |
const QString & | id, | ||
const QString & | commandId, | ||
CommandContributionItem::Style | style | ||
) |
Create the parameter object. Nullable attributes can be set directly.
serviceLocator | a service locator that is most appropriate for this contribution. Typically the local IWorkbenchWindow or IWorkbenchPartSite will be sufficient. Must not be null . |
id | The id for this item. May be null . Items without an id cannot be referenced later. |
commandId | A command id for a defined command. Must not be null . |
style | The style of this menu contribution. See the STYLE_* constants. |
berry::CommandContributionItemParameter::CommandContributionItemParameter | ( | IServiceLocator * | serviceLocator, |
const QString & | id, | ||
const QString & | commandId, | ||
const QHash< QString, Object::Pointer > & | parameters, | ||
const QIcon & | icon, | ||
const QString | label, | ||
const QChar & | mnemonic, | ||
const QString & | tooltip, | ||
CommandContributionItem::Style | style, | ||
const QString & | helpContextId, | ||
bool | visibleEnabled | ||
) |
Build the parameter object.
Note: This constructor should not be called outside the framework.
serviceLocator | a service locator that is most appropriate for this contribution. Typically the local IWorkbenchWindow or IWorkbenchPartSite will be sufficient. Must not be null . |
id | The id for this item. May be null . Items without an id cannot be referenced later. |
commandId | A command id for a defined command. Must not be null . |
parameters | A map of strings to strings which represent parameter names to values. The parameter names must match those in the command definition. May be null |
icon | An icon for this item. May be null . |
label | A label for this item. May be null . |
mnemonic | A mnemonic for this item to be applied to the label. May be null . |
tooltip | A tooltip for this item. May be null . Tooltips are currently only valid for toolbar contributions. |
style | The style of this menu contribution. See the STYLE_* constants. |
helpContextId | the help context id to be applied to this contribution. May be null |
visibleEnabled | Visibility tracking for the menu contribution. |
berry::CommandContributionItemParameter::berryObjectMacro | ( | CommandContributionItemParameter | ) |
QString berry::CommandContributionItemParameter::commandId |
A command id for a defined command. Must not be null
.
Definition at line 56 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::helpContextId |
The help context id to be applied to this contribution. May be null
Definition at line 103 of file berryCommandContributionItemParameter.h.
QIcon berry::CommandContributionItemParameter::icon |
An icon for this item. May be null
.
Definition at line 68 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::iconStyle |
The icon style to use.
Definition at line 108 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::id |
The id for this item. May be null
. Items without an id cannot be referenced later.
Definition at line 51 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::label |
A label for this item. May be null
.
Definition at line 73 of file berryCommandContributionItemParameter.h.
QChar berry::CommandContributionItemParameter::mnemonic |
A mnemonic for this item to be applied to the label. May be null
.
Definition at line 79 of file berryCommandContributionItemParameter.h.
CommandContributionItem::Modes berry::CommandContributionItemParameter::mode |
Any number of mode bits, like CommandContributionItem#MODE_FORCE_TEXT.
Definition at line 119 of file berryCommandContributionItemParameter.h.
QHash<QString, Object::Pointer> berry::CommandContributionItemParameter::parameters |
A map of strings to strings which represent parameter names to values. The parameter names must match those in the command definition. May be null
Definition at line 63 of file berryCommandContributionItemParameter.h.
IServiceLocator* berry::CommandContributionItemParameter::serviceLocator |
a service locator that is most appropriate for this contribution. Typically the local IWorkbenchWindow or IWorkbenchPartSite will be sufficient. Must not be null
.
Definition at line 45 of file berryCommandContributionItemParameter.h.
QKeySequence berry::CommandContributionItemParameter::shortcut |
A shortcut key sequence. This is a workaround and will be removed when key binding support is fully implemented
Definition at line 85 of file berryCommandContributionItemParameter.h.
CommandContributionItem::Style berry::CommandContributionItemParameter::style |
The style of this menu contribution. See the CommandContributionItem STYLE_* constants.
Definition at line 97 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::tooltip |
A tooltip for this item. May be null
. Tooltips are currently only valid for toolbar contributions.
Definition at line 91 of file berryCommandContributionItemParameter.h.
bool berry::CommandContributionItemParameter::visibleEnabled |
The visibility tracking for a menu contribution.
Definition at line 113 of file berryCommandContributionItemParameter.h.