Medical Imaging Interaction Toolkit  2016.11.0
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) static const QString P_ENABLED
 
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
 

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.

This interface is not intended to be implemented by clients.

Definition at line 41 of file berryIContributionManagerOverrides.h.

Member Function Documentation

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

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

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
defaultValuethe default value
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
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

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