Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 } |
![]() | |
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) |
![]() | |
berryObjectMacro (berry::IContributionItem) | |
![]() | |
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) | |
![]() | |
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 const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
![]() | |
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
.
Definition at line 109 of file berryContributionItem.cpp.
|
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 |
Definition at line 114 of file berryContributionItem.cpp.
berry::ContributionItem::berryObjectMacro | ( | ContributionItem | ) |
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
Definition at line 20 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
Definition at line 24 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 28 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
Definition at line 32 of file berryContributionItem.cpp.
|
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.
Definition at line 40 of file berryContributionItem.cpp.
Referenced by berry::CommandContributionItem::CommandContributionItem(), ToString(), berry::CommandContributionItem::Update(), and berry::CommandContributionItem::UpdateCommandPropertiesInUI().
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
Definition at line 45 of file berryContributionItem.cpp.
Referenced by berry::QActionContributionItem::IsEnabledAllowed(), and berry::CommandContributionItem::UpdateCommandPropertiesInUI().
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 50 of file berryContributionItem.cpp.
References IsDynamic().
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
Definition at line 61 of file berryContributionItem.cpp.
Referenced by IsDirty().
|
overridevirtual |
The default implementation of this IContributionItem
method returns true
. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
Definition at line 56 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 66 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 71 of file berryContributionItem.cpp.
|
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.
Definition at line 76 of file berryContributionItem.cpp.
Referenced by berry::QActionContributionItem::IsVisible(), and berry::CommandContributionItem::IsVisible().
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 36 of file berryContributionItem.cpp.
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 |
Definition at line 104 of file berryContributionItem.cpp.
|
overridevirtual |
Sets the parent manager of this item
parent | the parent contribution manager |
Implements berry::IContributionItem.
Definition at line 95 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method stores the value in an internal state variable, which is true
by default.
Implements berry::IContributionItem.
Definition at line 81 of file berryContributionItem.cpp.
|
overridevirtual |
Returns a string representation of this contribution item suitable only for debugging.
Reimplemented from berry::Object.
Definition at line 86 of file berryContributionItem.cpp.
References berry::Object::GetClassName(), and GetId().
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Reimplemented in berry::QActionContributionItem.
Definition at line 91 of file berryContributionItem.cpp.
|
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.
Definition at line 100 of file berryContributionItem.cpp.