Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions
Model::NameChange Class Reference
Inheritance diagram for Model::NameChange:
Model::FieldSet< QString > Model::UndoCommand

Public Member Functions

 NameChange (NameText *target, QString &fieldToSet, QString setTo)
 
virtual void redo ()
 
virtual void undo ()
 
- Public Member Functions inherited from Model::FieldSet< QString >
 FieldSet (Node *target, QString &fieldToSet, QString setTo)
 
- Public Member Functions inherited from Model::UndoCommand
 UndoCommand (Node *target, const QString &text)
 
virtual ~UndoCommand ()
 
virtual NodeinsertedNode () const
 Returns the node that this command inserted into the tree, or nullptr if no node was inserted. More...
 
bool isUndone () const
 Returns whether the command has been undone since it was applied. More...
 
virtual Nodeowned () const
 Returns the node owned by this command or nullptr if no node is owned. More...
 
virtual NoderemovedNode () const
 Returns the node that this command removed from the tree, or nullptr if no node was removed. More...
 
Nodetarget () const
 

Additional Inherited Members

- Protected Attributes inherited from Model::FieldSet< QString >
QString & field
 
QString newValue
 
QString oldValue
 

Constructor & Destructor Documentation

◆ NameChange()

Model::NameChange::NameChange ( NameText target,
QString &  fieldToSet,
QString  setTo 
)

Member Function Documentation

◆ redo()

void Model::NameChange::redo ( )
virtual

Reimplemented from Model::FieldSet< QString >.

◆ undo()

void Model::NameChange::undo ( )
virtual

Reimplemented from Model::FieldSet< QString >.