GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gselect.Select Class Reference
Inheritance diagram for gselect.Select:
Collaboration diagram for gselect.Select:

Public Member Functions

def __init__
 Custom control to create a ComboBox with a tree control to display and select GIS elements within acessible mapsets. More...
 
def OnKeyUp
 Shows popupwindow if down arrow key is released. More...
 
def SetElementList
 Set element list. More...
 
def GetElementList
 Load elements. More...
 
def SetType
 Param set element type for widget. More...
 

Data Fields

 tcp
 

Detailed Description

Definition at line 57 of file gselect.py.

Constructor & Destructor Documentation

def gselect.Select.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  size = globalvar.DIALOG_GSELECT_SIZE,
  type = None,
  multiple = False,
  nmaps = 1,
  mapsets = None,
  updateOnPopup = True,
  onPopup = None,
  fullyQualified = True 
)

Custom control to create a ComboBox with a tree control to display and select GIS elements within acessible mapsets.

Elements can be selected with mouse. Can allow multiple selections, when argument multiple is True. Multiple selections are separated by commas.

Parameters
typetype of GIS elements ('raster, 'vector', ...)
multipleTrue for multiple input
nmapsnumber of maps to be entered
mapsetsforce list of mapsets (otherwise search path)
updateOnPopupTrue for updating list of elements on popup
onPopupfunction to be called on Popup
fullyQualifiedTrue to provide fully qualified names (map)

Definition at line 61 of file gselect.py.

Member Function Documentation

def gselect.Select.GetElementList (   self)

Load elements.

Definition at line 105 of file gselect.py.

References gselect.Select.SetType().

Referenced by gselect.TreeCtrlComboPopup.OnPopup().

def gselect.Select.OnKeyUp (   self,
  event 
)

Shows popupwindow if down arrow key is released.

Definition at line 90 of file gselect.py.

def gselect.Select.SetElementList (   self,
  type,
  mapsets = None 
)

Set element list.

Parameters
typeGIS element type
mapsetslist of acceptable mapsets (None for all in search path)

Definition at line 97 of file gselect.py.

def gselect.Select.SetType (   self,
  etype,
  multiple = False,
  nmaps = 1,
  mapsets = None,
  updateOnPopup = True,
  onPopup = None 
)

Param set element type for widget.

Parameters
etypeelement type, see gselect.ElementSelect

Definition at line 110 of file gselect.py.

Referenced by gselect.Select.GetElementList().

Field Documentation

gselect.Select.tcp

Definition at line 80 of file gselect.py.


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