# {py:mod}`simvx.editor.commands` ```{py:module} simvx.editor.commands ``` ```{autodoc2-docstring} simvx.editor.commands :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`AddNodeCommand ` - ```{autodoc2-docstring} simvx.editor.commands.AddNodeCommand :summary: ``` * - {py:obj}`RemoveNodeCommand ` - ```{autodoc2-docstring} simvx.editor.commands.RemoveNodeCommand :summary: ``` * - {py:obj}`ReparentCommand ` - ```{autodoc2-docstring} simvx.editor.commands.ReparentCommand :summary: ``` * - {py:obj}`ReorderCommand ` - ```{autodoc2-docstring} simvx.editor.commands.ReorderCommand :summary: ``` * - {py:obj}`RenameCommand ` - ```{autodoc2-docstring} simvx.editor.commands.RenameCommand :summary: ``` * - {py:obj}`TransformCommand ` - ```{autodoc2-docstring} simvx.editor.commands.TransformCommand :summary: ``` ```` ### API `````{py:class} AddNodeCommand(parent: simvx.core.Node, child: simvx.core.Node, index: int = -1) :canonical: simvx.editor.commands.AddNodeCommand Bases: {py:obj}`simvx.core.CallableCommand` ```{autodoc2-docstring} simvx.editor.commands.AddNodeCommand ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.commands.AddNodeCommand.__init__ ``` ````{py:property} description :canonical: simvx.editor.commands.AddNodeCommand.description :type: str ```` ````{py:method} execute() -> None :canonical: simvx.editor.commands.AddNodeCommand.execute ```` ````{py:method} undo() -> None :canonical: simvx.editor.commands.AddNodeCommand.undo ```` ````` `````{py:class} RemoveNodeCommand(parent: simvx.core.Node, child: simvx.core.Node) :canonical: simvx.editor.commands.RemoveNodeCommand Bases: {py:obj}`simvx.core.CallableCommand` ```{autodoc2-docstring} simvx.editor.commands.RemoveNodeCommand ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.commands.RemoveNodeCommand.__init__ ``` ````{py:property} description :canonical: simvx.editor.commands.RemoveNodeCommand.description :type: str ```` ````{py:method} execute() -> None :canonical: simvx.editor.commands.RemoveNodeCommand.execute ```` ````{py:method} undo() -> None :canonical: simvx.editor.commands.RemoveNodeCommand.undo ```` ````` `````{py:class} ReparentCommand(node: simvx.core.Node, new_parent: simvx.core.Node, old_parent: simvx.core.Node, old_index: int) :canonical: simvx.editor.commands.ReparentCommand Bases: {py:obj}`simvx.core.CallableCommand` ```{autodoc2-docstring} simvx.editor.commands.ReparentCommand ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.commands.ReparentCommand.__init__ ``` ````{py:property} description :canonical: simvx.editor.commands.ReparentCommand.description :type: str ```` ````{py:method} execute() -> None :canonical: simvx.editor.commands.ReparentCommand.execute ```` ````{py:method} undo() -> None :canonical: simvx.editor.commands.ReparentCommand.undo ```` ````` `````{py:class} ReorderCommand(parent: simvx.core.Node, child: simvx.core.Node, new_index: int, old_index: int) :canonical: simvx.editor.commands.ReorderCommand Bases: {py:obj}`simvx.core.CallableCommand` ```{autodoc2-docstring} simvx.editor.commands.ReorderCommand ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.commands.ReorderCommand.__init__ ``` ````{py:property} description :canonical: simvx.editor.commands.ReorderCommand.description :type: str ```` ````{py:method} execute() -> None :canonical: simvx.editor.commands.ReorderCommand.execute ```` ````{py:method} undo() -> None :canonical: simvx.editor.commands.ReorderCommand.undo ```` ````` `````{py:class} RenameCommand(node: simvx.core.Node, new_name: str, old_name: str) :canonical: simvx.editor.commands.RenameCommand Bases: {py:obj}`simvx.core.CallableCommand` ```{autodoc2-docstring} simvx.editor.commands.RenameCommand ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.commands.RenameCommand.__init__ ``` ````{py:property} description :canonical: simvx.editor.commands.RenameCommand.description :type: str ```` ````{py:method} execute() -> None :canonical: simvx.editor.commands.RenameCommand.execute ```` ````{py:method} undo() -> None :canonical: simvx.editor.commands.RenameCommand.undo ```` ````` `````{py:class} TransformCommand(node: simvx.core.Node, old_values: dict[str, typing.Any], new_values: dict[str, typing.Any]) :canonical: simvx.editor.commands.TransformCommand Bases: {py:obj}`simvx.core.BatchCommand` ```{autodoc2-docstring} simvx.editor.commands.TransformCommand ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.commands.TransformCommand.__init__ ``` ````{py:property} description :canonical: simvx.editor.commands.TransformCommand.description :type: str ```` ````{py:method} execute() -> None :canonical: simvx.editor.commands.TransformCommand.execute ```` ````{py:method} undo() -> None :canonical: simvx.editor.commands.TransformCommand.undo ```` `````