Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult > Class Template Referenceabstract
Inheritance diagram for Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >:
Interaction::CommandWithDefaultArguments Interaction::Command

Public Types

enum  ArrowDirection { ArrowToReference , ArrowFromReference }
 

Public Member Functions

 AddReferencedToViewCommand (QString name, const QStringList &defaultArguments, int majorOffset, QString arrowLayer, ArrowDirection direction=ArrowToReference, int purpose=-1)
 
virtual bool canInterpret (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor)
 
- Public Member Functions inherited from Interaction::CommandWithDefaultArguments
 CommandWithDefaultArguments (QString name, const QStringList &defaultArguments)
 
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 CommandResultexecuteWithArguments (Visualization::Item *source, Visualization::Item *target, const QStringList &arguments, const std::unique_ptr< Visualization::Cursor > &cursor)
 
virtual QSet< ReferenceResult * > references (ReferenceTarget *target)=0
 
- Protected Member Functions inherited from Interaction::CommandWithDefaultArguments
virtual QString description (Visualization::Item *source, Visualization::Item *target, const QStringList &arguments, const std::unique_ptr< Visualization::Cursor > &cursor)=0
 
QStringList getParameters (const QStringList &commandTokens)
 

Private Attributes

QString arrowLayer_ {}
 
ArrowDirection direction_ {}
 
int majorOffset_ {}
 
int purpose_ {}
 

Member Enumeration Documentation

◆ ArrowDirection

template<typename ReferenceTarget , typename ReferenceResult >
enum Interaction::AddReferencedToViewCommand::ArrowDirection
Enumerator
ArrowToReference 
ArrowFromReference 

Constructor & Destructor Documentation

◆ AddReferencedToViewCommand()

template<typename ReferenceTarget , typename ReferenceResult >
Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::AddReferencedToViewCommand ( QString  name,
const QStringList &  defaultArguments,
int  majorOffset,
QString  arrowLayer,
ArrowDirection  direction = ArrowToReference,
int  purpose = -1 
)
inline

Member Function Documentation

◆ canInterpret()

template<typename ReferenceTarget , typename ReferenceResult >
bool Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::canInterpret ( Visualization::Item source,
Visualization::Item target,
const QStringList &  commandTokens,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
inlinevirtual

◆ executeWithArguments()

template<typename ReferenceTarget , typename ReferenceResult >
CommandResult * Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::executeWithArguments ( Visualization::Item source,
Visualization::Item target,
const QStringList &  arguments,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
protectedvirtual

◆ references()

template<typename ReferenceTarget , typename ReferenceResult >
virtual QSet<ReferenceResult*> Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::references ( ReferenceTarget *  target)
protectedpure virtual

Member Data Documentation

◆ arrowLayer_

template<typename ReferenceTarget , typename ReferenceResult >
QString Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::arrowLayer_ {}
private

◆ direction_

template<typename ReferenceTarget , typename ReferenceResult >
ArrowDirection Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::direction_ {}
private

◆ majorOffset_

template<typename ReferenceTarget , typename ReferenceResult >
int Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::majorOffset_ {}
private

◆ purpose_

template<typename ReferenceTarget , typename ReferenceResult >
int Interaction::AddReferencedToViewCommand< ReferenceTarget, ReferenceResult >::purpose_ {}
private