The ScriptConsole class models a command line and output window.
More...
#include <scriptconsole.h>
|
static const std::string | launchConsoleHistoryFilename = "launch_console_command_history.json" |
| The name of the console history settings file used by the console embedded in the launch window. More...
|
|
The ScriptConsole class models a command line and output window.
◆ ScriptConsole()
geometrize::dialog::ScriptConsole::ScriptConsole |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
114 : QWidget(parent),
d{std::make_unique<ScriptConsole::ScriptConsoleImpl>(
this)}
◆ ~ScriptConsole()
geometrize::dialog::ScriptConsole::~ScriptConsole |
( |
| ) |
|
|
virtual |
◆ appendString()
void geometrize::dialog::ScriptConsole::appendString |
( |
const std::string & |
str | ) |
|
appendString Appends a string to the console output window
- Parameters
-
str | The string to append to the output window |
139 d->append(QString::fromStdString(str));
◆ changeEvent()
void geometrize::dialog::ScriptConsole::changeEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
144 if (event->type() == QEvent::LanguageChange) {
145 d->onLanguageChange();
147 QWidget::changeEvent(event);
◆ getHistory()
std::vector< std::string > geometrize::dialog::ScriptConsole::getHistory |
( |
| ) |
const |
129 return d->getHistory();
◆ setEngine()
void geometrize::dialog::ScriptConsole::setEngine |
( |
chaiscript::ChaiScript * |
engine | ) |
|
124 d->setEngine(engine);
◆ setHistory()
void geometrize::dialog::ScriptConsole::setHistory |
( |
const std::vector< std::string > & |
history | ) |
|
134 d->setHistory(history);
◆ launchConsoleHistoryFilename
const std::string geometrize::dialog::ScriptConsole::launchConsoleHistoryFilename = "launch_console_command_history.json" |
|
static |
The name of the console history settings file used by the console embedded in the launch window.
The documentation for this class was generated from the following files:
- /home/appveyor/projects/geometrize-docs/geometrize/geometrize/dialog/scriptconsole.h
- /home/appveyor/projects/geometrize-docs/geometrize/geometrize/dialog/scriptconsole.cpp