Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
Interaction::Command Class Referenceabstract
Inheritance diagram for Interaction::Command:
CodeReview::CCodeReview CodeReview::CCodeReviewComment CodeReview::CFocus Comments::CShapeSetProperty Interaction::CAddNodeToViewByName Interaction::CFind Interaction::COpenDir Interaction::CSaveView Interaction::CSceneHandlerItemExit Interaction::CSceneHandlerSave Interaction::CSwitchView Interaction::CToggleArrowLayer Interaction::CToggleInfoEntry Interaction::CommandWithDefaultArguments Interaction::CommandWithFlags OODebug::CProbe OOInteraction::CSceneHandlerItemTest VersionControlUI::CClear VersionControlUI::CDiff

Public Member Functions

 Command (QString name, bool appearsInMenus=false)
 
virtual ~Command ()
 
bool appearsInMenus () const
 
virtual bool canInterpret (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor)
 
virtual CommandResultexecute (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor)=0
 
const QString name () const
 
virtual QList< CommandSuggestion * > suggest (Visualization::Item *source, Visualization::Item *target, const QString &textSoFar, const std::unique_ptr< Visualization::Cursor > &cursor)
 

Private Attributes

bool appearsInMenus_ {}
 
QString name_
 

Constructor & Destructor Documentation

◆ Command()

Interaction::Command::Command ( QString  name,
bool  appearsInMenus = false 
)

◆ ~Command()

Interaction::Command::~Command ( )
virtual

Member Function Documentation

◆ appearsInMenus()

bool Interaction::Command::appearsInMenus ( ) const
inline

◆ canInterpret()

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

◆ execute()

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

◆ name()

const QString Interaction::Command::name ( ) const
inline

◆ suggest()

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

Member Data Documentation

◆ appearsInMenus_

bool Interaction::Command::appearsInMenus_ {}
private

◆ name_

QString Interaction::Command::name_
private