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

Classes

class  Parser
 

Public Member Functions

 COpenDir ()
 
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
 

Static Public Member Functions

static void registerFileParser (std::unique_ptr< Parser > parser)
 

Private Member Functions

Model::FileSystemEntryopenDir (QString directoryPath)
 
Model::FileSystemEntryparseFile (QString filePath)
 

Static Private Member Functions

static std::vector< std::unique_ptr< Parser > > & parsers ()
 

Constructor & Destructor Documentation

◆ COpenDir()

Interaction::COpenDir::COpenDir ( )

Member Function Documentation

◆ canInterpret()

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

Reimplemented from Interaction::Command.

◆ execute()

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

Implements Interaction::Command.

◆ openDir()

FileSystemEntry * Interaction::COpenDir::openDir ( QString  directoryPath)
private

◆ parseFile()

FileSystemEntry * Interaction::COpenDir::parseFile ( QString  filePath)
private

◆ parsers()

std::vector< std::unique_ptr< COpenDir::Parser > > & Interaction::COpenDir::parsers ( )
staticprivate

◆ registerFileParser()

void Interaction::COpenDir::registerFileParser ( std::unique_ptr< Parser parser)
static

◆ suggest()

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

Reimplemented from Interaction::Command.