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

#include <berryIViewDescriptor.h>

Inheritance diagram for berry::IViewDescriptor:
Collaboration diagram for berry::IViewDescriptor:

Public Member Functions

 berryObjectMacro (berry::IViewDescriptor)~IViewDescriptor()
 
virtual IViewPart::Pointer CreateView ()=0
 
virtual QStringList GetKeywordReferences () const =0
 
virtual QStringList GetCategoryPath () const =0
 
virtual QString GetDescription () const =0
 
virtual QIcon GetImageDescriptor () const =0
 
virtual bool GetAllowMultiple () const =0
 
virtual bool IsRestorable () const =0
 
virtual bool operator== (const Object *) const =0
 
- Public Member Functions inherited from berry::IWorkbenchPartDescriptor
 berryObjectMacro (berry::IWorkbenchPartDescriptor) virtual QString GetId() const =0
 
virtual QString GetLabel () const =0
 
virtual ~IWorkbenchPartDescriptor ()
 
- 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
 
- Public Member Functions inherited from berry::IAdaptable
virtual ObjectGetAdapter (const QString &adapterType) const =0
 
template<class A >
A * GetAdapter ()
 
virtual ~IAdaptable ()
 

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 is a view descriptor. It provides a "description" of a given given view so that the view can later be constructed.

The view registry provides facilities to map from an extension to a IViewDescriptor.

This interface is not intended to be implemented by clients.

See also
org.blueberry.ui.IViewRegistry

Definition at line 46 of file berryIViewDescriptor.h.

Member Function Documentation

berry::IViewDescriptor::berryObjectMacro ( berry::IViewDescriptor  )
virtual IViewPart::Pointer berry::IViewDescriptor::CreateView ( )
pure virtual

Creates an instance of the view defined in the descriptor.

Returns
the view part
Exceptions
CoreExceptionthrown if there is a problem creating the part
virtual bool berry::IViewDescriptor::GetAllowMultiple ( ) const
pure virtual

Returns whether this view allows multiple instances.

Returns
whether this view allows multiple instances
virtual QStringList berry::IViewDescriptor::GetCategoryPath ( ) const
pure virtual

Returns an array of strings that represent view's category path. This array will be used for hierarchical presentation of the view in places like submenus.

Returns
array of category tokens or null if not specified.
virtual QString berry::IViewDescriptor::GetDescription ( ) const
pure virtual

Returns the description of this view.

Returns
the description
virtual QIcon berry::IViewDescriptor::GetImageDescriptor ( ) const
pure virtual

Returns the descriptor for the icon to show for this view.

Implements berry::IWorkbenchPartDescriptor.

virtual QStringList berry::IViewDescriptor::GetKeywordReferences ( ) const
pure virtual

Returns a list of ids belonging to keyword reference extensions.

The keywords listed in each referenced id can be used to filter this view.

Returns
A list of ids for keyword reference extensions.
virtual bool berry::IViewDescriptor::IsRestorable ( ) const
pure virtual

Returns whether this view can be restored upon workbench restart.

Returns
whether whether this view can be restored upon workbench restart
virtual bool berry::IViewDescriptor::operator== ( const Object o) const
pure virtual

A generic comparison method. Override this method in subclasses and cast to your derived class to provide a more detailed comparison.

Reimplemented from berry::Object.


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