GRASS Programmer's Manual
6.4.3(2013)-r
|
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 | 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 | |
type | |
mapsets | |
updateOnPopup | |
onPopup | |
fullyQualified | |
seltree | |
filterElements | |
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.
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 |
|||
) |
Finds item with given name or starting with given text.
Definition at line 391 of file gselect.py.
References gselect.TreeCtrlComboPopup.FindItem().
Referenced by gselect.TreeCtrlComboPopup.FindItem(), gselect.TreeCtrlComboPopup.GetElementList(), gselect.TreeCtrlComboPopup.OnKeyUp(), gselect.TreeCtrlComboPopup.OnPopup(), and gselect.TreeCtrlComboPopup.SetStringValue().
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 |
|||
) |
Get filtered list of GIS elements in accessible mapsets and display as tree with all relevant elements displayed beneath each mapset branch.
Definition at line 213 of file gselect.py.
References gselect.TreeCtrlComboPopup._getElementList(), gselect.TreeCtrlComboPopup.FindItem(), gselect.TreeCtrlComboPopup.mapsets, render.Layer.type, gselect.TreeCtrlComboPopup.type, goutput.GMStderr.type, frame.VariablePanel.type, gselect.TreeCtrlComboPopup.value, gcmd.GException.value, model.ModelData.value, frame.VariablePanel.value, and dialogs.SetOpacityDialog.value.
Referenced by gselect.TreeCtrlComboPopup.OnPopup().
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.OnKeyUp | ( | self, | |
event | |||
) |
Enables to select items using keyboard.
Definition at line 418 of file gselect.py.
References gselect.TreeCtrlComboPopup.FindItem(), gselect.TreeCtrlComboPopup.fullyQualified, dialogs.MapLayersDialog.fullyQualified, widgets.GetValue(), gselect.TreeCtrlComboPopup.multiple, utils.split(), gselect.TreeCtrlComboPopup.value, gcmd.GException.value, model.ModelData.value, frame.VariablePanel.value, and dialogs.SetOpacityDialog.value.
def gselect.TreeCtrlComboPopup.OnLeftDown | ( | self, | |
evt | |||
) |
Do the combobox selection.
Definition at line 489 of file gselect.py.
References gselect.TreeCtrlComboPopup.curitem, gselect.TreeCtrlComboPopup.fullyQualified, dialogs.MapLayersDialog.fullyQualified, gselect.TreeCtrlComboPopup.multiple, utils.split(), gselect.TreeCtrlComboPopup.value, gcmd.GException.value, model.ModelData.value, frame.VariablePanel.value, and dialogs.SetOpacityDialog.value.
Referenced by mapwindow.BufferedWindow.MouseActions(), frame.PsMapBufferedWindow.MouseActions(), and mapwindow.GLWindow.OnMouseAction().
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.OnPopup | ( | self, | |
force = False |
|||
) |
Limited only for first selected.
Definition at line 192 of file gselect.py.
References gselect.TreeCtrlComboPopup.FindItem(), gselect.Select.GetElementList(), gselect.TreeCtrlComboPopup.GetElementList(), widgets.GetValue(), gselect.TreeCtrlComboPopup.onPopup, render.Layer.type, gselect.TreeCtrlComboPopup.type, goutput.GMStderr.type, frame.VariablePanel.type, and gselect.TreeCtrlComboPopup.updateOnPopup.
def gselect.TreeCtrlComboPopup.SetData | ( | self, | |
kargs | |||
) |
Set object properties.
Definition at line 514 of file gselect.py.
References gselect.TreeCtrlComboPopup.fullyQualified, dialogs.MapLayersDialog.fullyQualified, gselect.TreeCtrlComboPopup.mapsets, gselect.TreeCtrlComboPopup.multiple, gselect.TreeCtrlComboPopup.onPopup, render.Layer.type, gselect.TreeCtrlComboPopup.type, goutput.GMStderr.type, frame.VariablePanel.type, and gselect.TreeCtrlComboPopup.updateOnPopup.
def gselect.TreeCtrlComboPopup.SetFilter | ( | self, | |
filter | |||
) |
def gselect.TreeCtrlComboPopup.SetStringValue | ( | self, | |
value | |||
) |
Definition at line 233 of file gselect.py.
References gselect.TreeCtrlComboPopup.FindItem(), widgets.GetValue(), gselect.TreeCtrlComboPopup.value, gcmd.GException.value, model.ModelData.value, frame.VariablePanel.value, and dialogs.SetOpacityDialog.value.
gselect.TreeCtrlComboPopup.curitem |
Definition at line 151 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.OnMotion().
gselect.TreeCtrlComboPopup.filterElements |
Definition at line 190 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetAdjustedSize().
gselect.TreeCtrlComboPopup.fullyQualified |
Definition at line 157 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnKeyUp(), gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.SetData().
gselect.TreeCtrlComboPopup.mapsets |
Definition at line 154 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetElementList(), and gselect.TreeCtrlComboPopup.SetData().
gselect.TreeCtrlComboPopup.multiple |
Definition at line 152 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnKeyUp(), gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.SetData().
gselect.TreeCtrlComboPopup.onPopup |
Definition at line 156 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnPopup(), and gselect.TreeCtrlComboPopup.SetData().
gselect.TreeCtrlComboPopup.seltree |
Definition at line 162 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetControl().
gselect.TreeCtrlComboPopup.type |
Definition at line 153 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetElementList(), gselect.TreeCtrlComboPopup.GetType(), gselect.TreeCtrlComboPopup.OnPopup(), gselect.TreeCtrlComboPopup.SetData(), and widgets.BaseValidator.Validate().
gselect.TreeCtrlComboPopup.updateOnPopup |
Definition at line 155 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnPopup(), and gselect.TreeCtrlComboPopup.SetData().
gselect.TreeCtrlComboPopup.value |
Definition at line 150 of file gselect.py.
Referenced by python.core.ScriptError.__str__(), gselect.TreeCtrlComboPopup.GetElementList(), gselect.TreeCtrlComboPopup.GetStringValue(), gselect.TreeCtrlComboPopup.OnKeyUp(), gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.SetStringValue().