GRASS Programmer's Manual  6.4.4(2014)-r
dialogs.MapLayersDialog Class Reference
Inheritance diagram for dialogs.MapLayersDialog:
Collaboration diagram for dialogs.MapLayersDialog:

Public Member Functions

def __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) More...
 
def LoadMapLayers (self, type, mapset)
 Load list of map layers. More...
 
def OnChangeParams (self, event)
 Filter parameters changed by user. More...
 
def OnMenu (self, event)
 Table description area, context menu. More...
 
def OnSelectAll (self, event)
 Select all map layer from list. More...
 
def OnSelectInvert (self, event)
 Invert current selection. More...
 
def OnDeselectAll (self, event)
 Select all map layer from list. More...
 
def OnFilter (self, event)
 Apply filter for map names. More...
 
def OnToggle (self, event)
 Select toggle (check or uncheck all layers) More...
 
def GetMapLayers (self)
 Return list of checked map layers. More...
 
def GetLayerType
 Get selected layer type. More...
 
def GetDSeries (self)
 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 1122 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 1125 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 1393 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 1375 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 1356 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 1269 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 1283 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 1324 of file gui_core/dialogs.py.

References tools.range.

def dialogs.MapLayersDialog.OnFilter (   self,
  event 
)

Apply filter for map names.

Definition at line 1329 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 1291 of file gui_core/dialogs.py.

def dialogs.MapLayersDialog.OnSelectAll (   self,
  event 
)

Select all map layer from list.

Definition at line 1311 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 1316 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 1348 of file gui_core/dialogs.py.

References tools.range.

Field Documentation

dialogs.MapLayersDialog.bodySizer

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

dialogs.MapLayersDialog.dseries

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

Referenced by dialogs.MapLayersDialog.GetDSeries().

dialogs.MapLayersDialog.filter

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

dialogs.MapLayersDialog.fullyQualified
dialogs.MapLayersDialog.layerType

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

dialogs.MapLayersDialog.map_layers
dialogs.MapLayersDialog.mapset

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

dialogs.MapLayersDialog.popupDataID1

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

dialogs.MapLayersDialog.popupDataID2

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

dialogs.MapLayersDialog.popupDataID3

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

dialogs.MapLayersDialog.selectAll

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

Referenced by dialogs.MapLayersDialog.LoadMapLayers().

dialogs.MapLayersDialog.toggle

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


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