trikRuntime
|
Window that shows information about currently executed script. More...
#include <runningWidget.h>
Signals | |
void | hideMe (int scriptId) |
Emitted when running widget wants to hide itself. More... | |
Signals inherited from trikGui::MainWidget | |
void | newWidget (trikGui::MainWidget &widget) |
Emitted when the widget created a new one and wants it to be shown. More... | |
Public Member Functions | |
RunningWidget (Controller &controller, QWidget *parent=0) | |
Constructor. More... | |
void | showError (const QString &error, int scriptId) |
Shows given error message on a widget. More... | |
void | setProgram (const QString &programName, int scriptId) |
Associates running widget with a new script. More... | |
int | scriptId () const |
Returns an id of the script which information running widget is showing at the moment. More... | |
void | renewFocus () override |
Set focus properly on this widget or one of its children. More... | |
Public Member Functions inherited from trikGui::MainWidget | |
MainWidget (QWidget *parent) | |
Constructor. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
Additional Inherited Members | |
Public Types inherited from trikGui::MainWidget | |
enum | FileManagerRootType { FileManagerRootType::scriptsDir, FileManagerRootType::allFS } |
Window that shows information about currently executed script.
|
explicit |
Constructor.
programName | - name of a script that is executed. |
controller | - reference to object providing access to low-level functionality. |
parent | - parent of a widget in terms of Qt parent-child widget relations. |
|
signal |
Emitted when running widget wants to hide itself.
|
overrideprotected |
|
overridevirtual |
Set focus properly on this widget or one of its children.
Implements trikGui::MainWidget.
int RunningWidget::scriptId | ( | ) | const |
Returns an id of the script which information running widget is showing at the moment.
void RunningWidget::setProgram | ( | const QString & | programName, |
int | scriptId | ||
) |
Associates running widget with a new script.
void RunningWidget::showError | ( | const QString & | error, |
int | scriptId | ||
) |
Shows given error message on a widget.