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

Member Function Documentation

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

Definition at line 411 of file gselect.py.

Referenced by gui_modules.gselect.TreeCtrlComboPopup.GetAdjustedSize().

def gui_modules.gselect.TreeCtrlComboPopup.Create (   self,
  parent 
)

Definition at line 155 of file gselect.py.

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

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

Definition at line 253 of file gselect.py.

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

def gui_modules.gselect.TreeCtrlComboPopup.GetControl (   self)

Definition at line 186 of file gselect.py.

References gui_modules.gselect.TreeCtrlComboPopup.seltree.

def gui_modules.gselect.TreeCtrlComboPopup.GetStringValue (   self)
def gui_modules.gselect.TreeCtrlComboPopup.GetType (   self)
def gui_modules.gselect.TreeCtrlComboPopup.Init (   self)

Definition at line 144 of file gselect.py.

def gui_modules.gselect.TreeCtrlComboPopup.mapsetActivated (   self,
  event 
)

Definition at line 179 of file gselect.py.

def gui_modules.gselect.TreeCtrlComboPopup.mapsetCollapsed (   self,
  event 
)

Definition at line 176 of file gselect.py.

def gui_modules.gselect.TreeCtrlComboPopup.mapsetExpanded (   self,
  event 
)

Definition at line 173 of file gselect.py.

def gui_modules.gselect.TreeCtrlComboPopup.mapsetSelected (   self,
  event 
)

Definition at line 182 of file gselect.py.

def gui_modules.gselect.TreeCtrlComboPopup.OnMotion (   self,
  evt 
)

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

Definition at line 483 of file gselect.py.

References gui_modules.gselect.TreeCtrlComboPopup.curitem.

def gui_modules.gselect.TreeCtrlComboPopup.SetFilter (   self,
  filter 
)

Set filter for GIS elements, see e.g.

VectorSelect

Definition at line 193 of file gselect.py.

Field Documentation

gui_modules.gselect.TreeCtrlComboPopup.curitem
gui_modules.gselect.TreeCtrlComboPopup.filterElements

Definition at line 195 of file gselect.py.

Referenced by gui_modules.gselect.TreeCtrlComboPopup.GetAdjustedSize().

gui_modules.gselect.TreeCtrlComboPopup.mapsets
gui_modules.gselect.TreeCtrlComboPopup.onPopup
gui_modules.gselect.TreeCtrlComboPopup.seltree

Definition at line 156 of file gselect.py.

Referenced by gui_modules.gselect.TreeCtrlComboPopup.GetControl().

gui_modules.gselect.TreeCtrlComboPopup.updateOnPopup

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