Showing the changes to interface/src/ui/ScriptEditorWindow.cpp (1 of 1 file). Show all
Unified · Split
| @@ -27,6 +27,9 @@ · 26 unmodified lines | ||
| 27 | 27 | |
| 28 | 28 | #include "Application.h" |
| 29 | 29 | #include "FlowLayout.h" |
| 30 | +#include "JSConsole.h" | |
| 31 | + | |
| 32 | +const int CONSOLE_HEIGHT = 150; | |
| 30 | 33 | |
| 31 | 34 | ScriptEditorWindow::ScriptEditorWindow() : |
| 32 | 35 | _ScriptEditorWindowUI(new Ui::ScriptEditorWindow), |
| @@ -48,6 +51,10 @@ ScriptEditorWindow::ScriptEditorWindow() : · 15 unmodified lines | ||
| 48 | 51 | connect(new QShortcut(QKeySequence("Ctrl+S"), this), &QShortcut::activated, this,&ScriptEditorWindow::saveScriptClicked); |
| 49 | 52 | connect(new QShortcut(QKeySequence("Ctrl+O"), this), &QShortcut::activated, this, &ScriptEditorWindow::loadScriptClicked); |
| 50 | 53 | connect(new QShortcut(QKeySequence("F5"), this), &QShortcut::activated, this, &ScriptEditorWindow::toggleRunScriptClicked); |
| 54 | + | |
| 55 | + QWidget* console = new JSConsole(this); | |
| 56 | + console->setFixedHeight(CONSOLE_HEIGHT); | |
| 57 | + this->layout()->addWidget(console); | |
| 51 | 58 | } |
| 52 | 59 | |
| 53 | 60 | ScriptEditorWindow::~ScriptEditorWindow() { |