GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
gselect.TreeCtrlComboPopup Class Reference

Create a tree ComboBox for selecting maps and other GIS elements in accessible mapsets within the current location. More...

Public Member Functions

def Init
def Create
def mapsetExpanded
def mapsetCollapsed
def mapsetActivated
def mapsetSelected
def GetControl
def GetStringValue
 Get value as a string separated by commas.
def SetFilter
 Set filter for GIS elements, see e.g.
def OnPopup
 Limited only for first selected.
def GetElementList
 Get filtered list of GIS elements in accessible mapsets and display as tree with all relevant elements displayed beneath each mapset branch.
def SetStringValue
def GetAdjustedSize
 Reads UserSettings to get height (which was 200 in old implementation).
def FindItem
 Finds item with given name or starting with given text.
def AddItem
def OnKeyUp
 Enables to select items using keyboard.
def OnMotion
 Have the selection follow the mouse, like in a real combobox.
def OnLeftDown
 Do the combobox selection.
def SetData
 Set object properties.
def GetType
 Get element type.

Data Fields

 value
 curitem
 multiple
 type
 mapsets
 updateOnPopup
 onPopup
 fullyQualified
 seltree
 filterElements

Detailed Description

Create a tree ComboBox for selecting maps and other GIS elements in accessible mapsets within the current location.

Definition at line 144 of file gselect.py.


Member Function Documentation

def gselect.TreeCtrlComboPopup.AddItem (   self,
  value,
  parent = None 
)

Definition at line 418 of file gselect.py.

Referenced by gselect.TreeCtrlComboPopup.GetAdjustedSize().

def gselect.TreeCtrlComboPopup.Create (   self,
  parent 
)

Definition at line 161 of file gselect.py.

def gselect.TreeCtrlComboPopup.FindItem (   self,
  parentItem,
  text,
  startLetters = False 
)
def gselect.TreeCtrlComboPopup.GetAdjustedSize (   self,
  minWidth,
  prefHeight,
  maxHeight 
)

Reads UserSettings to get height (which was 200 in old implementation).

Definition at line 259 of file gselect.py.

References model.Model.AddItem(), gselect.TreeCtrlComboPopup.AddItem(), gselect.TreeCtrlComboPopup.filterElements, and min.

Definition at line 192 of file gselect.py.

References gselect.TreeCtrlComboPopup.seltree.

def gselect.TreeCtrlComboPopup.GetElementList (   self,
  elements = None,
  exclude = False 
)

Definition at line 149 of file gselect.py.

Referenced by wxnviz.Nviz.__init__().

def gselect.TreeCtrlComboPopup.mapsetActivated (   self,
  event 
)

Definition at line 185 of file gselect.py.

def gselect.TreeCtrlComboPopup.mapsetCollapsed (   self,
  event 
)

Definition at line 182 of file gselect.py.

def gselect.TreeCtrlComboPopup.mapsetExpanded (   self,
  event 
)

Definition at line 179 of file gselect.py.

def gselect.TreeCtrlComboPopup.mapsetSelected (   self,
  event 
)

Definition at line 188 of file gselect.py.

def gselect.TreeCtrlComboPopup.OnMotion (   self,
  evt 
)

Have the selection follow the mouse, like in a real combobox.

Definition at line 491 of file gselect.py.

References gselect.TreeCtrlComboPopup.curitem.

Referenced by mapwindow.GLWindow.StopTimer().

def gselect.TreeCtrlComboPopup.SetFilter (   self,
  filter 
)

Set filter for GIS elements, see e.g.

VectorSelect

Definition at line 199 of file gselect.py.


Field Documentation


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