trikRuntime
|
Widget that allows to test motors connected to TRIK controller. More...
#include <motorsWidget.h>
Public Member Functions | |
MotorsWidget (trikControl::BrickInterface &brick, trikControl::MotorInterface::Type type, QWidget *parent=0) | |
Constructor. More... | |
~MotorsWidget () override | |
Destructor. More... | |
void | renewFocus () override |
Set focus properly on this widget or one of its children. More... | |
bool | eventFilter (QObject *, QEvent *event) override |
Public Member Functions inherited from trikGui::TrikGuiDialog | |
TrikGuiDialog (QWidget *parent=0) | |
Constructor. More... | |
virtual | ~TrikGuiDialog () |
virtual int | exec () |
Show widget and wait until it will be closed. More... | |
Public Member Functions inherited from trikGui::MainWidget | |
MainWidget (QWidget *parent) | |
Constructor. More... | |
Static Public Member Functions | |
static QString | menuEntry (trikControl::MotorInterface::Type type) |
Title for this widget in a main menu. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
Protected Member Functions inherited from trikGui::TrikGuiDialog | |
virtual void | exit () |
virtual void | goHome () |
Additional Inherited Members | |
Public Types inherited from trikGui::TrikGuiDialog | |
enum | Result { normalExit, goHomeExit } |
Public Types inherited from trikGui::MainWidget | |
enum | FileManagerRootType { FileManagerRootType::scriptsDir, FileManagerRootType::allFS } |
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... | |
Widget that allows to test motors connected to TRIK controller.
MotorsWidget::MotorsWidget | ( | trikControl::BrickInterface & | brick, |
trikControl::MotorInterface::Type | type, | ||
QWidget * | parent = 0 |
||
) |
Constructor.
brick | - reference to trikControl::Brick instance. |
type | - type of motors we want to test. |
parent | - pointer to a parent widget. |
|
override |
Destructor.
|
override |
|
overrideprotectedvirtual |
Reimplemented from trikGui::TrikGuiDialog.
|
static |
Title for this widget in a main menu.
|
overridevirtual |
Set focus properly on this widget or one of its children.
Implements trikGui::MainWidget.