Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::CommandContributionItemParameter Class Reference

#include <berryCommandContributionItemParameter.h>

Inheritance diagram for berry::CommandContributionItemParameter:
Collaboration diagram for berry::CommandContributionItemParameter:

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 > &parameters, 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::TypeInfoGetSuperclasses () 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::Pointerparameters
 
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< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- 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
 

Detailed Description

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.

Constructor & Destructor Documentation

berry::CommandContributionItemParameter::CommandContributionItemParameter ( IServiceLocator serviceLocator,
const QString &  id,
const QString &  commandId,
CommandContributionItem::Style  style 
)

Create the parameter object. Nullable attributes can be set directly.

Parameters
serviceLocatora service locator that is most appropriate for this contribution. Typically the local IWorkbenchWindow or IWorkbenchPartSite will be sufficient. Must not be null.
idThe id for this item. May be null. Items without an id cannot be referenced later.
commandIdA command id for a defined command. Must not be null.
styleThe 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.

Parameters
serviceLocatora service locator that is most appropriate for this contribution. Typically the local IWorkbenchWindow or IWorkbenchPartSite will be sufficient. Must not be null.
idThe id for this item. May be null. Items without an id cannot be referenced later.
commandIdA command id for a defined command. Must not be null.
parametersA map of strings to strings which represent parameter names to values. The parameter names must match those in the command definition. May be null
iconAn icon for this item. May be null.
disabledIconA disabled icon for this item. May be null.
hoverIconA hover icon for this item. May be null.
labelA label for this item. May be null.
mnemonicA mnemonic for this item to be applied to the label. May be null.
tooltipA tooltip for this item. May be null. Tooltips are currently only valid for toolbar contributions.
styleThe style of this menu contribution. See the STYLE_* contants.
helpContextIdthe help context id to be applied to this contribution. May be null
visibleEnabledVisibility tracking for the menu contribution. This constructor is not intended to be referenced by clients.

Definition at line 29 of file berryCommandContributionItemParameter.cpp.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following files: