Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
Interaction::CommandWithDefaultArguments Class Referenceabstract
Inheritance diagram for Interaction::CommandWithDefaultArguments:
Interaction::Command Interaction::AddReferencedToViewCommand< OOModel::Class, OOModel::Class > Interaction::AddReferencedToViewCommand< OOModel::Method, OOModel::Method > Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult > Interaction::CAddInfoNode Interaction::CAddNodeToView Interaction::CNewView Interaction::CRemoveNodeFromView OOInteraction::CInspectMethodInView

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 CommandResultexecute (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 CommandResultexecuteWithArguments (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_
 

Constructor & Destructor Documentation

◆ CommandWithDefaultArguments()

Interaction::CommandWithDefaultArguments::CommandWithDefaultArguments ( QString  name,
const QStringList &  defaultArguments 
)

Member Function Documentation

◆ canInterpret()

bool Interaction::CommandWithDefaultArguments::canInterpret ( Visualization::Item source,
Visualization::Item target,
const QStringList &  commandTokens,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
virtual

◆ defaultArguments()

const QStringList & Interaction::CommandWithDefaultArguments::defaultArguments ( )
inline

◆ description()

virtual QString Interaction::CommandWithDefaultArguments::description ( Visualization::Item source,
Visualization::Item target,
const QStringList &  arguments,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
protectedpure virtual

◆ execute()

CommandResult * Interaction::CommandWithDefaultArguments::execute ( Visualization::Item source,
Visualization::Item target,
const QStringList &  commandTokens,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
virtual

Implements Interaction::Command.

◆ executeWithArguments()

virtual CommandResult* Interaction::CommandWithDefaultArguments::executeWithArguments ( Visualization::Item source,
Visualization::Item target,
const QStringList &  arguments,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
protectedpure virtual

◆ getParameters()

QStringList Interaction::CommandWithDefaultArguments::getParameters ( const QStringList &  commandTokens)
protected

◆ suggest()

QList< CommandSuggestion * > Interaction::CommandWithDefaultArguments::suggest ( Visualization::Item source,
Visualization::Item target,
const QString &  textSoFar,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
virtual

Reimplemented from Interaction::Command.

Member Data Documentation

◆ defaultArguments_

QStringList Interaction::CommandWithDefaultArguments::defaultArguments_
private