Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Protected Member Functions
Interaction::CreateNamedObjectWithAttributes Class Reference
Inheritance diagram for Interaction::CreateNamedObjectWithAttributes:
Interaction::CommandWithFlags Interaction::Command Alloy::CAlloy Comments::CCreateShape OOInteraction::CCreateClass OOInteraction::CCreateField OOInteraction::CCreateMethod OOInteraction::CCreateModule OOInteraction::CCreateProject OOInteraction::CDoxygen

Public Member Functions

 CreateNamedObjectWithAttributes (const QString &commandName, const QList< QStringList > &attributes)
 
- Public Member Functions inherited from Interaction::CommandWithFlags
 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 CommandResultexecute (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 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) override
 
- Protected Member Functions inherited from Interaction::CommandWithFlags
virtual CommandResultexecuteNamed (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)
 

Constructor & Destructor Documentation

◆ CreateNamedObjectWithAttributes()

Interaction::CreateNamedObjectWithAttributes::CreateNamedObjectWithAttributes ( const QString &  commandName,
const QList< QStringList > &  attributes 
)

Member Function Documentation

◆ suggestNamed()

QList< CommandSuggestion * > Interaction::CreateNamedObjectWithAttributes::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 
)
overrideprotectedvirtual

Reimplemented from Interaction::CommandWithFlags.