Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryContributionItem.h>
Public Types | |
enum | Mode { DEFAULT, MODE_FORCE_TEXT } |
enum | Style { STYLE_PUSH, STYLE_CHECK, STYLE_RADIO, STYLE_PULLDOWN } |
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 |
Public Member Functions | |
berryObjectMacro (ContributionItem) | |
void | Fill (QStatusBar *parent) override |
void | Fill (QMenu *menu, QAction *before) override |
void | Fill (QMenuBar *menu, QAction *before) override |
void | Fill (QToolBar *parent, QAction *before) override |
void | SaveWidgetState () override |
QString | GetId () const override |
IContributionManager * | GetParent () const |
bool | IsDirty () const override |
bool | IsEnabled () const override |
bool | IsDynamic () const override |
bool | IsGroupMarker () const override |
bool | IsSeparator () const override |
bool | IsVisible () const override |
void | SetVisible (bool visible) override |
QString | ToString () const override |
void | Update () override |
void | SetParent (IContributionManager *parent) override |
void | Update (const QString &id) override |
void | SetId (const QString &itemId) |
Public Member Functions inherited from berry::IContributionItem | |
berryObjectMacro (berry::IContributionItem) | |
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 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 |
Protected Member Functions | |
ContributionItem () | |
ContributionItem (const QString &id) | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
An abstract base implementation for contribution items.
Definition at line 26 of file berryContributionItem.h.
Definition at line 33 of file berryContributionItem.h.
Enumerator | |
---|---|
STYLE_PUSH | A push button tool item or menu item. |
STYLE_CHECK | A checked tool item or menu item. |
STYLE_RADIO | A radio-button style menu item. |
STYLE_PULLDOWN | A ToolBar pulldown item. |
Definition at line 45 of file berryContributionItem.h.
|
protected |
Creates a contribution item with a null
id. Calls this(String)
with null
.
|
protected |
Creates a contribution item with the given (optional) id. The given id is used to find items in a contribution manager, and for positioning items relative to other items.
id | the contribution item identifier, or null |
berry::ContributionItem::berryObjectMacro | ( | ContributionItem | ) |
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
Returns the identifier of this contribution item. The id is used for retrieving an item from its manager.
null
if none Implements berry::IContributionItem.
IContributionManager* berry::ContributionItem::GetParent | ( | ) | const |
Returns the parent contribution manager, or null
if this contribution item is not currently added to a contribution manager.
null
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method returns true
. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method returns the value recorded in an internal state variable, which is true
by default. setVisible
should be used to change this setting.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
void berry::ContributionItem::SetId | ( | const QString & | itemId | ) |
The ID for this contribution item. It should be set once either in the constructor or using this method.
itemId |
|
overridevirtual |
Sets the parent manager of this item
parent | the parent contribution manager |
Implements berry::IContributionItem.
|
overridevirtual |
The default implementation of this IContributionItem
method stores the value in an internal state variable, which is true
by default.
Implements berry::IContributionItem.
|
overridevirtual |
Returns a string representation of this contribution item suitable only for debugging.
Reimplemented from berry::Object.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
|
overridevirtual |
The ContributionItem
implementation of this method declared on IContributionItem
does nothing. Subclasses should override to update their state.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.