Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIContributionRoot.h>
Public Member Functions | |
berryObjectMacro (berry::IContributionRoot) virtual void AddContributionItem(const SmartPointer< IContributionItem > &item | |
virtual void | RegisterVisibilityForChild (const SmartPointer< IContributionItem > &item, const SmartPointer< Expression > &visibleWhen)=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 |
Public Attributes | |
const SmartPointer< Expression > & | visibleWhen |
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 |
Instances of this interface represent a position in the contribution hierarchy into which AbstractContributionFactory instances may insert elements. Instances of this interface are provided by the platform and this interface should NOT be implemented by clients.
Definition at line 35 of file berryIContributionRoot.h.
berry::IContributionRoot::berryObjectMacro | ( | berry::IContributionRoot | ) | const |
Adds a given contribution item with provided visibility expression and kill-switch filtering as a direct child of this container. This should be called for all top-level elements created in AbstractContributionFactory#createContributionItems(org.eclipse.ui.services.IServiceLocator, IContributionRoot)
item | the item to add |
visibleWhen | the visibility expression. May be null . |
|
pure virtual |
Registers visibilty for arbitrary IContributionItem instances that are NOT direct children of this container. Ie: children of a IContributionManager that has been previously registered with a call to {AddContributionItem(IContributionItem, Expression).
item | the item for which to register a visibility clause |
visibleWhen | the visibility expression. May be null in which case this method is a no-op. |
const SmartPointer<Expression>& berry::IContributionRoot::visibleWhen |
Definition at line 51 of file berryIContributionRoot.h.