Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryContributionItem.h>
Public Types | |
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) enum Mode | |
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) virtual void Fill(QStatusBar *parent)=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 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 30 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 49 of file berryContributionItem.h.
|
protected |
Creates a contribution item with a null
id. Calls this(String)
with null
.
Definition at line 113 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 118 of file berryContributionItem.cpp.
|
inline |
Mode bit: Show text on tool items or buttons, even if an image is present. If this mode bit is not set, text is only shown on tool items if there is no image present.
Definition at line 35 of file berryContributionItem.h.
|
override |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Definition at line 24 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 28 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method does nothing. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 32 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 36 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 44 of file berryContributionItem.cpp.
Referenced by berry::CommandContributionItem::CommandContributionItem(), and ToString().
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 49 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 54 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 65 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 60 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 70 of file berryContributionItem.cpp.
|
overridevirtual |
The default implementation of this IContributionItem
method returns false
. Subclasses may override.
Implements berry::IContributionItem.
Definition at line 75 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 80 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 40 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 108 of file berryContributionItem.cpp.
|
overridevirtual |
Sets the parent manager of this item
parent | the parent contribution manager |
Implements berry::IContributionItem.
Definition at line 99 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 85 of file berryContributionItem.cpp.
|
overridevirtual |
Returns a string representation of this contribution item suitable only for debugging.
Reimplemented from berry::Object.
Definition at line 90 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 95 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 104 of file berryContributionItem.cpp.