GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
forms.GUI Class Reference

Public Member Functions

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

Data Fields

 parent
 
 show
 
 modal
 
 centreOnParent
 
 checkError
 
 grass_task
 
 cmd
 
 mf
 

Detailed Description

Definition at line 1820 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 1822 of file forms.py.

Member Function Documentation

def forms.GUI.GetCmd (   self)

Get validated command.

Definition at line 1841 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 1961 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 1845 of file forms.py.

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

Field Documentation

forms.GUI.centreOnParent

Definition at line 1829 of file forms.py.

forms.GUI.checkError

Definition at line 1830 of file forms.py.

forms.GUI.grass_task

Definition at line 1832 of file forms.py.

Referenced by forms.GUI.GetCommandInputMapParamKey(), and forms.GUI.ParseCommand().

forms.GUI.mf

Definition at line 1931 of file forms.py.

forms.GUI.modal

Definition at line 1828 of file forms.py.

forms.GUI.show

Definition at line 1827 of file forms.py.

Referenced by forms.GUI.ParseCommand().


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