Package arcmap :: Module undo
[hide private]
[frames] | no frames]

Module undo

source code

Module for undoing and redoing actions in the map editor

Classes [hide private]
  UndoAction
Base class for undo actions
  ShapeMoveAction
UndoAction for moving physics shapes around the map
  ShapeDeleteAction
UndoAction for deleting a shape from the map
  ShapeAddAction
UndoAction for adding a shape to the map
  ShapeAdjustAction
UndoAction for adjusting the geometry of a shape
  TileAddAction
Action for adding tiles to the map.
  TileRemoveAction
Action for removing tiles from the map
  ResizeAction
Functions [hide private]
 
addUndoAction(action)
Don't use this directly.
source code
bool
undo()
Returns: True if anything was undone, False otherwise
source code
bool
redo()
Returns: True if anything was redone, False otherwise
source code
bool
canUndo()
Returns: True if there are any actions that can be undone
source code
bool
canRedo()
Returns: True if there are any actions that can be redone
source code
str
getRedoDescription()
Returns: a textual description of the next action that can be redone, or None.
source code
str
getUndoDescription()
Returns: a textual description of the next action taht can be redone, or None.
source code
Variables [hide private]
  __undoList = []
  __redoList = []
  __package__ = 'arcmap'
Function Details [hide private]

addUndoAction(action)

source code 

Don't use this directly. Call the addUndoAction function of MapController. Doing so will update the status of the undo and redo buttons on the window.

Parameters:
  • action (UndoAction) - the action to add to the undo stack

undo()

source code 
Returns: bool
True if anything was undone, False otherwise

redo()

source code 
Returns: bool
True if anything was redone, False otherwise

canUndo()

source code 
Returns: bool
True if there are any actions that can be undone

canRedo()

source code 
Returns: bool
True if there are any actions that can be redone

getRedoDescription()

source code 
Returns: str
a textual description of the next action that can be redone, or None. It's a good idea to call canRedo before this.

getUndoDescription()

source code 
Returns: str
a textual description of the next action taht can be redone, or None. It's a good idea to call canUndo before this.