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

Public Member Functions

 FieldSet (Node *target, T &fieldToSet, T setTo)
 
virtual void redo ()
 
virtual void undo ()
 
- 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
 

Protected Attributes

T & field
 
newValue
 
oldValue
 

Constructor & Destructor Documentation

◆ FieldSet()

template<typename T >
Model::FieldSet< T >::FieldSet ( Node target,
T &  fieldToSet,
setTo 
)
inline

Member Function Documentation

◆ redo()

template<typename T >
void Model::FieldSet< T >::redo
inlinevirtual

Reimplemented from Model::UndoCommand.

Reimplemented in Model::NameChange.

◆ undo()

template<typename T >
void Model::FieldSet< T >::undo
inlinevirtual

Reimplemented from Model::UndoCommand.

Reimplemented in Model::NameChange.

Member Data Documentation

◆ field

template<typename T >
T& Model::FieldSet< T >::field
protected

◆ newValue

template<typename T >
T Model::FieldSet< T >::newValue
protected

◆ oldValue

template<typename T >
T Model::FieldSet< T >::oldValue
protected