trikRuntime
trikGui::RunningWidget Class Reference

Window that shows information about currently executed script. More...

#include <runningWidget.h>

Inheritance diagram for trikGui::RunningWidget:
Collaboration diagram for trikGui::RunningWidget:

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 }
 

Detailed Description

Window that shows information about currently executed script.

Constructor & Destructor Documentation

RunningWidget::RunningWidget ( Controller controller,
QWidget *  parent = 0 
)
explicit

Constructor.

Parameters
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.

Member Function Documentation

void trikGui::RunningWidget::hideMe ( int  scriptId)
signal

Emitted when running widget wants to hide itself.

void RunningWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotected
void RunningWidget::renewFocus ( )
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.


The documentation for this class was generated from the following files: