Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
InformationScripting::QueryPromptMode Class Reference
Inheritance diagram for InformationScripting::QueryPromptMode:
Interaction::PromptMode

Public Member Functions

virtual Visualization::ItemcreateInputItem (const QString &initialCommandText) override
 
virtual Visualization::StaticStylemodeIcon () 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 setSelection (InputSelection selection) override
 
- Public Member Functions inherited from Interaction::PromptMode
virtual ~PromptMode ()
 
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...
 

Private Attributes

QueryPromptInputinputItem_ {}
 

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...
 

Member Function Documentation

◆ createInputItem()

Visualization::Item * InformationScripting::QueryPromptMode::createInputItem ( const QString &  initialCommandText)
overridevirtual

◆ modeIcon()

Visualization::StaticStyle * InformationScripting::QueryPromptMode::modeIcon ( ) const
overridevirtual

◆ onEnterKeyPress()

void InformationScripting::QueryPromptMode::onEnterKeyPress ( Qt::KeyboardModifiers  modifiers)
overridevirtual

Called when the handler of the prompt's shell detects and enter key press.

The default implementation does nothing.

Reimplemented from Interaction::PromptMode.

◆ setSelection()

void InformationScripting::QueryPromptMode::setSelection ( InputSelection  selection)
overridevirtual

Member Data Documentation

◆ inputItem_

QueryPromptInput* InformationScripting::QueryPromptMode::inputItem_ {}
private