GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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
 
def Create
 
def GetControl
 
def GetStringValue
 Get value as a string separated by commas. More...
 
def SetFilter
 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
 
def GetAdjustedSize
 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
 Enables to select items using keyboard. More...
 
def OnMotion
 Have the selection follow the mouse, like in a real combobox. More...
 
def OnLeftDown
 Do the combobox selection. More...
 
def SetData
 Set object properties. More...
 
def GetType
 Get element type. More...
 

Data Fields

 value
 
 curitem
 
 multiple
 
 nmaps
 
 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 145 of file gselect.py.

Member Function Documentation

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

Definition at line 409 of file gselect.py.

Referenced by gselect.TreeCtrlComboPopup.GetAdjustedSize().

def gselect.TreeCtrlComboPopup.Create (   self,
  parent 
)

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

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

def gselect.TreeCtrlComboPopup.GetControl (   self)

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

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

def gselect.TreeCtrlComboPopup.GetType (   self)

Get element type.

Definition at line 544 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 150 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 487 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 190 of file gselect.py.

Field Documentation

gselect.TreeCtrlComboPopup.curitem
gselect.TreeCtrlComboPopup.filterElements

Definition at line 192 of file gselect.py.

Referenced by gselect.TreeCtrlComboPopup.GetAdjustedSize().

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

Definition at line 164 of file gselect.py.

Referenced by gselect.TreeCtrlComboPopup.GetControl().

gselect.TreeCtrlComboPopup.updateOnPopup

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