trikRuntime
trikGui::MotorsWidget Class Reference

Widget that allows to test motors connected to TRIK controller. More...

#include <motorsWidget.h>

Inheritance diagram for trikGui::MotorsWidget:
Collaboration diagram for trikGui::MotorsWidget:

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

Detailed Description

Widget that allows to test motors connected to TRIK controller.

Constructor & Destructor Documentation

MotorsWidget::MotorsWidget ( trikControl::BrickInterface brick,
trikControl::MotorInterface::Type  type,
QWidget *  parent = 0 
)

Constructor.

Parameters
brick- reference to trikControl::Brick instance.
type- type of motors we want to test.
parent- pointer to a parent widget.
MotorsWidget::~MotorsWidget ( )
override

Destructor.

Member Function Documentation

bool MotorsWidget::eventFilter ( QObject *  o,
QEvent *  event 
)
override
void MotorsWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Reimplemented from trikGui::TrikGuiDialog.

QString MotorsWidget::menuEntry ( trikControl::MotorInterface::Type  type)
static

Title for this widget in a main menu.

void MotorsWidget::renewFocus ( )
overridevirtual

Set focus properly on this widget or one of its children.

Implements trikGui::MainWidget.


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