Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::EmptyPerspective Class Reference

#include <berryEmptyPerspective.h>

Inheritance diagram for berry::EmptyPerspective:
Collaboration diagram for berry::EmptyPerspective:

Public Member Functions

 EmptyPerspective (const EmptyPerspective &other)
 
 EmptyPerspective ()
 
void CreateInitialLayout (IPageLayout::Pointer layout)
 
- Public Member Functions inherited from berry::IPerspectiveFactory
 berryObjectMacro (berry::IPerspectiveFactory)~IPerspectiveFactory()
 
- 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 Member Functions

static QString GetLastPerspective ()
 
static void SetLastPerspective (const QString &perspId)
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 

Static Public Attributes

static const QString PERSP_ID
 
static const QString PERSP_ID2
 

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
 
- 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 perspective is used for testing api. It defines an initial layout with no parts, just an editor area.

Definition at line 31 of file berryEmptyPerspective.h.

Constructor & Destructor Documentation

berry::EmptyPerspective::EmptyPerspective ( const EmptyPerspective other)

Definition at line 33 of file berryEmptyPerspective.cpp.

berry::EmptyPerspective::EmptyPerspective ( )

Constructs a new Default layout engine.

Definition at line 28 of file berryEmptyPerspective.cpp.

Member Function Documentation

void berry::EmptyPerspective::CreateInitialLayout ( IPageLayout::Pointer  layout)
virtual

Defines the initial layout for a perspective.

Implementors of this method may add additional views to a perspective. The perspective already contains an editor folder with ID = ILayoutFactory::ID_EDITORS. Add additional views to the perspective in reference to the editor folder.

This method is only called when a new perspective is created. If an old perspective is restored from a persistence file then this method is not called.

Parameters
factorythe factory used to add views to the perspective

Implements berry::IPerspectiveFactory.

Definition at line 49 of file berryEmptyPerspective.cpp.

References SetLastPerspective().

QString berry::EmptyPerspective::GetLastPerspective ( )
static

Returns the descriptor for the perspective last opened using this factory.

Returns
the descriptor for the perspective last opened using this factory, or null

Definition at line 39 of file berryEmptyPerspective.cpp.

void berry::EmptyPerspective::SetLastPerspective ( const QString &  perspId)
static

Sets the descriptor for the perspective last opened using this factory.

Parameters
perspthe descriptor for the perspective last opened using this factory, or null

Definition at line 44 of file berryEmptyPerspective.cpp.

Referenced by CreateInitialLayout().

Member Data Documentation

const QString berry::EmptyPerspective::PERSP_ID
static

The perspective id for the empty perspective.

Definition at line 47 of file berryEmptyPerspective.h.

Referenced by berry::UITestCase::OpenTestWindow().

const QString berry::EmptyPerspective::PERSP_ID2
static

The perspective id for the second empty perspective.

Definition at line 52 of file berryEmptyPerspective.h.


The documentation for this class was generated from the following files: