Workspace 6.21.5
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ChangeDescriptionCmd Class Referenceabstract

Command class for changing the description of a polymorphic data operation.

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

Inheritance diagram for ChangeDescriptionCmd:
[legend]

Public Member Functions

void redo () override=0
 
void undo () override=0
 

Protected Member Functions

 ChangeDescriptionCmd (Updatable &updatable, const QString &newDescription)
 
virtual UpdatablegetFromPath (const QString &path, Workspace &relativeTo, QStringList &errors) const =0
 

Protected Attributes

QString idPath_
 
QString newDescription_
 
QString oldDescription_
 
WorkspacerootWorkspace_
 

Constructor & Destructor Documentation

◆ ChangeDescriptionCmd()

ChangeDescriptionCmd ( Updatable updatable,
const QString &  newDescription 
)
protected

Member Function Documentation

◆ getFromPath()

virtual Updatable * getFromPath ( const QString &  path,
Workspace relativeTo,
QStringList errors 
) const
protectedpure virtual

◆ redo()

void redo ( )
overridepure virtual

◆ undo()

void undo ( )
overridepure virtual

Member Data Documentation

◆ idPath_

QString idPath_
protected

◆ newDescription_

QString newDescription_
protected

◆ oldDescription_

QString oldDescription_
protected

◆ rootWorkspace_

Workspace& rootWorkspace_
protected