Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryCommandContributionItemParameter.h>
Public Member Functions | |
berryObjectMacro (CommandContributionItemParameter) IServiceLocator *serviceLocator | |
CommandContributionItemParameter (IServiceLocator *serviceLocator, const QString &id, const QString &commandId, CommandContributionItem::Style style) | |
CommandContributionItemParameter (IServiceLocator *serviceLocator, const QString &id, const QString &commandId, const QHash< QString, Object::Pointer > ¶meters, const QIcon &icon, const QString label, const QChar &mnemonic, const QString &tooltip, CommandContributionItem::Style style, const QString &helpContextId, bool visibleEnabled) | |
Public Member Functions inherited from berry::Object | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual uint | HashCode () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
virtual bool | operator== (const Object *) const |
Public Attributes | |
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 36 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_* contants. |
Definition at line 22 of file berryCommandContributionItemParameter.cpp.
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 . |
disabledIcon | A disabled icon for this item. May be null . |
hoverIcon | A hover 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_* contants. |
helpContextId | the help context id to be applied to this contribution. May be null |
visibleEnabled | Visibility tracking for the menu contribution. This constructor is not intended to be referenced by clients. |
Definition at line 29 of file berryCommandContributionItemParameter.cpp.
berry::CommandContributionItemParameter::berryObjectMacro | ( | CommandContributionItemParameter | ) |
a service locator that is most appropriate for this contribution. Typically the local IWorkbenchWindow or IWorkbenchPartSite will be sufficient. Must not be null
.
QString berry::CommandContributionItemParameter::commandId |
A command id for a defined command. Must not be null
.
Definition at line 60 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::helpContextId |
The help context id to be applied to this contribution. May be null
Definition at line 107 of file berryCommandContributionItemParameter.h.
QIcon berry::CommandContributionItemParameter::icon |
An icon for this item. May be null
.
Definition at line 72 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::iconStyle |
The icon style to use.
Definition at line 112 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 55 of file berryCommandContributionItemParameter.h.
QString berry::CommandContributionItemParameter::label |
A label for this item. May be null
.
Definition at line 77 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 83 of file berryCommandContributionItemParameter.h.
CommandContributionItem::Modes berry::CommandContributionItemParameter::mode |
Any number of mode bits, like CommandContributionItem#MODE_FORCE_TEXT.
Definition at line 123 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 67 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 89 of file berryCommandContributionItemParameter.h.
CommandContributionItem::Style berry::CommandContributionItemParameter::style |
The style of this menu contribution. See the CommandContributionItem STYLE_* contants.
Definition at line 101 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 95 of file berryCommandContributionItemParameter.h.
bool berry::CommandContributionItemParameter::visibleEnabled |
The visibility tracking for a menu contribution.
Definition at line 117 of file berryCommandContributionItemParameter.h.