Workspace 6.21.5
Public Member Functions | List of all members
SetWorkspaceSourceUrlCmd Class Reference

Undoable command to change the stored external source URL for a Workspace. More...

#include <Workspace/DataExecution/UndoCommands/setworkspacesourceurlcmd.h>

Inheritance diagram for SetWorkspaceSourceUrlCmd:
[legend]

Public Member Functions

 SetWorkspaceSourceUrlCmd (Workspace &ws, const QString &newSourceURL)
 
void redo () override
 
void undo () override
 

Detailed Description

Note
This command does not attempt to modify the contents of the workspace, it only changes the URL stored in the Workspace data structure. The main use of this class is as part of embedding an existing external workspace or saving an existing workspace then marking it as referring to that external source. Both of these scenarios do not modify the workspace contents.

Constructor & Destructor Documentation

◆ SetWorkspaceSourceUrlCmd()

SetWorkspaceSourceUrlCmd ( Workspace ws,
const QString &  newSourceURL 
)

Member Function Documentation

◆ redo()

void redo ( )
override

◆ undo()

void undo ( )
override