Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Interaction::AutoCompleteVis Class Reference
Inheritance diagram for Interaction::AutoCompleteVis:
Core::Reflect< Base >

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::ItemfilteredItem_ {}
 
QList< AutoCompleteEntry * > newEntries_
 
bool newEntriesSet_ {true}
 
Visualization::StaticnoProposals_ {}
 
QGraphicsEffect * selectionEffect_ {}
 
int selectionIndex_ {-1}
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Constructor & Destructor Documentation

◆ AutoCompleteVis()

Interaction::AutoCompleteVis::AutoCompleteVis ( const QList< AutoCompleteEntry * > &  entries,
const StyleType *  style = itemStyles().get() 
)

◆ ~AutoCompleteVis()

Interaction::AutoCompleteVis::~AutoCompleteVis ( )
virtual

Member Function Documentation

◆ determineChildren()

void Interaction::AutoCompleteVis::determineChildren ( )
overrideprotectedvirtual

◆ needsUpdate()

Visualization::Item::UpdateType Interaction::AutoCompleteVis::needsUpdate ( )
overridevirtual

◆ resetSelection()

void Interaction::AutoCompleteVis::resetSelection ( )
private

◆ sceneEventFilter()

bool Interaction::AutoCompleteVis::sceneEventFilter ( QGraphicsItem *  watched,
QEvent *  event 
)
overrideprotectedvirtual

◆ selectDown()

void Interaction::AutoCompleteVis::selectDown ( )
private

◆ selectUp()

void Interaction::AutoCompleteVis::selectUp ( )
private

◆ setEntries()

void Interaction::AutoCompleteVis::setEntries ( const QList< AutoCompleteEntry * > &  entries)

◆ setExplicitSelection()

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.

◆ updateEntries()

void Interaction::AutoCompleteVis::updateEntries ( )
private

◆ updateGeometry()

void Interaction::AutoCompleteVis::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

◆ updateSelection()

void Interaction::AutoCompleteVis::updateSelection ( )
private

Member Data Documentation

◆ entries_

QList<AutoCompleteEntry*> Interaction::AutoCompleteVis::entries_
private

◆ explicitSelection_

bool Interaction::AutoCompleteVis::explicitSelection_ {}
private

◆ filteredItem_

Visualization::Item* Interaction::AutoCompleteVis::filteredItem_ {}
private

◆ newEntries_

QList<AutoCompleteEntry*> Interaction::AutoCompleteVis::newEntries_
private

◆ newEntriesSet_

bool Interaction::AutoCompleteVis::newEntriesSet_ {true}
private

◆ noProposals_

Visualization::Static* Interaction::AutoCompleteVis::noProposals_ {}
private

◆ selectionEffect_

QGraphicsEffect* Interaction::AutoCompleteVis::selectionEffect_ {}
private

◆ selectionIndex_

int Interaction::AutoCompleteVis::selectionIndex_ {-1}
private