GRASS Programmer's Manual
6.4.2(2012)
|
Auto complete text area used by GPromptPopUp. More...
Public Member Functions | |
def | __init__ |
Constructor works just like wx.TextCtrl except you can pass in a list of choices. | |
def | GetListCtrl |
Method required by listmix.ColumnSorterMixin. | |
def | SetChoices |
Sets the choices available in the popup wx.ListBox. | |
def | OnClick |
def | OnCommandSelect |
Command selected from history. | |
def | OnListClick |
Left mouse button pressed. | |
def | OnListDClick |
Mouse button double click. | |
def | OnListColClick |
Left mouse button pressed on column. | |
def | OnListItemSelected |
Item selected. | |
def | OnEnteredText |
Text entered. | |
def | OnKeyDown |
Do some work when the user press on the keys: up and down: move the cursor left and right: move the search. | |
def | OnControlChanged |
Control changed. | |
Data Fields | |
statusbar | |
itemDataMap | |
dropdown | |
dropdownlistbox | |
popupsize |
Auto complete text area used by GPromptPopUp.
def gui_modules.prompt.TextCtrlAutoComplete.__init__ | ( | self, | |
parent, | |||
statusbar, | |||
id = wx.ID_ANY , |
|||
choices = [] , |
|||
kwargs | |||
) |
Constructor works just like wx.TextCtrl except you can pass in a list of choices.
You can also change the choice list at any time by calling setChoices.
Inspired by http://wiki.wxpython.org/TextCtrlAutoComplete
Method required by listmix.ColumnSorterMixin.
Definition at line 252 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete.dropdownlistbox.
def gui_modules.prompt.TextCtrlAutoComplete.OnClick | ( | self, | |
event | |||
) |
Left mouse button pressed
Definition at line 287 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._listItemVisible(), and gui_modules.prompt.TextCtrlAutoComplete._showDropDown().
def gui_modules.prompt.TextCtrlAutoComplete.OnCommandSelect | ( | self, | |
event | |||
) |
Command selected from history.
Definition at line 300 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._historyItem, gui_modules.gmodeler.Model.GetItems(), gui_modules.gmodeler.ModelItem.GetItems(), gui_modules.gmodeler.ModelLoopDialog.GetItems(), gui_modules.gmodeler.ItemCheckListCtrl.GetItems(), and gui_modules.gmodeler.ModelConditionDialog.GetItems().
def gui_modules.prompt.TextCtrlAutoComplete.OnControlChanged | ( | self, | |
event | |||
) |
Control changed.
Definition at line 463 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._showDropDown().
def gui_modules.prompt.TextCtrlAutoComplete.OnEnteredText | ( | self, | |
event | |||
) |
Text entered.
Definition at line 331 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._choices, gui_modules.prompt.TextCtrlAutoComplete._choicesCmd, gui_modules.prompt.TextCtrlAutoComplete._choicesMap, gui_modules.prompt.TextCtrlAutoComplete._choiceType, gui_modules.prompt.TextCtrlAutoComplete._hideOnNoMatch, gui_modules.prompt.TextCtrlAutoComplete._listItemVisible(), gui_modules.prompt.TextCtrlAutoComplete._module, gui_modules.prompt.TextCtrlAutoComplete._setModule(), gui_modules.prompt.TextCtrlAutoComplete._showDropDown(), gui_modules.prompt.TextCtrlAutoComplete.SetChoices(), and gui_modules::utils.split().
def gui_modules.prompt.TextCtrlAutoComplete.OnKeyDown | ( | self, | |
event | |||
) |
Do some work when the user press on the keys: up and down: move the cursor left and right: move the search.
Definition at line 412 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._historyItem, gui_modules.prompt.TextCtrlAutoComplete._listItemVisible(), gui_modules.prompt.TextCtrlAutoComplete._setValueFromSelected(), gui_modules.prompt.TextCtrlAutoComplete._showDropDown(), gui_modules.gmodeler.Model.GetItems(), gui_modules.gmodeler.ModelItem.GetItems(), gui_modules.gmodeler.ModelLoopDialog.GetItems(), gui_modules.gmodeler.ItemCheckListCtrl.GetItems(), gui_modules.gmodeler.ModelConditionDialog.GetItems(), and gui_modules.gmodeler.ModelData.SetValue().
def gui_modules.prompt.TextCtrlAutoComplete.OnListClick | ( | self, | |
evt | |||
) |
def gui_modules.prompt.TextCtrlAutoComplete.OnListColClick | ( | self, | |
evt | |||
) |
Left mouse button pressed on column.
Definition at line 316 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._ascending, and gui_modules.prompt.TextCtrlAutoComplete._colSearch.
def gui_modules.prompt.TextCtrlAutoComplete.OnListDClick | ( | self, | |
evt | |||
) |
Mouse button double click.
Definition at line 312 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._setValueFromSelected().
def gui_modules.prompt.TextCtrlAutoComplete.OnListItemSelected | ( | self, | |
event | |||
) |
Item selected.
Definition at line 326 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._setValueFromSelected().
def gui_modules.prompt.TextCtrlAutoComplete.SetChoices | ( | self, | |
choices, | |||
type = 'module' |
|||
) |
Sets the choices available in the popup wx.ListBox.
The items will be sorted case insensitively.
choices | list of choices |
type | type of choices (module, param, flag, raster, vector) |
Definition at line 256 of file prompt.py.
References gui_modules.prompt.TextCtrlAutoComplete._choices, gui_modules.prompt.TextCtrlAutoComplete._choiceType, gui_modules.prompt.TextCtrlAutoComplete._colFetch, gui_modules.prompt.TextCtrlAutoComplete._colSearch, gui_modules.prompt.TextCtrlAutoComplete._setListSize(), and gui_modules.prompt.TextCtrlAutoComplete._updateDataList().
Referenced by gui_modules.prompt.TextCtrlAutoComplete.OnEnteredText().
Definition at line 56 of file prompt.py.
Referenced by gui_modules.prompt.TextCtrlAutoComplete.GetListCtrl().
Definition at line 56 of file prompt.py.
Referenced by gui_modules.vdigit.VDigitCategoryDialog.OnAddCat(), gui_modules.vdigit.VDigitCategoryDialog.OnFeature(), gui_modules.vdigit.VDigitCategoryDialog.OnReload(), and gui_modules.vdigit.VDigitCategoryDialog.UpdateDialog().