Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berry::IContributionManagerOverrides Struct Referenceabstract

#include <berryIContributionManagerOverrides.h>

Inheritance diagram for berry::IContributionManagerOverrides:
Collaboration diagram for berry::IContributionManagerOverrides:

Public Member Functions

 berryObjectMacro (berry::IContributionManagerOverrides)
 
virtual int GetEnabled (const IContributionItem *item) const =0
 
virtual int GetVisible (const IContributionItem *item) const =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
 

Static Public Attributes

static const QString P_ENABLED
 

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

This interface is used by instances of IContributionItem to determine if the values for certain properties have been overriden by their manager.

This interface is internal to the framework; it should not be implemented outside the framework.

Definition at line 35 of file berryIContributionManagerOverrides.h.

Member Function Documentation

◆ berryObjectMacro()

berry::IContributionManagerOverrides::berryObjectMacro ( berry::IContributionManagerOverrides  )

◆ GetEnabled()

virtual int berry::IContributionManagerOverrides::GetEnabled ( const IContributionItem item) const
pure virtual

Find out the enablement of the item

Parameters
itemthe contribution item for which the enable override value is determined
Returns
  • 1 if the given contribution item should be enabled
  • 0 if the item should not be enabled
  • -1 if the item may determine its own enablement

◆ GetVisible()

virtual int berry::IContributionManagerOverrides::GetVisible ( const IContributionItem item) const
pure virtual

Visiblity override.

Parameters
itemthe contribution item in question
Returns
  • 1 if the given contribution item should be visible
  • 0 if the item should not be visible
  • -1 if the item may determine its own visibility

Member Data Documentation

◆ P_ENABLED

const QString berry::IContributionManagerOverrides::P_ENABLED
static

Id for the enabled property. Value is "enabled".

Definition at line 43 of file berryIContributionManagerOverrides.h.


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