Manage workspace as a normal extension. More...
#include <WorkspaceExtension.h>
Public Member Functions | |
virtual QString | getDescription () const override |
Method returning the component extension description. More... | |
virtual QStringList | getFileExtensions () const override |
Get the list of managed extensions. More... | |
virtual QString | getName () const override |
Method returning the component extension name. More... | |
camitk::Component * | open (const QString &) override |
.camitk may results in more than one instanciation. More... | |
bool | save (camitk::Component *component) const override |
.camitk should be saved by calling the save workspace. More... | |
WorkspaceExtension () | |
Constructor. More... | |
Public Member Functions inherited from camitk::ComponentExtension | |
~ComponentExtension () override=default | |
protected destructor, More... | |
virtual bool | hasDataDirectory () const |
return true if this component manages directory instead of individual files (e.g. Dicom series are stored in directories, not files) More... | |
QString | getLocation () const |
get the file path (location of the .dll/.so/.dylib) of this plugin More... | |
void | setLocation (const QString loc) |
set the file path (once loaded as a dynamic library) More... | |
void | initResources () |
Load, for the selected langage (asked to the Application), the associated .qm file. More... | |
Protected Member Functions | |
virtual | ~WorkspaceExtension ()=default |
Destructor. More... | |
Protected Member Functions inherited from camitk::ComponentExtension | |
ComponentExtension () | |
protected constructor, More... | |
Manage workspace as a normal extension.
Although camitk-imp has a specific menu, this extension simplifies the management of workspace .camitk files. .camitk documents can therefore be opened as any other component extension, although this extension does not instanciate any Component class.
|
inline |
Constructor.
|
protectedvirtualdefault |
Destructor.
|
overridevirtual |
Method returning the component extension description.
Implements camitk::ComponentExtension.
|
overridevirtual |
Get the list of managed extensions.
Implements camitk::ComponentExtension.
|
overridevirtual |
Method returning the component extension name.
Implements camitk::ComponentExtension.
|
overridevirtual |
.camitk may results in more than one instanciation.
This method calls the OpenWorkspace action and returns nullptr.
Implements camitk::ComponentExtension.
References camitk::Action::applyInPipeline(), CAMITK_ERROR, and camitk::Application::getAction().
|
overridevirtual |
.camitk should be saved by calling the save workspace.
This method should never be available/called.
Reimplemented from camitk::ComponentExtension.