Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryICommandImageService.h>
Public Member Functions | |
berryObjectMacro (berry::ICommandImageService) static const QString IMAGE_STYLE_DEFAULT | |
virtual QIcon | GetImage (const QString &commandId)=0 |
virtual QIcon | GetImage (const QString &commandId, const QString &style)=0 |
Public Member Functions inherited from berry::IDisposable | |
berryObjectMacro (berry::IDisposable)~IDisposable() | |
virtual void | Dispose ()=0 |
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 |
Static Public Attributes | |
static const QString | IMAGE_STYLE_TOOLBAR |
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 |
Provides a look-up facility for images associated with commands.
The type of an image indicates the state of the associated command within the user interface. The supported types are: TYPE_DEFAULT
(to be used for an enabled command), TYPE_DISABLED
(to be used for a disabled command) and TYPE_HOVER
(to be used for an enabled command over which the mouse is hovering).
The style of an image is an arbitrary string used to distinguish between sets of images associated with a command. For example, a command may appear in the menus as the default style. However, in the toolbar, the command is simply the default action for a toolbar drop down item. As such, perhaps a different image style is appropriate. The classic case is the "Run Last Launched" command, which appears in the menu and the toolbar, but with different icons in each location.
We currently support a default image style (none) and an image style of IMAGE_STYLE_TOOLBAR.
This interface is not intended to be implemented by clients. This interface is not intended to be extended by clients.
Definition at line 56 of file berryICommandImageService.h.
berry::ICommandImageService::berryObjectMacro | ( | berry::ICommandImageService | ) | const |
The default image style. This is provided when no style is requested or when the requested style is unavailable. (Value is null)
|
pure virtual |
Retrieves the image associated with the given command in the default style.
commandId | The identifier to find; must not be null . |
null
.
|
pure virtual |
Retrieves the image associated with the given command in the given style.
commandId | The identifier to find; must not be null . |
style | The style of the image to retrieve; may be null . |
|
static |
The image style used for commands in a toolbar. This is useful if you want the icon for the command in the toolbar to be different than the one that is displayed with menu items. (Value is toolbar)
Definition at line 72 of file berryICommandImageService.h.