Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
#include <berryIPerspectiveRegistry.h>
Public Member Functions | |
virtual | ~IPerspectiveRegistry () |
virtual IPerspectiveDescriptor::Pointer | CreatePerspective (const QString &label, IPerspectiveDescriptor::Pointer originalDescriptor)=0 |
virtual IPerspectiveDescriptor::Pointer | ClonePerspective (const QString &id, const QString &label, IPerspectiveDescriptor::Pointer desc)=0 |
virtual void | DeletePerspective (IPerspectiveDescriptor::Pointer persp)=0 |
virtual IPerspectiveDescriptor::Pointer | FindPerspectiveWithId (const QString &perspectiveId)=0 |
virtual IPerspectiveDescriptor::Pointer | FindPerspectiveWithLabel (const QString &label)=0 |
virtual QString | GetDefaultPerspective ()=0 |
virtual QList< IPerspectiveDescriptor::Pointer > | GetPerspectives ()=0 |
virtual void | SetDefaultPerspective (const QString &id)=0 |
virtual void | RevertPerspective (IPerspectiveDescriptor::Pointer perspToRevert)=0 |
The workbench's global registry of perspectives.
This registry contains a descriptor for each perspectives in the workbench. It is initially populated with stock perspectives from the workbench's perspective extension point ("org.blueberry.ui.perspectives"
) and with custom perspectives defined by the user.
This interface is not intended to be implemented by clients.
Definition at line 36 of file berryIPerspectiveRegistry.h.
|
virtual |
|
pure virtual |
Clones an existing perspective.
id | the id for the cloned perspective, which must not already be used by any registered perspective |
label | the label assigned to the cloned perspective |
desc | the perspective to clone |
IllegalArgumentException | if there is already a perspective with the given id |
|
pure virtual |
Create a new perspective.
label | the label assigned to the new perspective |
originalDescriptor | the descriptor on which to base the new descriptor |
null
if the creation failed.
|
pure virtual |
Deletes a perspective. Has no effect if the perspective is defined in an extension.
persp | the perspective to delete |
|
pure virtual |
Finds and returns the registered perspective with the given perspective id.
perspectiveId | the perspective id |
null
if none
|
pure virtual |
Finds and returns the registered perspective with the given label.
label | the label |
null
if none
|
pure virtual |
Returns the id of the default perspective for the workbench. This identifies one perspective extension within the workbench's perspective registry.
Returns null
if there is no default perspective.
null
|
pure virtual |
Returns a list of the perspectives known to the workbench.
|
pure virtual |
Reverts a perspective back to its original definition as specified in the plug-in manifest.
perspToRevert | the perspective to revert |
|
pure virtual |
Sets the default perspective for the workbench to the given perspective id. If non-null
, the id must correspond to a perspective extension within the workbench's perspective registry.
A null
id indicates no default perspective.
id | a perspective id, or null |