#include <ILoadUserWorkspaceCmdData.h>
|
| enum | { kDefaultIID = IID_ILOADUSERWORKSPACECMDDATA } |
| |
This interface is used for accessing command data for loading workspaces. Workspaces may contain palette location data and/or menu customization data.
- See Also
- kLoadUserWorkspaceCmdBoss.
| virtual IPaletteWorkspace::WorkspaceVersion ILoadUserWorkspaceCmdData::GetVersion | ( | | ) | const |
| pure virtual |
Return whether to load "current" version of a workspace (the one with _CurrentWorkspace appended on filename), or the file itself.
- Returns
- whether to load current version of workspace with given name (if present) or to reset to the original version of the workspace. Values are IPaletteWorkspace::kCurrentVersion or IPaletteWorkspace::kOriginalVersion
- See Also
- IPaletteWorkspace.h
| virtual IPaletteWorkspace::WorkspaceArea ILoadUserWorkspaceCmdData::GetWorkspaceArea | ( | | ) | const |
| pure virtual |
Get the location of the workspace file - either default folder or user folder.
- Returns
- enum indicating which area.
| virtual PMString ILoadUserWorkspaceCmdData::GetWorkspaceName | ( | | ) | const |
| pure virtual |
Get the workspace file name.
- Returns
- name of workspace file to load.
| virtual void ILoadUserWorkspaceCmdData::SetWorkspaceToLoad | ( | const PMString & | name, | | | IPaletteWorkspace::WorkspaceArea | area = IPaletteWorkspace::kUserWorkspace, | | | IPaletteWorkspace::WorkspaceVersion | version = IPaletteWorkspace::kCurrentVersion | | ) | | |
| pure virtual |
Set the data for which workspace file to load.
- Parameters
| name | - the name of the workspace file to load. |
| area | - indicates if the file to be loaded is expected to be in the user workspace location(usually in a user preferences folder), or the default workspace location(which is generally in the presets folder) |
| version | - indicates if the "current" version of the workspace should be loaded if present. |