GRASS Programmer's Manual
6.4.2(2012)
|
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 |
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.
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 |
|||
) |
Finds item with given name or starting with given text.
Definition at line 395 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.FindItem().
Referenced by gui_modules.gselect.TreeCtrlComboPopup.FindItem(), gui_modules.gselect.TreeCtrlComboPopup.GetElementList(), gui_modules.gselect.TreeCtrlComboPopup.OnKeyUp(), gui_modules.gselect.TreeCtrlComboPopup.OnPopup(), and gui_modules.gselect.TreeCtrlComboPopup.SetStringValue().
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.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 218 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup._getElementList(), gui_modules.gselect.TreeCtrlComboPopup.FindItem(), gui_modules.gselect.TreeCtrlComboPopup.mapsets, gui_modules.gselect.TreeCtrlComboPopup.type, gui_modules.goutput.GMStderr.type, gui_modules.gmodeler.VariablePanel.type, gui_modules.gcmd.GException.value, gui_modules.gselect.TreeCtrlComboPopup.value, gui_modules.gdialogs.SetOpacityDialog.value, gui_modules.gmodeler.ModelData.value, and gui_modules.gmodeler.VariablePanel.value.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.OnPopup().
def gui_modules.gselect.TreeCtrlComboPopup.GetStringValue | ( | self | ) |
Get value as a string separated by commas.
Definition at line 189 of file gselect.py.
References gui_modules.gcmd.GException.value, gui_modules.gselect.TreeCtrlComboPopup.value, gui_modules.gdialogs.SetOpacityDialog.value, gui_modules.gmodeler.ModelData.value, and gui_modules.gmodeler.VariablePanel.value.
def gui_modules.gselect.TreeCtrlComboPopup.GetType | ( | self | ) |
Get element type.
Definition at line 529 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.type, gui_modules.goutput.GMStderr.type, and gui_modules.gmodeler.VariablePanel.type.
Referenced by gui_modules.gmodeler.ModelDataDialog.OnOK().
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.OnKeyUp | ( | self, | |
event | |||
) |
Enables to select items using keyboard.
Definition at line 422 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.FindItem(), gui_modules.gselect.TreeCtrlComboPopup.multiple, gui_modules.utils.split(), gui_modules.gcmd.GException.value, gui_modules.gselect.TreeCtrlComboPopup.value, gui_modules.gdialogs.SetOpacityDialog.value, gui_modules.gmodeler.ModelData.value, and gui_modules.gmodeler.VariablePanel.value.
def gui_modules.gselect.TreeCtrlComboPopup.OnLeftDown | ( | self, | |
evt | |||
) |
Do the combobox selection.
Definition at line 492 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.curitem, gui_modules.gselect.TreeCtrlComboPopup.multiple, gui_modules.utils.split(), gui_modules.gcmd.GException.value, gui_modules.gselect.TreeCtrlComboPopup.value, gui_modules.gdialogs.SetOpacityDialog.value, gui_modules.gmodeler.ModelData.value, and gui_modules.gmodeler.VariablePanel.value.
Referenced by gui_modules.mapdisp_window.BufferedWindow.MouseActions().
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.OnPopup | ( | self, | |
force = False |
|||
) |
Limited only for first selected.
Definition at line 197 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.FindItem(), gui_modules.gselect.Select.GetElementList(), gui_modules.gselect.TreeCtrlComboPopup.GetElementList(), gui_modules.gselect.TreeCtrlComboPopup.onPopup, gui_modules.gselect.TreeCtrlComboPopup.type, gui_modules.goutput.GMStderr.type, gui_modules.gmodeler.VariablePanel.type, and gui_modules.gselect.TreeCtrlComboPopup.updateOnPopup.
def gui_modules.gselect.TreeCtrlComboPopup.SetData | ( | self, | |
kargs | |||
) |
Set object properties.
Definition at line 516 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.mapsets, gui_modules.gselect.TreeCtrlComboPopup.multiple, gui_modules.gselect.TreeCtrlComboPopup.onPopup, gui_modules.gselect.TreeCtrlComboPopup.type, gui_modules.goutput.GMStderr.type, gui_modules.gmodeler.VariablePanel.type, and gui_modules.gselect.TreeCtrlComboPopup.updateOnPopup.
def gui_modules.gselect.TreeCtrlComboPopup.SetFilter | ( | self, | |
filter | |||
) |
def gui_modules.gselect.TreeCtrlComboPopup.SetStringValue | ( | self, | |
value | |||
) |
Definition at line 238 of file gselect.py.
References gui_modules.gselect.TreeCtrlComboPopup.FindItem(), gui_modules.gcmd.GException.value, gui_modules.gselect.TreeCtrlComboPopup.value, gui_modules.gdialogs.SetOpacityDialog.value, gui_modules.gmodeler.ModelData.value, and gui_modules.gmodeler.VariablePanel.value.
gui_modules.gselect.TreeCtrlComboPopup.curitem |
Definition at line 146 of file gselect.py.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.OnLeftDown(), and gui_modules.gselect.TreeCtrlComboPopup.OnMotion().
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 |
Definition at line 149 of file gselect.py.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.GetElementList(), and gui_modules.gselect.TreeCtrlComboPopup.SetData().
gui_modules.gselect.TreeCtrlComboPopup.multiple |
Definition at line 147 of file gselect.py.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.OnKeyUp(), gui_modules.gselect.TreeCtrlComboPopup.OnLeftDown(), and gui_modules.gselect.TreeCtrlComboPopup.SetData().
gui_modules.gselect.TreeCtrlComboPopup.onPopup |
Definition at line 151 of file gselect.py.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.OnPopup(), and gui_modules.gselect.TreeCtrlComboPopup.SetData().
gui_modules.gselect.TreeCtrlComboPopup.seltree |
Definition at line 156 of file gselect.py.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.GetControl().
gui_modules.gselect.TreeCtrlComboPopup.type |
Definition at line 148 of file gselect.py.
Referenced by icons.icon.MetaIcon.__str__(), icons.icon.MetaIcon.GetBitmap(), gui_modules.render.Layer.GetCmd(), gui_modules.render.Layer.GetElement(), gui_modules.gselect.TreeCtrlComboPopup.GetElementList(), gui_modules.render.Layer.GetType(), gui_modules.gselect.TreeCtrlComboPopup.GetType(), gui_modules.gselect.TreeCtrlComboPopup.OnPopup(), gui_modules.render.Layer.Render(), gui_modules.render.Layer.SetCmd(), gui_modules.gselect.TreeCtrlComboPopup.SetData(), and gui_modules.render.Layer.SetType().
gui_modules.gselect.TreeCtrlComboPopup.updateOnPopup |
Definition at line 150 of file gselect.py.
Referenced by gui_modules.gselect.TreeCtrlComboPopup.OnPopup(), and gui_modules.gselect.TreeCtrlComboPopup.SetData().
gui_modules.gselect.TreeCtrlComboPopup.value |
Definition at line 145 of file gselect.py.
Referenced by python.core.ScriptError.__str__(), gui_modules.gselect.TreeCtrlComboPopup.GetElementList(), gui_modules.gselect.TreeCtrlComboPopup.GetStringValue(), gui_modules.gselect.TreeCtrlComboPopup.OnKeyUp(), gui_modules.gselect.TreeCtrlComboPopup.OnLeftDown(), and gui_modules.gselect.TreeCtrlComboPopup.SetStringValue().