buttleofx.core.undo_redo.commands.node package

Submodules

buttleofx.core.undo_redo.commands.node.cmdCreateNode module

buttleofx.core.undo_redo.commands.node.cmdCreateReaderNode module

buttleofx.core.undo_redo.commands.node.cmdDeleteNodes module

buttleofx.core.undo_redo.commands.node.cmdSetCoord module

class buttleofx.core.undo_redo.commands.node.cmdSetCoord.CmdSetCoord(graphTarget, nodeTargetName, newCoord)[source]

Bases: buttleofx.core.undo_redo.manageTools.undoableCommand.UndoableCommand

Command that moves a node. Attributes : - graphTarget - nodeTargetName : the name of the target node wich will be changed by the movement - newCoord : the coordinate wich will be mofidy in the target - coordOld : the old coordinate of the target node, which will be used for reset the

target in case of undo command
doCmd()[source]

Executes the movement of the node.

getLabel()[source]
redoCmd()[source]

Redoes the movement of the node. Just calls the doCmd() function.

undoCmd()[source]

Undoes the movement of the node. The target node is reset with the old coordinates.

Module contents