Envision
A visual programming IDE for object-oriented languages
List of all members | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
Interaction::AutoComplete Class Reference

Static Public Member Functions

static void hide ()
 Schedules an event that will hide the auto completion menu on the next scene update. More...
 
static bool isVisible ()
 
static void show (const QList< AutoCompleteEntry * > entries, bool explicitSelection=false)
 Schedules an event that will show the auto completion menu on the next scene update. More...
 
static AutoCompleteVisvisualization ()
 

Static Private Member Functions

static void hideNow ()
 Hides the auto completion menu immediately. More...
 
static void showNow (const QList< AutoCompleteEntry * > &entries, bool explicitSelection)
 Updates the existing AutoComplete visualization or adds a new one to the top level items of a scene. More...
 

Static Private Attributes

static bool hideRequested_ = false
 
static AutoCompleteVisvis_ = nullptr
 

Member Function Documentation

◆ hide()

void Interaction::AutoComplete::hide ( )
static

Schedules an event that will hide the auto completion menu on the next scene update.

Use this method when you do not want to immediately hide the visualization but wait until the next update. If show() is called before the next update, the visualization is never hidden. This way flickering can be avoided.

◆ hideNow()

void Interaction::AutoComplete::hideNow ( )
staticprivate

Hides the auto completion menu immediately.

This method removes the menu from the scene and deletes the visualization.

◆ isVisible()

bool Interaction::AutoComplete::isVisible ( )
static

◆ show()

void Interaction::AutoComplete::show ( const QList< AutoCompleteEntry * >  entries,
bool  explicitSelection = false 
)
static

Schedules an event that will show the auto completion menu on the next scene update.

The menu will be shown with the provided entries. If explicitSelection is set no default selection will be made and the user will be required to explicitly select a menu item.

◆ showNow()

void Interaction::AutoComplete::showNow ( const QList< AutoCompleteEntry * > &  entries,
bool  explicitSelection 
)
staticprivate

Updates the existing AutoComplete visualization or adds a new one to the top level items of a scene.

◆ visualization()

AutoCompleteVis * Interaction::AutoComplete::visualization ( )
static

Member Data Documentation

◆ hideRequested_

bool Interaction::AutoComplete::hideRequested_ = false
staticprivate

◆ vis_

AutoCompleteVis * Interaction::AutoComplete::vis_ = nullptr
staticprivate