Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
Model::SetModificationTarget Class Reference
Inheritance diagram for Model::SetModificationTarget:
Model::UndoCommand

Public Member Functions

 SetModificationTarget (Node *&field, NodeReadWriteLock *&lock, QSet< Node * > &modifiedTargets, Node *newTarget)
 In the constructor below field and lock are references to the corresponding fields in Model::TreeManager. More...
 
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
 

Private Attributes

Node *& field
 
NodeReadWriteLock *& lock
 
QSet< Node * > & modifiedTargets
 
NodenewTarget
 
NodeoldTarget
 

Constructor & Destructor Documentation

◆ SetModificationTarget()

Model::SetModificationTarget::SetModificationTarget ( Node *&  field,
NodeReadWriteLock *&  lock,
QSet< Node * > &  modifiedTargets,
Node newTarget 
)

In the constructor below field and lock are references to the corresponding fields in Model::TreeManager.

Member Function Documentation

◆ redo()

void Model::SetModificationTarget::redo ( )
virtual

Reimplemented from Model::UndoCommand.

◆ undo()

void Model::SetModificationTarget::undo ( )
virtual

Reimplemented from Model::UndoCommand.

Member Data Documentation

◆ field

Node* & Model::SetModificationTarget::field
private

◆ lock

NodeReadWriteLock* & Model::SetModificationTarget::lock
private

◆ modifiedTargets

QSet<Node*>& Model::SetModificationTarget::modifiedTargets
private

◆ newTarget

Node* Model::SetModificationTarget::newTarget
private

◆ oldTarget

Node* Model::SetModificationTarget::oldTarget
private