Package Pmv :: Module editCommands :: Class EditAtomTypeCommand
[hide private]
[frames] | no frames]

Class EditAtomTypeCommand

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       EditAtomTypeCommand

This class allows the user to change assigned atom types. 
    
Package:Pmv
    
Module :editCommands
    
Class:EditAtomTypeCommand
    
Command:editAtomType
    
Synopsis:

        None <- editAtomType(ats, btype, **kw)

    
Required Arguments:
   
        at ---  atom
 
        btype --- babel_type

    



Instance Methods [hide private]
  __init__(self, func=None)
  __call__(self, ats, btype, **kw)
None <- editAtomType(ats, btype, **kw)
  doit(self, at, btype)
virtual method.
  setupUndoBefore(self, at, btype)
This method builds the self.undoCmds string.

Inherited from mvCommand.MVCommand: guiCallback, strArg

Inherited from mvCommand.MVCommand (private): _strArg

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


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self, func=None)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__init__

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

source code 

None <- editAtomType(ats, btype, **kw)

at --- atom

btype --- babel_type
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, at, btype)

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

setupUndoBefore(self, at, btype)

source code 
This method builds the self.undoCmds string. This method should have the same signature than the __call__. When this string is executed it should undo the actions of this command. This string will be appended to the undoCmdStack list if the command is successfuly carried out. This method handles only commands with the negateKw. Other commands have to overwrite it.
Overrides: ViewerFramework.VFCommand.Command.setupUndoBefore
(inherited documentation)