Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
CommandWithFlags (const QString &name, const QList< QStringList > &attributes, bool usePossibleNames, bool limitToMatchingNames=true) | |
virtual bool | canInterpret (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor) override |
virtual CommandResult * | execute (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor) override |
virtual QList< CommandSuggestion * > | suggest (Visualization::Item *source, Visualization::Item *target, const QString &textSoFar, const std::unique_ptr< Visualization::Cursor > &cursor) override |
Public Member Functions inherited from Interaction::Command | |
Command (QString name, bool appearsInMenus=false) | |
virtual | ~Command () |
bool | appearsInMenus () const |
const QString | name () const |
Protected Member Functions | |
virtual CommandResult * | executeNamed (Visualization::Item *source, Visualization::Item *target, const std::unique_ptr< Visualization::Cursor > &cursor, const QString &name, const QStringList &attributes)=0 |
virtual QStringList | possibleNames (Visualization::Item *source, Visualization::Item *target, const std::unique_ptr< Visualization::Cursor > &cursor) |
virtual QList< CommandSuggestion * > | suggestNamed (Visualization::Item *source, Visualization::Item *target, const QString &textSoFar, const std::unique_ptr< Visualization::Cursor > &cursor, const QString &name, const QStringList &attributes, bool commandFound) |
Private Member Functions | |
void | findParts (const QStringList &tokens, QString &name, QStringList &attributes, bool &commandFound, bool &unknownFormat, bool useFirstValueAsDefaultAttribute=false) |
QStringList | matchingNames (Visualization::Item *source, Visualization::Item *target, const std::unique_ptr< Visualization::Cursor > &cursor, const QString &nameToLookFor) |
Private Attributes | |
const QList< QStringList > | attributes_ |
const bool | limitToMatchingNames_ {} |
const bool | usePossibleNames_ {} |
Interaction::CommandWithFlags::CommandWithFlags | ( | const QString & | name, |
const QList< QStringList > & | attributes, | ||
bool | usePossibleNames, | ||
bool | limitToMatchingNames = true |
||
) |
|
overridevirtual |
Reimplemented from Interaction::Command.
|
overridevirtual |
Implements Interaction::Command.
|
protectedpure virtual |
Implemented in Interaction::CSceneHandlerLoad, and Interaction::CMerge.
|
private |
|
private |
|
protectedvirtual |
Reimplemented in Interaction::CSceneHandlerLoad, and Interaction::CMerge.
|
overridevirtual |
Reimplemented from Interaction::Command.
|
protectedvirtual |
Reimplemented in Interaction::CreateNamedObjectWithAttributes.
|
private |
|
private |
|
private |