|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <WorkspaceManager.h>
Public Types | |
| enum | ViewMenuOption { LoadSystemViewPlugins = 0x00001 , LoadViewPlugins = 0x00002 , LoadedViewsSubMenu = 0x00004 , Default = LoadSystemViewPlugins | LoadViewPlugins | LoadedViewsSubMenu } |
Public Types inherited from hdps::util::Serializable | |
| enum class | State { Idle , Reading , Writing } |
Public Member Functions | |
| WorkspaceManager () | |
| void | initialize () override |
| void | reset () override |
| QIcon | getIcon () const override |
| void | addViewPlugin (plugin::ViewPlugin *viewPlugin, plugin::ViewPlugin *dockToViewPlugin=nullptr, gui::DockAreaFlag dockArea=gui::DockAreaFlag::Right) override |
| void | isolateViewPlugin (plugin::ViewPlugin *viewPlugin, bool isolate) override |
| QWidget * | getWidget () override |
| void | setViewPluginDockWidgetPermissionsGlobally (const util::DockWidgetPermissions &dockWidgetPermissions=util::DockWidgetPermission::All, bool set=true) override |
| bool | mayLock () const override |
| bool | mayUnlock () const override |
| void | newWorkspace () override |
| void | loadWorkspace (QString filePath="", bool addToRecentWorkspaces=true) override |
| void | importWorkspaceFromProjectFile (QString projectFilePath="", bool addToRecentWorkspaces=true) override |
| void | saveWorkspace (QString filePath="", bool addToRecentWorkspaces=true) override |
| void | saveWorkspaceAs () override |
| bool | hasWorkspace () const override |
| const Workspace * | getCurrentWorkspace () const override |
| Workspace * | getCurrentWorkspace () override |
| WorkspaceLocations | getWorkspaceLocations (const WorkspaceLocation::Types &types=WorkspaceLocation::Type::All) override |
| void | fromVariantMap (const QVariantMap &variantMap) override |
| QVariantMap | toVariantMap () const override |
| QMenu * | getMenu (QWidget *parent=nullptr) |
| gui::TriggerAction & | getEditWorkspaceSettingsAction () |
Public Member Functions inherited from hdps::AbstractWorkspaceManager | |
| AbstractWorkspaceManager (QObject *parent=nullptr) | |
| virtual QString | getWorkspaceFilePath () const final |
| virtual void | setWorkspaceFilePath (const QString &filePath) final |
| virtual void | beginLoadWorkspace () final |
| virtual void | endLoadWorkspace () final |
| virtual void | beginSaveWorkspace () final |
| virtual void | endSaveWorkspace () final |
Public Member Functions inherited from hdps::AbstractManager | |
| AbstractManager (QObject *parent=nullptr, const QString &name="") | |
| virtual void | beginReset () final |
| virtual void | endReset () final |
| virtual void | beginInitialization () final |
| virtual void | endInitialization () final |
| virtual bool | isInitialized () const final |
| gui::LockingAction & | getLockingAction () |
Public Member Functions inherited from hdps::util::Serializable | |
| Serializable (const QString &serializationName="") | |
| virtual QString | getId () const final |
| virtual void | setId (const QString &id) final |
| virtual QString | getSerializationName () const final |
| virtual void | setSerializationName (const QString &serializationName) final |
| virtual void | fromParentVariantMap (const QVariantMap &parentVariantMap) |
| virtual void | insertIntoVariantMap (QVariantMap &variantMap) const final |
| virtual void | fromJsonDocument (const QJsonDocument &jsonDocument) final |
| virtual QJsonDocument | toJsonDocument () const final |
| virtual void | fromJsonFile (const QString &filePath="") final |
| virtual void | toJsonFile (const QString &filePath="") final |
| virtual void | makeUnique () final |
Additional Inherited Members | |
Signals inherited from hdps::AbstractWorkspaceManager | |
| void | workspaceAboutToBeCreated () |
| void | workspaceCreated (const hdps::Workspace &workspace) |
| void | workspaceAboutToBeLoaded (const QString &filePath) |
| void | workspaceLoaded (const QString &filePath) |
| void | workspaceAboutToBeSaved (const QString &filePath) |
| void | workspaceSaved (const QString &filePath) |
| void | workspaceFilePathChanged (const QString &filePath) |
Signals inherited from hdps::AbstractManager | |
| void | managerAboutToBeInitialized () |
| void | managerInitialized () |
| void | managerAboutToBeReset () |
| void | managerReset () |
Static Public Member Functions inherited from hdps::util::Serializable | |
| static QString | createId () |
Static Protected Member Functions inherited from hdps::util::Serializable | |
| static void | fromVariantMap (Serializable *serializable, const QVariantMap &variantMap) |
| static void | fromVariantMap (Serializable &serializable, const QVariantMap &variantMap, const QString &key) |
| static QVariantMap | toVariantMap (const Serializable *serializable) |
| static void | insertIntoVariantMap (const Serializable &serializable, QVariantMap &variantMap, const QString &key) |
| static void | insertIntoVariantMap (const Serializable &serializable, QVariantMap &variantMap) |
Workspace manager class
Manages the placement of view plugins on the screen using the Advanced Dock System (ADS) for Qt
It distinguishes between built-in (system) view plugins (data hierarchy, data properties etc.) and other view plugins (scatter plot, image viewer etc.).
It has a central area where non-system view plugins are docked, and areas around it (left, right, top and bottom) where system view plugins are docked.
It uses two ADS dock managers:
_dockManager)_viewPluginsDockManager)| hdps::WorkspaceManager::WorkspaceManager | ( | ) |
Default constructor
|
overridevirtual |
Add a view plugin to the dockArea of dockViewPlugin
| viewPlugin | Pointer to view plugin to add to layout |
| dockToViewPlugin | Pointer to view plugin to which the view plugin will be docked (docked top-level if nullptr) |
| dockArea | Dock area in which dockToViewPlugin will be docked |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Load layout from variant
| Variant | representation of the layout |
Reimplemented from hdps::util::Serializable.
|
overridevirtual |
Get current workspace
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Get current workspace
Implements hdps::AbstractWorkspaceManager.
|
inline |
|
overridevirtual |
|
virtual |
Get workspace menu
| menu | Pointer to parent menu |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
|
overridevirtual |
Get workspace locations for location types
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Get whether a workspace exists
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Import a workspace from a project file
| projectFilePath | File path of the project (choose file path with dialog when empty) |
| addToRecentWorkspaces | Whether to add the workspace file path to the recent workspace file paths |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Perform manager startup initialization
Reimplemented from hdps::AbstractManager.
|
overridevirtual |
Set whether viewPlugin is isolated or not (closes all other view plugins when isolated)
| viewPlugin | Pointer to view plugin to add to layout |
| isolate | Whether to isolate viewPlugin or to reset the view layout prior to isolation |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Load a workspace from disk
| filePath | File path of the workspace (choose file path with dialog when empty) |
| addToRecentWorkspaces | Whether to add the workspace file path to the recent workspace file paths |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Get whether the manager be locked
Reimplemented from hdps::AbstractManager.
|
overridevirtual |
Get whether the manager be unlocked
Reimplemented from hdps::AbstractManager.
|
overridevirtual |
Creates a new workspace
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Resets the contents of the workspace manager
Implements hdps::AbstractManager.
|
overridevirtual |
Save a workspace to disk
| filePath | File path of the workspace (choose file path with dialog when empty) |
| addToRecentWorkspaces | Whether to add the workspace file path to the recent workspace file paths |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Save a workspace to disk on a different location
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Freeze all dock widgets with dockWidgetPermissions
| dockWidgetPermissions | Global dock widget permission flags |
| set | Whether to set or unset the dock widget permission flags |
Implements hdps::AbstractWorkspaceManager.
|
overridevirtual |
Save layout to variant
Reimplemented from hdps::util::Serializable.