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

Public Member Functions

 CompositeNodeChangeChild (Node *target, Node *newValue, const CompositeIndex &attributeIndex, QVector< QVector< Node * > > *subnodes)
 
virtual void redo ()
 
virtual void undo ()
 
- Public Member Functions inherited from Model::NodeOwningCommand
 NodeOwningCommand (Node *target, const QString &text, Node *ownedIfDone, Node *ownedIfUndone)
 
virtual ~NodeOwningCommand ()
 
virtual NodeinsertedNode () const override
 Returns the node that this command inserted into the tree, or nullptr if no node was inserted. More...
 
virtual Nodeowned () const override
 Returns the node owned by this command or nullptr if no node is owned. More...
 
virtual NoderemovedNode () const override
 Returns the node that this command removed from the tree, or nullptr if no node was removed. More...
 
- Public Member Functions inherited from Model::UndoCommand
 UndoCommand (Node *target, const QString &text)
 
virtual ~UndoCommand ()
 
bool isUndone () const
 Returns whether the command has been undone since it was applied. More...
 
Nodetarget () const
 

Private Attributes

CompositeIndex attributeIndex
 
NodenewVal
 
NodeoldVal
 
QVector< QVector< Node * > > * subnodes
 

Constructor & Destructor Documentation

◆ CompositeNodeChangeChild()

Model::CompositeNodeChangeChild::CompositeNodeChangeChild ( Node target,
Node newValue,
const CompositeIndex attributeIndex,
QVector< QVector< Node * > > *  subnodes 
)

Member Function Documentation

◆ redo()

void Model::CompositeNodeChangeChild::redo ( )
virtual

Reimplemented from Model::NodeOwningCommand.

◆ undo()

void Model::CompositeNodeChangeChild::undo ( )
virtual

Reimplemented from Model::NodeOwningCommand.

Member Data Documentation

◆ attributeIndex

CompositeIndex Model::CompositeNodeChangeChild::attributeIndex
private

◆ newVal

Node* Model::CompositeNodeChangeChild::newVal
private

◆ oldVal

Node* Model::CompositeNodeChangeChild::oldVal
private

◆ subnodes

QVector< QVector<Node*> >* Model::CompositeNodeChangeChild::subnodes
private