wxMaxima
Loading...
Searching...
No Matches
Data Structures | Public Member Functions
AutocompletePopup Class Referencefinal
Inheritance diagram for AutocompletePopup:
[legend]
Collaboration diagram for AutocompletePopup:
[legend]

Public Member Functions

void SetPosition (wxPoint pos)
 Define where the popup will appear on Create()
 
bool Create (wxWindow *parent) override
 Create popup control.
 
void OnChar (wxKeyEvent &event)
 Gets the info which keycode the current keypress results in.
 
void OnKeyDown (wxKeyEvent &event)
 Gets the info which key has been pressed with which modifier.
 
 AutocompletePopup (wxWindow *parent, EditorCell *editor, AutoComplete *autocomplete, AutoComplete::autoCompletionType type, AutocompletePopup **doneptr, const wxString &fileBaseDir={})
 The constructor of the autocompletion window.
 
void UpdateResults (bool allowAutoFinish=true)
 Re-filter the completion list against the current partial.
 
void OnClick (wxMouseEvent &event)
 

Constructor & Destructor Documentation

◆ AutocompletePopup()

AutocompletePopup::AutocompletePopup ( wxWindow *  parent,
EditorCell editor,
AutoComplete autocomplete,
AutoComplete::autoCompletionType  type,
AutocompletePopup **  doneptr,
const wxString &  fileBaseDir = {} 
)

The constructor of the autocompletion window.

Parameters
parentThe parent window
editorThe cell that contains the text that is to be completed
autocompleteThe autocompletion data
typeThe type of completion needed
doneptrA pointer that will be set to NULL when the pop-up is destroyed.
fileBaseDirThe directory relative file names are resolved against (used by the file-name completion types to descend into subdirectories).

Member Function Documentation

◆ UpdateResults()

void AutocompletePopup::UpdateResults ( bool  allowAutoFinish = true)

Re-filter the completion list against the current partial.

Parameters
allowAutoFinishWith true, a single remaining completion is applied immediately (finishing the completion or descending into the directory it names). Pass false when the user is deleting: silently re-inserting what was just deleted would fight the user - the single match is then only displayed.

The documentation for this class was generated from the following files: