buttleofx.core.undo_redo.manageTools package¶
Submodules¶
buttleofx.core.undo_redo.manageTools.commandManager module¶
-
class
buttleofx.core.undo_redo.manageTools.commandManager.
CommandManager
[source]¶ Bases:
quickmamba.patterns.singleton.Singleton
Manages a list of commands.
-
active
= False¶
-
cleanIndex
= 0¶
-
commands
= []¶
-
graphHadChanged
()[source]¶ Indicates to ButtleData that a command just had been done. This function will update the property graphCanBeSaved of ButtleData and will change the display of the “Save Graph” icon.
-
index
= 0¶
-
redoLimit
= 10¶
-
savedGraphIndex
= 0¶
-
setSavedGraphIndex
(index)[source]¶ Sets the index where the graph was when last saved, and indicates to buttleData that something changed (useful for the display of the “Save Graph” icon)
-
undoLimit
= 10¶
-
buttleofx.core.undo_redo.manageTools.groupUndoableCommands module¶
-
class
buttleofx.core.undo_redo.manageTools.groupUndoableCommands.
GroupUndoableCommands
(commands, label)[source]¶ Bases:
object
Group of objects saved in the Command Manager.
-
doCmd
()[source]¶ Executes the user request (the group of functions). Returns nothing, maybe need to be improved in the future (list of return value of each command?).
-
groupUndoableCommands
= []¶
-