Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
CommandWithDefaultArguments (QString name, const QStringList &defaultArguments) | |
virtual bool | canInterpret (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor) |
const QStringList & | defaultArguments () |
virtual CommandResult * | execute (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor) |
virtual QList< CommandSuggestion * > | suggest (Visualization::Item *source, Visualization::Item *target, const QString &textSoFar, const std::unique_ptr< Visualization::Cursor > &cursor) |
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 QString | description (Visualization::Item *source, Visualization::Item *target, const QStringList &arguments, const std::unique_ptr< Visualization::Cursor > &cursor)=0 |
virtual CommandResult * | executeWithArguments (Visualization::Item *source, Visualization::Item *target, const QStringList &arguments, const std::unique_ptr< Visualization::Cursor > &cursor)=0 |
QStringList | getParameters (const QStringList &commandTokens) |
Private Attributes | |
QStringList | defaultArguments_ |
Interaction::CommandWithDefaultArguments::CommandWithDefaultArguments | ( | QString | name, |
const QStringList & | defaultArguments | ||
) |
|
virtual |
Reimplemented from Interaction::Command.
Reimplemented in Interaction::CRemoveNodeFromView, Interaction::CAddNodeToView, Interaction::CAddInfoNode, Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >, Interaction::AddReferencedToViewCommand< OOModel::Class, OOModel::Class >, and Interaction::AddReferencedToViewCommand< OOModel::Method, OOModel::Method >.
|
inline |
|
protectedpure virtual |
|
virtual |
Implements Interaction::Command.
|
protectedpure virtual |
Implemented in Interaction::CRemoveNodeFromView, Interaction::CNewView, Interaction::CAddNodeToView, Interaction::CAddInfoNode, Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >, Interaction::AddReferencedToViewCommand< OOModel::Class, OOModel::Class >, and Interaction::AddReferencedToViewCommand< OOModel::Method, OOModel::Method >.
|
protected |
|
virtual |
Reimplemented from Interaction::Command.
|
private |