|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <AbstractWorkspaceManager.h>
Signals | |
| 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 () |
Public Member Functions | |
| AbstractWorkspaceManager (QObject *parent=nullptr) | |
| virtual void | addViewPlugin (plugin::ViewPlugin *viewPlugin, plugin::ViewPlugin *dockToViewPlugin=nullptr, gui::DockAreaFlag dockArea=gui::DockAreaFlag::Right)=0 |
| virtual void | isolateViewPlugin (plugin::ViewPlugin *viewPlugin, bool isolate)=0 |
| virtual QWidget * | getWidget ()=0 |
| virtual QMenu * | getMenu (QWidget *parent=nullptr)=0 |
| 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 |
| virtual void | setViewPluginDockWidgetPermissionsGlobally (const util::DockWidgetPermissions &dockWidgetPermissions=util::DockWidgetPermission::All, bool set=true)=0 |
| virtual void | newWorkspace ()=0 |
| virtual void | loadWorkspace (QString filePath="", bool addToRecentWorkspaces=true)=0 |
| virtual void | importWorkspaceFromProjectFile (QString filePath="", bool addToRecentWorkspaces=true)=0 |
| virtual void | saveWorkspace (QString filePath="", bool addToRecentWorkspaces=true)=0 |
| virtual void | saveWorkspaceAs ()=0 |
| virtual bool | hasWorkspace () const =0 |
| virtual const Workspace * | getCurrentWorkspace () const =0 |
| virtual Workspace * | getCurrentWorkspace ()=0 |
| virtual WorkspaceLocations | getWorkspaceLocations (const WorkspaceLocation::Types &types=WorkspaceLocation::Type::All)=0 |
Public Member Functions inherited from hdps::AbstractManager | |
| AbstractManager (QObject *parent=nullptr, const QString &name="") | |
| virtual void | initialize () |
| virtual void | beginReset () final |
| virtual void | reset ()=0 |
| virtual void | endReset () final |
| virtual void | beginInitialization () final |
| virtual void | endInitialization () final |
| virtual bool | isInitialized () const final |
| virtual QIcon | getIcon () const |
| gui::LockingAction & | getLockingAction () |
| virtual bool | mayLock () const |
| virtual bool | mayUnlock () const |
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 | fromVariantMap (const QVariantMap &variantMap) |
| virtual void | fromParentVariantMap (const QVariantMap &parentVariantMap) |
| virtual QVariantMap | toVariantMap () const |
| 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 | |
Public Types inherited from hdps::util::Serializable | |
| enum class | State { Idle , Reading , Writing } |
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) |
Abstract workspace manager class
Base abstract workspace manager class for managing workspaces and layout.
|
inline |
Construct workspace manager with parent object
| parent | Pointer to parent object |
|
pure virtual |
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 new view plugins are docked (new view plugins be docked top-level if nullptr) |
| dockArea | Dock area in which dockToViewPlugin will be docked |
Implemented in hdps::WorkspaceManager.
|
inlinefinalvirtual |
Begin the workspace loading process
|
inlinefinalvirtual |
Begin the workspace saving process
|
inlinefinalvirtual |
End the workspace loading process
|
inlinefinalvirtual |
End the workspace saving process
|
pure virtual |
Get current workspace
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Get current workspace
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Get workspace menu
| menu | Pointer to parent menu |
Implemented in hdps::WorkspaceManager.
|
pure virtual |
|
inlinefinalvirtual |
Get the file path of the loaded workspace
|
pure virtual |
Get workspace locations for location types
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Get whether a workspace exists
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Import a workspace from a project file
| filePath | 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 |
Implemented in hdps::WorkspaceManager.
|
pure virtual |
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 |
Implemented in hdps::WorkspaceManager.
|
pure virtual |
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 |
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Creates a new workspace
Implemented in hdps::WorkspaceManager.
|
pure virtual |
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 |
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Save a workspace to disk on a different location
Implemented in hdps::WorkspaceManager.
|
pure virtual |
Applies the CSS stylesheet to the dock managers virtual void applyStyleSheet() final { QFile styleSheetFile(":/styles/ads_light.css");
styleSheetFile.open(QIODevice::ReadOnly);
QTextStream styleSheetStream(&styleSheetFile); auto stylesheet = styleSheetStream.readAll();
styleSheetFile.close();
_mainDockManager->setStyleSheet(stylesheet); auto dockManagers = findChildren<CDockManager*>();
for (auto dockManager : dockManagers) dockManager->setStyleSheet(stylesheet); } Set dockWidgetPermissions for all view plugin dock widgets
| dockWidgetPermissions | Global dock widget permission flags |
| set | Whether to set or unset the dock widget permission flags |
Implemented in hdps::WorkspaceManager.
|
inlinefinalvirtual |
Set the file path of the loaded workspace
| filePath | File path of the loaded workspace |
|
signal |
Signals that a new workspace is about to be created
|
signal |
Signals that a workspace is about to be loaded from filePath
| filePath | File path of the workspace |
|
signal |
Signals that a workspace is about to be saved to filePath
| filePath | File path of the workspace |
|
signal |
Signals that workspace is created
| workspace | Reference to the created workspace |
|
signal |
Signals that the location of the current workspace changed to filePath
| filePath | File path of the workspace |
|
signal |
Signals that a workspace is loaded from filePath
| filePath | File path of the workspace |
|
signal |
Signals that a workspace is saved to filePath
| filePath | File path of the workspace |