GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.menuform.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 1682 of file menuform.py.

Constructor & Destructor Documentation

def gui_modules.menuform.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 1684 of file menuform.py.

Member Function Documentation

def gui_modules.menuform.GUI.GetCommandInputMapParamKey (   self,
  cmd 
)

Get parameter key for input raster/vector map.

Parameters
cmdmodule name
Returns
parameter key
None on failure

Definition at line 1824 of file menuform.py.

References python.core.decode(), gui_modules.menuform.GrassGUIApp.grass_task, and gui_modules.menuform.GUI.grass_task.

def gui_modules.menuform.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 1707 of file menuform.py.

References gui_modules.menuform.GrassGUIApp.grass_task, gui_modules.menuform.GUI.grass_task, and gui_modules.menuform.GUI.show.

Field Documentation

gui_modules.menuform.GUI.centreOnParent

Definition at line 1691 of file menuform.py.

gui_modules.menuform.GUI.checkError

Definition at line 1692 of file menuform.py.

gui_modules.menuform.GUI.grass_task
gui_modules.menuform.GUI.mf

Definition at line 1794 of file menuform.py.

gui_modules.menuform.GUI.modal

Definition at line 1690 of file menuform.py.

gui_modules.menuform.GUI.show

Definition at line 1689 of file menuform.py.

Referenced by gui_modules.menuform.GUI.ParseCommand().


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