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

Public Member Functions

def __init__
 Dialog for selecting map layers (raster, vector) More...
 
def LoadMapLayers
 Load list of map layers. More...
 
def OnChangeParams
 Filter parameters changed by user. More...
 
def OnMenu
 Table description area, context menu. More...
 
def OnSelectAll
 Select all map layer from list. More...
 
def OnSelectInvert
 Invert current selection. More...
 
def OnDeselectAll
 Select all map layer from list. More...
 
def OnFilter
 Apply filter for map names. More...
 
def OnToggle
 Select toggle (check or uncheck all layers) More...
 
def GetMapLayers
 Return list of checked map layers. More...
 
def GetLayerType
 Get selected layer type. More...
 
def GetDSeries
 Used by modeler only. More...
 

Data Fields

 parent
 
 mapType
 
 selectAll
 
 bodySizer
 
 map_layers
 
 fullyQualified
 
 dseries
 
 layerType
 
 toggle
 
 mapset
 
 filter
 
 layers
 
 popupDataID1
 
 popupDataID2
 
 popupDataID3
 

Detailed Description

Definition at line 1171 of file gui_core/dialogs.py.

Constructor & Destructor Documentation

def dialogs.MapLayersDialog.__init__ (   self,
  parent,
  title,
  modeler = False,
  mapType = None,
  selectAll = True,
  fullyQualified = True,
  showFullyQualified = True,
  style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
  kwargs 
)

Dialog for selecting map layers (raster, vector)

Valid mapType values:

  • raster
  • raster3d
  • vector
Parameters
mapTypetype of map (if None: raster, vector, 3d raster, if one only: selects it and disables selection)
selectAllall/none maps should be selected by default
fullyQualifiedTrue if dialog should return full map names by default
showFullyQualifiedTrue to show 'fullyQualified' checkbox, otherwise hide it

Definition at line 1174 of file gui_core/dialogs.py.

Member Function Documentation

def dialogs.MapLayersDialog.GetDSeries (   self)

Used by modeler only.

Returns
g.mlist command

Definition at line 1442 of file gui_core/dialogs.py.

References dialogs.MapLayersDialog.dseries, and dialogs.MapLayersDialog.GetLayerType().

def dialogs.MapLayersDialog.GetLayerType (   self,
  cmd = False 
)

Get selected layer type.

Parameters
cmdTrue for g.mlist

Definition at line 1424 of file gui_core/dialogs.py.

Referenced by dialogs.MapLayersDialog.GetDSeries(), and dialogs.MapLayersDialog.OnChangeParams().

def dialogs.MapLayersDialog.GetMapLayers (   self)

Return list of checked map layers.

Definition at line 1405 of file gui_core/dialogs.py.

References tools.range.

def dialogs.MapLayersDialog.LoadMapLayers (   self,
  type,
  mapset 
)

Load list of map layers.

Parameters
typelayer type ('raster' or 'vector')
mapsetmapset name

Definition at line 1318 of file gui_core/dialogs.py.

References dialogs.MapLayersDialog.map_layers, tools.range, and dialogs.MapLayersDialog.selectAll.

Referenced by dialogs.MapLayersDialog.OnChangeParams().

def dialogs.MapLayersDialog.OnChangeParams (   self,
  event 
)

Filter parameters changed by user.

Definition at line 1332 of file gui_core/dialogs.py.

References dialogs.MapLayersDialog.GetLayerType(), and dialogs.MapLayersDialog.LoadMapLayers().

def dialogs.MapLayersDialog.OnDeselectAll (   self,
  event 
)

Select all map layer from list.

Definition at line 1373 of file gui_core/dialogs.py.

References tools.range.

def dialogs.MapLayersDialog.OnFilter (   self,
  event 
)

Apply filter for map names.

Definition at line 1378 of file gui_core/dialogs.py.

References dialogs.MapLayersDialog.map_layers, and dialogs.MapLayersDialog.OnSelectAll().

def dialogs.MapLayersDialog.OnMenu (   self,
  event 
)

Table description area, context menu.

Definition at line 1340 of file gui_core/dialogs.py.

def dialogs.MapLayersDialog.OnSelectAll (   self,
  event 
)

Select all map layer from list.

Definition at line 1360 of file gui_core/dialogs.py.

References tools.range.

Referenced by dialogs.MapLayersDialog.OnFilter().

def dialogs.MapLayersDialog.OnSelectInvert (   self,
  event 
)

Invert current selection.

Definition at line 1365 of file gui_core/dialogs.py.

References tools.range.

def dialogs.MapLayersDialog.OnToggle (   self,
  event 
)

Select toggle (check or uncheck all layers)

Definition at line 1397 of file gui_core/dialogs.py.

References tools.range.

Field Documentation

dialogs.MapLayersDialog.bodySizer

Definition at line 1195 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.dseries

Definition at line 1206 of file gui_core/dialogs.py.

Referenced by dialogs.MapLayersDialog.GetDSeries().

dialogs.MapLayersDialog.filter

Definition at line 1289 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.fullyQualified
dialogs.MapLayersDialog.layerType

Definition at line 1249 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.map_layers
dialogs.MapLayersDialog.mapset

Definition at line 1279 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.popupDataID1

Definition at line 1343 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.popupDataID2

Definition at line 1344 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.popupDataID3

Definition at line 1345 of file gui_core/dialogs.py.

dialogs.MapLayersDialog.selectAll

Definition at line 1192 of file gui_core/dialogs.py.

Referenced by dialogs.MapLayersDialog.LoadMapLayers().

dialogs.MapLayersDialog.toggle

Definition at line 1267 of file gui_core/dialogs.py.


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