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

Public Types

typedef std::function< void(AutoCompleteEntry *entry)> ExecuteFunction
 

Public Member Functions

 AutoCompleteEntry (const QString &text, const QString &description, QSharedPointer< Visualization::Item > visualization, ExecuteFunction execFunction=nullptr)
 
 AutoCompleteEntry (const QString &text, const QString &description, Visualization::Item *visualization, ExecuteFunction execFunction=nullptr)
 
 AutoCompleteEntry (const QString &text={}, const QString &description={})
 
virtual ~AutoCompleteEntry ()
 
const QString & description ()
 
virtual void execute ()
 
void setDescription (const QString &description)
 
void setExecutionFunction (ExecuteFunction execFunction)
 
void setText (const QString &text)
 
void setVisualization (QSharedPointer< Visualization::Item > item)
 
void setVisualization (Visualization::Item *item)
 
const QString & text ()
 
QSharedPointer< Visualization::Itemvisualization ()
 

Private Attributes

QString description_
 
ExecuteFunction execFunction_
 
QString text_
 
QSharedPointer< Visualization::Itemvis_
 

Member Typedef Documentation

◆ ExecuteFunction

Constructor & Destructor Documentation

◆ AutoCompleteEntry() [1/3]

Interaction::AutoCompleteEntry::AutoCompleteEntry ( const QString &  text = {},
const QString &  description = {} 
)

◆ AutoCompleteEntry() [2/3]

Interaction::AutoCompleteEntry::AutoCompleteEntry ( const QString &  text,
const QString &  description,
Visualization::Item visualization,
ExecuteFunction  execFunction = nullptr 
)

◆ AutoCompleteEntry() [3/3]

Interaction::AutoCompleteEntry::AutoCompleteEntry ( const QString &  text,
const QString &  description,
QSharedPointer< Visualization::Item visualization,
ExecuteFunction  execFunction = nullptr 
)

◆ ~AutoCompleteEntry()

Interaction::AutoCompleteEntry::~AutoCompleteEntry ( )
virtual

Member Function Documentation

◆ description()

const QString & Interaction::AutoCompleteEntry::description ( )
inline

◆ execute()

void Interaction::AutoCompleteEntry::execute ( )
virtual

Reimplemented in Interaction::CommandSuggestion.

◆ setDescription()

void Interaction::AutoCompleteEntry::setDescription ( const QString &  description)
inline

◆ setExecutionFunction()

void Interaction::AutoCompleteEntry::setExecutionFunction ( ExecuteFunction  execFunction)

◆ setText()

void Interaction::AutoCompleteEntry::setText ( const QString &  text)
inline

◆ setVisualization() [1/2]

void Interaction::AutoCompleteEntry::setVisualization ( QSharedPointer< Visualization::Item item)

◆ setVisualization() [2/2]

void Interaction::AutoCompleteEntry::setVisualization ( Visualization::Item item)

◆ text()

const QString & Interaction::AutoCompleteEntry::text ( )
inline

◆ visualization()

QSharedPointer< Visualization::Item > Interaction::AutoCompleteEntry::visualization ( )
inline

Member Data Documentation

◆ description_

QString Interaction::AutoCompleteEntry::description_
private

◆ execFunction_

ExecuteFunction Interaction::AutoCompleteEntry::execFunction_
private

◆ text_

QString Interaction::AutoCompleteEntry::text_
private

◆ vis_

QSharedPointer<Visualization::Item> Interaction::AutoCompleteEntry::vis_
private