Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::IContributionRoot Struct Referenceabstract

#include <berryIContributionRoot.h>

Inheritance diagram for berry::IContributionRoot:
Collaboration diagram for berry::IContributionRoot:

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::TypeInfoGetSuperclasses () 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< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- 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
 

Detailed Description

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.

Member Function Documentation

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)

Parameters
itemthe item to add
visibleWhenthe visibility expression. May be null.
virtual void berry::IContributionRoot::RegisterVisibilityForChild ( const SmartPointer< IContributionItem > &  item,
const SmartPointer< Expression > &  visibleWhen 
)
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).

Parameters
itemthe item for which to register a visibility clause
visibleWhenthe visibility expression. May be null in which case this method is a no-op.

Member Data Documentation

const SmartPointer<Expression>& berry::IContributionRoot::visibleWhen

Definition at line 51 of file berryIContributionRoot.h.


The documentation for this struct was generated from the following file: