Commandline mode Main "window". More...
#include <consolewindow.h>
Public Member Functions | |
| ConsoleWindow (const QStringList ¶ms) | |
| void | init () |
| void | run (const QString &scriptName) |
| void | runFile (const QString &scriptName) |
| void | eval (const QString &code) |
| void | call (const QString &func) |
| ~ConsoleWindow () | |
Private Attributes | |
| BaseConsole * | base |
Commandline mode Main "window".
ConsoleWindow - class handling commandline mode
| gui::ConsoleWindow::ConsoleWindow | ( | const QStringList & | params | ) |
| gui::ConsoleWindow::~ConsoleWindow | ( | ) |
default destructor
References base, and gui::BaseCore::call().
| void gui::ConsoleWindow::call | ( | const QString & | func | ) |
| void gui::ConsoleWindow::eval | ( | const QString & | code | ) |
Run given script code
| code | Code to evaluate |
References base, and gui::BaseCore::runScript().
Referenced by main().
| void gui::ConsoleWindow::init | ( | ) |
Run initscripts
Referenced by main().
| void gui::ConsoleWindow::run | ( | const QString & | scriptName | ) |
Runs script from given file, looking in script path first
| scriptName | name of file with QT Script to run |
References base, and gui::Base::run().
Referenced by main().
| void gui::ConsoleWindow::runFile | ( | const QString & | scriptName | ) |
Runs script from given file
| scriptName | name of file with QT Script to run |
References base, and gui::Base::run().
Referenced by main().
BaseConsole* gui::ConsoleWindow::base [private] |
Base used to host scripts
Referenced by ConsoleWindow(), eval(), run(), runFile(), and ~ConsoleWindow().