GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
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. More... | |
def | GetListCtrl |
Method required by listmix.ColumnSorterMixin. More... | |
def | SetChoices |
Sets the choices available in the popup wx.ListBox. More... | |
def | OnClick |
def | OnCommandSelect |
Command selected from history. More... | |
def | OnListClick |
Left mouse button pressed. More... | |
def | OnListDClick |
Mouse button double click. More... | |
def | OnListColClick |
Left mouse button pressed on column. More... | |
def | OnListItemSelected |
Item selected. More... | |
def | OnEnteredText |
Text entered. More... | |
def | OnKeyDown |
Do some work when the user press on the keys: up and down: move the cursor left and right: move the search. More... | |
def | OnControlChanged |
Control changed. More... | |
Data Fields | |
statusbar | |
itemDataMap | |
dropdown | |
dropdownlistbox | |
popupsize | |
Auto complete text area used by GPromptPopUp.
def 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
def prompt.TextCtrlAutoComplete.GetListCtrl | ( | self | ) |
Method required by listmix.ColumnSorterMixin.
Definition at line 250 of file prompt.py.
References prompt.TextCtrlAutoComplete.dropdownlistbox.
def prompt.TextCtrlAutoComplete.OnClick | ( | self, | |
event | |||
) |
Left mouse button pressed
Definition at line 285 of file prompt.py.
References prompt.TextCtrlAutoComplete._listItemVisible(), and prompt.TextCtrlAutoComplete._showDropDown().
def prompt.TextCtrlAutoComplete.OnCommandSelect | ( | self, | |
event | |||
) |
Command selected from history.
Definition at line 298 of file prompt.py.
References prompt.TextCtrlAutoComplete._historyItem, model.Model.GetItems(), dialogs.ModelLoopDialog.GetItems(), dialogs.ModelConditionDialog.GetItems(), dialogs.ItemCheckListCtrl.GetItems(), model.ModelItem.GetItems(), and wxnviz.Nviz.SetFocus().
def prompt.TextCtrlAutoComplete.OnControlChanged | ( | self, | |
event | |||
) |
Control changed.
Definition at line 461 of file prompt.py.
References prompt.TextCtrlAutoComplete._showDropDown().
def prompt.TextCtrlAutoComplete.OnEnteredText | ( | self, | |
event | |||
) |
Text entered.
Definition at line 329 of file prompt.py.
References prompt.TextCtrlAutoComplete._choices, prompt.TextCtrlAutoComplete._choicesCmd, prompt.TextCtrlAutoComplete._choicesMap, prompt.TextCtrlAutoComplete._choiceType, prompt.TextCtrlAutoComplete._hideOnNoMatch, prompt.TextCtrlAutoComplete._listItemVisible(), prompt.TextCtrlAutoComplete._module, prompt.TextCtrlAutoComplete._setModule(), prompt.TextCtrlAutoComplete._showDropDown(), prompt.TextCtrlAutoComplete.SetChoices(), and utils.split().
def 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 410 of file prompt.py.
References prompt.TextCtrlAutoComplete._historyItem, prompt.TextCtrlAutoComplete._listItemVisible(), prompt.TextCtrlAutoComplete._setValueFromSelected(), prompt.TextCtrlAutoComplete._showDropDown(), model.Model.GetItems(), dialogs.ModelLoopDialog.GetItems(), dialogs.ModelConditionDialog.GetItems(), dialogs.ItemCheckListCtrl.GetItems(), model.ModelItem.GetItems(), widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), statusbar.SbShowRegion.SetValue(), statusbar.SbTextItem.SetValue(), statusbar.SbProgress.SetValue(), model.ModelData.SetValue(), and dialogs.TextEntryDialog.SetValue().
def prompt.TextCtrlAutoComplete.OnListClick | ( | self, | |
evt | |||
) |
def prompt.TextCtrlAutoComplete.OnListColClick | ( | self, | |
evt | |||
) |
Left mouse button pressed on column.
Definition at line 314 of file prompt.py.
References prompt.TextCtrlAutoComplete._ascending, and prompt.TextCtrlAutoComplete._colSearch.
def prompt.TextCtrlAutoComplete.OnListDClick | ( | self, | |
evt | |||
) |
Mouse button double click.
Definition at line 310 of file prompt.py.
References prompt.TextCtrlAutoComplete._setValueFromSelected().
def prompt.TextCtrlAutoComplete.OnListItemSelected | ( | self, | |
event | |||
) |
Item selected.
Definition at line 324 of file prompt.py.
References prompt.TextCtrlAutoComplete._setValueFromSelected().
def 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 254 of file prompt.py.
References prompt.TextCtrlAutoComplete._choices, prompt.TextCtrlAutoComplete._choiceType, prompt.TextCtrlAutoComplete._colFetch, prompt.TextCtrlAutoComplete._colSearch, prompt.TextCtrlAutoComplete._setListSize(), prompt.TextCtrlAutoComplete._updateDataList(), and utils.ListSortLower().
Referenced by prompt.TextCtrlAutoComplete.OnEnteredText().
prompt.TextCtrlAutoComplete.dropdownlistbox |
Definition at line 85 of file prompt.py.
Referenced by prompt.TextCtrlAutoComplete.GetListCtrl().
prompt.TextCtrlAutoComplete.itemDataMap |
Definition at line 75 of file prompt.py.
Referenced by dialogs.VDigitCategoryDialog.OnAddCat(), dialogs.VDigitCategoryDialog.OnFeature(), wizard.ItemList.OnGetItemText(), dialogs.VDigitCategoryDialog.OnReload(), wizard.ItemList.Sorter(), and dialogs.VDigitCategoryDialog.UpdateDialog().