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

Class EditAtomChargeGUICommand

source code

 ViewerFramework.VFCommand.Command --+    
                                     |    
                   mvCommand.MVCommand --+
                                         |
ViewerFramework.VFCommand.ICOM --+       |
                                 |       |
                  mvCommand.MVICOM --+   |
                                     |   |
                  mvCommand.MVAtomICOM --+
                                         |
                                        EditAtomChargeGUICommand

This class provides the GUI to EditAtomCharge which allows the user 
to change atom charge.
    
Package:Pmv
    
Module :editCommands
    
Class:EditAtomTypeGUICommand
    
Command:editAtomTypeGC
    
Synopsis:

         None<---editAtomChargeGC(nodes, **kw)
    
Required Arguments:

        nodes --- TreeNodeSet 


    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __call__(self, nodes, **kw)
None<---editAtomChargeGC(nodes, **kw)
  doit(self, nodes)
virtual method.
  checkStartOk(self)
  setUp(self, res)
  startICOM(self)
gets called every time this command is about to be run becuase of a picking event.
  stopICOM(self)
gets called when this command stops being bound to picking here one should withdraw forms mainly
  setupUndoBefore(self, ats)
This method builds the self.undoCmds string.
  guiCallback(self)

Inherited from mvCommand.MVCommand: 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, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, showForm, tkCb, updateGeom, warningMsg

Inherited from mvCommand.MVAtomICOM: getObjects

Inherited from ViewerFramework.VFCommand.ICOM: initICOM


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__

onAddCmdToViewer(self)

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

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

source code 

None<---editAtomChargeGC(nodes, **kw)

nodes --- TreeNodeSet
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, nodes)

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

checkStartOk(self)

source code 
None

setUp(self, res)

source code 
None

startICOM(self)

source code 
gets called every time this command is about to be run becuase of a picking event. It is called just before the Pick is converted into objects.
Overrides: ViewerFramework.VFCommand.ICOM.startICOM
(inherited documentation)

stopICOM(self)

source code 
gets called when this command stops being bound to picking here one should withdraw forms mainly
Overrides: ViewerFramework.VFCommand.ICOM.stopICOM
(inherited documentation)

setupUndoBefore(self, ats)

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)

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback