GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
forms.GUI Class Reference

Public Member Functions

def __init__
 Parses GRASS commands when module is imported and used from Layer Manager.
def GetCmd
 Get validated command.
def ParseCommand
 Parse command.
def GetCommandInputMapParamKey
 Get parameter key for input raster/vector map.

Data Fields

 parent
 show
 modal
 centreOnParent
 checkError
 grass_task
 cmd
 mf

Detailed Description

Definition at line 1789 of file forms.py.


Constructor & Destructor Documentation

def forms.GUI.__init__ (   self,
  parent = None,
  show = True,
  modal = False,
  centreOnParent = False,
  checkError = False 
)

Parses GRASS commands when module is imported and used from Layer Manager.

Definition at line 1791 of file forms.py.


Member Function Documentation

def forms.GUI.GetCmd (   self)

Get validated command.

Definition at line 1810 of file forms.py.

References render.Layer.cmd, gcmd.Command.cmd, gcmd.CommandThread.cmd, dialogs.DecorationDialog.cmd, and forms.GUI.cmd.

Referenced by wxnviz.ImageTexture.Corresponds().

def forms.GUI.GetCommandInputMapParamKey (   self,
  cmd 
)

Get parameter key for input raster/vector map.

Parameters:
cmdmodule name
Returns:
parameter key
None on failure

Definition at line 1930 of file forms.py.

References python.core.decode(), and forms.GUI.grass_task.

def forms.GUI.ParseCommand (   self,
  cmd,
  gmpath = None,
  completed = None 
)

Parse command.

Note: cmd is given as list

If command is given with options, return validated cmd list:

  • add key name for first parameter if not given
  • change mapname to mapname

Definition at line 1814 of file forms.py.

References gcmd.GetRealCmd(), forms.GUI.grass_task, and forms.GUI.show.


Field Documentation

Definition at line 1798 of file forms.py.

Definition at line 1799 of file forms.py.

Definition at line 1900 of file forms.py.

Definition at line 1797 of file forms.py.

Definition at line 1796 of file forms.py.

Referenced by forms.GUI.ParseCommand().


The documentation for this class was generated from the following file: