Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <berrySubContributionItem.h>
Public Member Functions | |
berryObjectMacro (SubContributionItem) | |
SubContributionItem (IContributionItem::Pointer item) | |
void | Fill (QStatusBar *parent) override |
void | Fill (QMenu *parent, QAction *before) override |
void | Fill (QToolBar *parent, QAction *before) override |
QString | GetId () const override |
IContributionItem::Pointer | GetInnerItem () const |
bool | IsEnabled () const override |
bool | IsDirty () const override |
bool | IsDynamic () const override |
bool | IsGroupMarker () const override |
bool | IsSeparator () const override |
bool | IsVisible () const override |
void | SetParent (IContributionManager *parent) override |
void | SetVisible (bool visible) override |
void | Update () override |
void | Update (const QString &id) override |
void | SaveWidgetState () override |
![]() | |
berryObjectMacro (berry::IContributionItem) | |
virtual void | Fill (QMenuBar *parent, QAction *before)=0 |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
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 const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
![]() | |
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 |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A SubContributionItem
is a wrapper for an IContributionItem
. It is used within a SubContributionManager
to control the visibility of items.
This class is not intended to be subclassed.
This class is not intended to be subclassed by clients.
Definition at line 32 of file berrySubContributionItem.h.
berry::SubContributionItem::SubContributionItem | ( | IContributionItem::Pointer | item | ) |
Creates a new SubContributionItem
.
item | the contribution item to be wrapped |
Definition at line 18 of file berrySubContributionItem.cpp.
berry::SubContributionItem::berryObjectMacro | ( | SubContributionItem | ) |
|
overridevirtual |
Fills the given status bar control with controls representing this contribution item. Used by StatusLineManager
.
parent | the parent control |
Implements berry::IContributionItem.
Definition at line 24 of file berrySubContributionItem.cpp.
|
overridevirtual |
Fills the given menu with controls representing this contribution item. Used by MenuManager
.
parent | the parent menu |
index | the index where the controls are inserted, or -1 to insert at the end |
Implements berry::IContributionItem.
Definition at line 32 of file berrySubContributionItem.cpp.
|
overridevirtual |
Fills the given tool bar with controls representing this contribution item. Used by ToolBarManager
.
parent | the parent tool bar |
index | the index where the controls are inserted, or -1 to insert at the end |
Implements berry::IContributionItem.
Definition at line 40 of file berrySubContributionItem.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 48 of file berrySubContributionItem.cpp.
IContributionItem::Pointer berry::SubContributionItem::GetInnerItem | ( | ) | const |
Returns the inner contribution item.
Definition at line 53 of file berrySubContributionItem.cpp.
|
overridevirtual |
Returns whether this contribution item is dirty. A dirty item will be recreated when the action bar is updated.
true
if this item is dirty Implements berry::IContributionItem.
Definition at line 63 of file berrySubContributionItem.cpp.
|
overridevirtual |
Returns whether this contribution item is dynamic. A dynamic contribution item contributes items conditionally, dependent on some internal state.
true
if this item is dynamic, and false
for normal items Implements berry::IContributionItem.
Definition at line 68 of file berrySubContributionItem.cpp.
|
overridevirtual |
Returns whether this contribution item is enabled.
true
if this item is enabled Implements berry::IContributionItem.
Definition at line 58 of file berrySubContributionItem.cpp.
|
overridevirtual |
Returns whether this contribution item is a group marker. This information is used when adding items to a group.
true
if this item is a group marker, and false
for normal itemsImplements berry::IContributionItem.
Definition at line 73 of file berrySubContributionItem.cpp.
|
overridevirtual |
Returns whether this contribution item is a separator. This information is used to enable hiding of unnecessary separators.
true
if this item is a separator, and false
for normal items Implements berry::IContributionItem.
Definition at line 78 of file berrySubContributionItem.cpp.
|
overridevirtual |
Returns whether this contribution item is visibile within its manager.
true
if this item is visible, and false
otherwise Implements berry::IContributionItem.
Definition at line 83 of file berrySubContributionItem.cpp.
|
overridevirtual |
Saves any state information of the control(s) owned by this contribution item. The contribution manager calls this method before disposing of the controls.
Implements berry::IContributionItem.
Definition at line 109 of file berrySubContributionItem.cpp.
|
overridevirtual |
Sets the parent manager of this item
parent | the parent contribution manager |
Implements berry::IContributionItem.
Definition at line 88 of file berrySubContributionItem.cpp.
|
overridevirtual |
Sets whether this contribution item is visibile within its manager.
visible | true if this item should be visible, and false otherwise |
Implements berry::IContributionItem.
Definition at line 94 of file berrySubContributionItem.cpp.
|
overridevirtual |
Updates any controls cached by this contribution item with any changes which have been made to this contribution item since the last update. Called by contribution manager update methods.
Implements berry::IContributionItem.
Definition at line 99 of file berrySubContributionItem.cpp.
|
overridevirtual |
Updates any controls cached by this contribution item with changes for the the given property.
id | the id of the changed property |
Implements berry::IContributionItem.
Definition at line 104 of file berrySubContributionItem.cpp.