Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
enum | InputSelection { None , All , AtEnd } |
Public Member Functions | |
virtual | ~PromptMode () |
virtual Visualization::Item * | createInputItem (const QString &initialCommandText)=0 |
virtual Visualization::StaticStyle * | modeIcon () const =0 |
virtual void | onEnterKeyPress (Qt::KeyboardModifiers modifiers) |
Called when the handler of the prompt's shell detects and enter key press. More... | |
virtual void | onShellUpdate () |
Called whenever the Prompt shell is about to be updated and repainted. More... | |
virtual void | onTabKeyPress (Qt::KeyboardModifiers modifiers) |
Called when the handler of the prompt's shell detects a TAB key press. More... | |
virtual void | setSelection (InputSelection selection)=0 |
Protected Member Functions | |
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... | |
|
virtual |
|
pure virtual |
Implemented in Interaction::CommandMode, and InformationScripting::QueryPromptMode.
|
pure virtual |
Implemented in Interaction::CommandMode, and InformationScripting::QueryPromptMode.
|
virtual |
Called when the handler of the prompt's shell detects and enter key press.
The default implementation does nothing.
Reimplemented in Interaction::CommandMode, and InformationScripting::QueryPromptMode.
|
virtual |
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 in Interaction::CommandMode.
|
virtual |
Called when the handler of the prompt's shell detects a TAB key press.
The default implementaiton does nothing.
Reimplemented in Interaction::CommandMode.
|
pure virtual |
Implemented in Interaction::CommandMode, and InformationScripting::QueryPromptMode.
|
protected |
Call this method from derived classes in order to display a list of errors messages under the prompt.
|
protected |
Call this method from derived classes in order to display a list of error item under the prompt.
Ownership of the passed items will be transfered to the Prompt shell.