GRASS Programmer's Manual  6.4.4(2014)-r
gselect.TreeCtrlComboPopup Class Reference

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

Inheritance diagram for gselect.TreeCtrlComboPopup:
Collaboration diagram for gselect.TreeCtrlComboPopup:

Public Member Functions

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

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 407 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 248 of file gselect.py.

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

def gselect.TreeCtrlComboPopup.GetControl (   self)

Definition at line 181 of file gselect.py.

References gselect.TreeCtrlComboPopup.seltree.

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

Get value as a string separated by commas.

Definition at line 184 of file gselect.py.

References gselect.TreeCtrlComboPopup.value, gcmd.GException.value, model.ModelData.value, frame.VariablePanel.value, and dialogs.SetOpacityDialog.value.

def gselect.TreeCtrlComboPopup.GetType (   self)

Get element type.

Definition at line 529 of file gselect.py.

References render.Layer.type, gselect.TreeCtrlComboPopup.type, goutput.GMStderr.type, and frame.VariablePanel.type.

def gselect.TreeCtrlComboPopup.Init (   self)

Definition at line 149 of file gselect.py.

Referenced by wxnviz.Nviz.__init__().

def gselect.TreeCtrlComboPopup.OnMotion (   self,
  evt 
)

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

Definition at line 480 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 188 of file gselect.py.

Field Documentation

gselect.TreeCtrlComboPopup.curitem
gselect.TreeCtrlComboPopup.filterElements

Definition at line 190 of file gselect.py.

Referenced by gselect.TreeCtrlComboPopup.GetAdjustedSize().

gselect.TreeCtrlComboPopup.fullyQualified
gselect.TreeCtrlComboPopup.mapsets
gselect.TreeCtrlComboPopup.multiple
gselect.TreeCtrlComboPopup.onPopup
gselect.TreeCtrlComboPopup.seltree

Definition at line 162 of file gselect.py.

Referenced by gselect.TreeCtrlComboPopup.GetControl().

gselect.TreeCtrlComboPopup.updateOnPopup

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