Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
virtual Visualization::Item * | createInputItem (const QString &initialCommandText) override |
virtual Visualization::StaticStyle * | modeIcon () const override |
virtual void | onEnterKeyPress (Qt::KeyboardModifiers modifiers) override |
Called when the handler of the prompt's shell detects and enter key press. More... | |
virtual void | onShellUpdate () override |
Called whenever the Prompt shell is about to be updated and repainted. More... | |
virtual void | onTabKeyPress (Qt::KeyboardModifiers modifiers) override |
Called when the handler of the prompt's shell detects a TAB key press. More... | |
virtual void | setSelection (InputSelection selection) override |
Public Member Functions inherited from Interaction::PromptMode | |
virtual | ~PromptMode () |
Private Member Functions | |
void | addSuggestions (QList< CommandSuggestion * > suggestions) |
void | removeSuggestions () |
void | showAutocompleteBasedOnSuggestions () |
void | takeSuggestion (CommandSuggestion *suggestion) |
void | updateSuggestions () |
Private Attributes | |
PromptTextInput * | inputItem_ {} |
std::vector< std::unique_ptr< CommandSuggestion > > | suggestions_ |
Additional Inherited Members | |
Public Types inherited from Interaction::PromptMode | |
enum | InputSelection { None , All , AtEnd } |
Protected Member Functions inherited from Interaction::PromptMode | |
void | showErrors (QList< QString > errorMessages, Qt::TextFormat format=Qt::PlainText) const |
Call this method from derived classes in order to display a list of errors messages under the prompt. More... | |
void | showErrors (QList< Visualization::Item * > errorItems) const |
Call this method from derived classes in order to display a list of error item under the prompt. More... | |
|
private |
|
overridevirtual |
Implements Interaction::PromptMode.
|
overridevirtual |
Implements Interaction::PromptMode.
|
overridevirtual |
Called when the handler of the prompt's shell detects and enter key press.
The default implementation does nothing.
Reimplemented from Interaction::PromptMode.
|
overridevirtual |
Called whenever the Prompt shell is about to be updated and repainted.
The default implementation does nothing. Reimplement this in modes which need to update their state when the shell is updated. For example to provide auto-completion based on the latest input.
Reimplemented from Interaction::PromptMode.
|
overridevirtual |
Called when the handler of the prompt's shell detects a TAB key press.
The default implementaiton does nothing.
Reimplemented from Interaction::PromptMode.
|
private |
|
overridevirtual |
Implements Interaction::PromptMode.
|
private |
|
private |
|
private |
|
private |
|
private |