Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
AutoCompleteVis (const QList< AutoCompleteEntry * > &entries, const StyleType *style=itemStyles().get()) | |
virtual | ~AutoCompleteVis () |
virtual UpdateType | needsUpdate () override |
void | setEntries (const QList< AutoCompleteEntry * > &entries) |
void | setExplicitSelection (bool explicitSelection) |
Set whether explicit selection is required or not. More... | |
Protected Member Functions | |
virtual void | determineChildren () override |
virtual bool | sceneEventFilter (QGraphicsItem *watched, QEvent *event) override |
virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Private Member Functions | |
void | resetSelection () |
void | selectDown () |
void | selectUp () |
void | updateEntries () |
void | updateSelection () |
Private Attributes | |
QList< AutoCompleteEntry * > | entries_ |
bool | explicitSelection_ {} |
Visualization::Item * | filteredItem_ {} |
QList< AutoCompleteEntry * > | newEntries_ |
bool | newEntriesSet_ {true} |
Visualization::Static * | noProposals_ {} |
QGraphicsEffect * | selectionEffect_ {} |
int | selectionIndex_ {-1} |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
Interaction::AutoCompleteVis::AutoCompleteVis | ( | const QList< AutoCompleteEntry * > & | entries, |
const StyleType * | style = itemStyles().get() |
||
) |
|
virtual |
|
overrideprotectedvirtual |
|
overridevirtual |
|
private |
|
overrideprotectedvirtual |
|
private |
|
private |
void Interaction::AutoCompleteVis::setEntries | ( | const QList< AutoCompleteEntry * > & | entries | ) |
void Interaction::AutoCompleteVis::setExplicitSelection | ( | bool | explicitSelection | ) |
Set whether explicit selection is required or not.
If explicit selection is required, then for an autocomplete entry to be executed the user will specifically have to choose it using the keyboard.
If explicitSelection is set to false (the default) then, the first autocomplete entry is automatically selected.
|
private |
|
overrideprotectedvirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |