Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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, const SmartPointer< Expression > &visibleWhen)=0
 
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
 

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 31 of file berryIContributionRoot.h.

Member Function Documentation

◆ AddContributionItem()

virtual void berry::IContributionRoot::AddContributionItem ( const SmartPointer< IContributionItem > &  item,
const SmartPointer< Expression > &  visibleWhen 
)
pure virtual

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 berry::AbstractContributionFactory::CreateContributionItems().

Parameters
itemthe item to add
visibleWhenthe visibility expression. May be null.

◆ berryObjectMacro()

berry::IContributionRoot::berryObjectMacro ( berry::IContributionRoot  )

◆ RegisterVisibilityForChild()

virtual void berry::IContributionRoot::RegisterVisibilityForChild ( const SmartPointer< IContributionItem > &  item,
const SmartPointer< Expression > &  visibleWhen 
)
pure virtual

Registers visibility 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().

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.

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