Package ViewerFramework :: Module basicCommand :: Class UndoCommand
[hide private]
[frames] | no frames]

Class UndoCommand

source code

VFCommand.Command --+
                    |
                   UndoCommand

pops undo string from the stack and executes it in the ViewerFrameworks
    scope
    
Package : ViewerFramework
    
Module : basicCommand.py
    
Class : UndoCommand
    
Command : Undo
    
Synopsis:

        None <- Undo()
    



Instance Methods [hide private]
  __init__(self, func=None)
  get_ctr(self)
  saveUndoArg(self, arg)
Add arg to self._undoArgs under a unique name and returns this name
  validateUserPref(self, value)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  doit(self)
virtual method.
  guiCallback(self, event=None)
Default callback function called by the gui
  __call__(self, **kw)
None<---Undo()
  addEntry(self, undoString, menuString)
  setLabel(self)
change menu entry label to show comand name

Inherited from VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildFormDescr, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, strArg, tkCb, updateGeom, warningMsg

Inherited from VFCommand.Command (private): _strArg


Class Variables [hide private]

Inherited from VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self, func=None)
(Constructor)

source code 
None
Overrides: VFCommand.Command.__init__

get_ctr(self)

source code 
None

saveUndoArg(self, arg)

source code 
Add arg to self._undoArgs under a unique name and returns this name

validateUserPref(self, value)

source code 
None

onAddCmdToViewer(self)

source code 
method called when an instance of this command is added to the viewer. This enable viewer-addition time initializations
Overrides: VFCommand.Command.onAddCmdToViewer
(inherited documentation)

doit(self)

source code 
virtual method. Has to be implemented by the sub classes
Overrides: VFCommand.Command.doit
(inherited documentation)

guiCallback(self, event=None)

source code 
Default callback function called by the gui
Overrides: VFCommand.Command.guiCallback
(inherited documentation)

__call__(self, **kw)
(Call operator)

source code 
None<---Undo()
Overrides: VFCommand.Command.__call__

addEntry(self, undoString, menuString)

source code 
None

setLabel(self)

source code 
change menu entry label to show comand name