Envision
A visual programming IDE for object-oriented languages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
CodeReview::CFocus Class Reference
Inheritance diagram for CodeReview::CFocus:
Interaction::Command

Classes

struct  FocusInformation
 

Public Member Functions

 CFocus ()
 
virtual bool canInterpret (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor) override
 
virtual Interaction::CommandResultexecute (Visualization::Item *source, Visualization::Item *target, const QStringList &commandTokens, const std::unique_ptr< Visualization::Cursor > &cursor) override
 
virtual QList< Interaction::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
 
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)
 

Static Public Member Functions

static void clearFocusInformation ()
 
static bool focusStep (Visualization::Item *, QKeySequence, Interaction::ActionRegistry::InputState)
 
static void loadFocusInformation ()
 
static void refreshFocusInformation ()
 

Static Private Member Functions

static FocusInformation extractFocusInformation (QString line)
 

Static Private Attributes

static int currentStep_ {0}
 
static QMultiHash< int, FocusInformationfocusList_
 

Constructor & Destructor Documentation

◆ CFocus()

CodeReview::CFocus::CFocus ( )

Member Function Documentation

◆ canInterpret()

bool CodeReview::CFocus::canInterpret ( Visualization::Item source,
Visualization::Item target,
const QStringList &  commandTokens,
const std::unique_ptr< Visualization::Cursor > &  cursor 
)
overridevirtual

◆ clearFocusInformation()

void CodeReview::CFocus::clearFocusInformation ( )
inlinestatic

◆ execute()

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

◆ extractFocusInformation()

CFocus::FocusInformation CodeReview::CFocus::extractFocusInformation ( QString  line)
staticprivate

◆ focusStep()

bool CodeReview::CFocus::focusStep ( Visualization::Item target,
QKeySequence  ,
Interaction::ActionRegistry::InputState   
)
static

◆ loadFocusInformation()

void CodeReview::CFocus::loadFocusInformation ( )
static

◆ refreshFocusInformation()

void CodeReview::CFocus::refreshFocusInformation ( )
static

◆ suggest()

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

Member Data Documentation

◆ currentStep_

int CodeReview::CFocus::currentStep_ {0}
staticprivate

◆ focusList_

QMultiHash< int, CFocus::FocusInformation > CodeReview::CFocus::focusList_
staticprivate