|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
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 | |
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 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 |
|||
| ) |
Finds item with given name or starting with given text.
Definition at line 402 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 259 of file gselect.py.
References model.Model.AddItem(), gselect.TreeCtrlComboPopup.AddItem(), gselect.TreeCtrlComboPopup.filterElements, and min.
| def gselect.TreeCtrlComboPopup.GetControl | ( | self | ) |
Definition at line 192 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 224 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 195 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 540 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.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.OnKeyUp | ( | self, | |
| event | |||
| ) |
Enables to select items using keyboard.
Definition at line 429 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 500 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 491 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 203 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 525 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 244 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.
Definition at line 151 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.OnMotion().
Definition at line 201 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetAdjustedSize().
Definition at line 157 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnKeyUp(), gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.SetData().
Definition at line 154 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetElementList(), and gselect.TreeCtrlComboPopup.SetData().
Definition at line 152 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnKeyUp(), gselect.TreeCtrlComboPopup.OnLeftDown(), and gselect.TreeCtrlComboPopup.SetData().
Definition at line 156 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnPopup(), and gselect.TreeCtrlComboPopup.SetData().
Definition at line 162 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.GetControl().
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().
Definition at line 155 of file gselect.py.
Referenced by gselect.TreeCtrlComboPopup.OnPopup(), and gselect.TreeCtrlComboPopup.SetData().
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().