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

Public Member Functions

virtual ~CommandExecutionEngine ()
 
virtual QList< CommandSuggestion * > autoComplete (Visualization::Item *originator, const QString &textSoFar, const std::unique_ptr< Visualization::Cursor > &cursor)
 
virtual void execute (Visualization::Item *originator, const QString &command, const std::unique_ptr< Visualization::Cursor > &cursor)
 
QSharedPointer< CommandResultresult ()
 

Static Public Member Functions

static CommandExecutionEngineinstance ()
 

Protected Member Functions

 CommandExecutionEngine ()=default
 
virtual bool doQuotesMatch (const QString &string, const QString &quoteSymbols, const QString &escapeSymbols)
 
virtual QString extractNavigationString (QString &command)
 
virtual bool isEscaped (const QString &string, int indexToCheck, const QString &escapeSymbols)
 
virtual Visualization::Itemnavigate (Visualization::Item *originator, const QString &navigationString)
 
virtual QStringList tokenize (const QString &string, const QString &quoteSymbols, const QString &escapeSymbols)
 
virtual QStringList tokenizeNonQuoted (const QString &string)
 

Private Member Functions

QList< CommandSuggestion * > suggestionsForHandler (GenericHandler *handler, QSet< std::size_t > &alreadySuggested, QString textSoFar, Visualization::Item *source, Visualization::Item *target, const std::unique_ptr< Visualization::Cursor > &cursor)
 

Private Attributes

QSharedPointer< CommandResultlastCommandResult_
 

Constructor & Destructor Documentation

◆ ~CommandExecutionEngine()

Interaction::CommandExecutionEngine::~CommandExecutionEngine ( )
virtual

◆ CommandExecutionEngine()

Interaction::CommandExecutionEngine::CommandExecutionEngine ( )
protecteddefault

Member Function Documentation

◆ autoComplete()

QList< CommandSuggestion * > Interaction::CommandExecutionEngine::autoComplete ( Visualization::Item originator,
const QString &  textSoFar,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
virtual

◆ doQuotesMatch()

bool Interaction::CommandExecutionEngine::doQuotesMatch ( const QString &  string,
const QString &  quoteSymbols,
const QString &  escapeSymbols 
)
protectedvirtual

◆ execute()

void Interaction::CommandExecutionEngine::execute ( Visualization::Item originator,
const QString &  command,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
virtual

◆ extractNavigationString()

QString Interaction::CommandExecutionEngine::extractNavigationString ( QString &  command)
protectedvirtual

◆ instance()

CommandExecutionEngine * Interaction::CommandExecutionEngine::instance ( )
static

◆ isEscaped()

bool Interaction::CommandExecutionEngine::isEscaped ( const QString &  string,
int  indexToCheck,
const QString &  escapeSymbols 
)
protectedvirtual

◆ navigate()

Visualization::Item * Interaction::CommandExecutionEngine::navigate ( Visualization::Item originator,
const QString &  navigationString 
)
protectedvirtual

◆ result()

QSharedPointer< CommandResult > Interaction::CommandExecutionEngine::result ( )
inline

◆ suggestionsForHandler()

QList< CommandSuggestion * > Interaction::CommandExecutionEngine::suggestionsForHandler ( GenericHandler handler,
QSet< std::size_t > &  alreadySuggested,
QString  textSoFar,
Visualization::Item source,
Visualization::Item target,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
private

◆ tokenize()

QStringList Interaction::CommandExecutionEngine::tokenize ( const QString &  string,
const QString &  quoteSymbols,
const QString &  escapeSymbols 
)
protectedvirtual

◆ tokenizeNonQuoted()

QStringList Interaction::CommandExecutionEngine::tokenizeNonQuoted ( const QString &  string)
protectedvirtual

Member Data Documentation

◆ lastCommandResult_

QSharedPointer<CommandResult> Interaction::CommandExecutionEngine::lastCommandResult_
private