trikRuntime
|
Widget which allows to change settings of the robot sensors. More...
#include <sensorSettingsWidget.h>
Public Member Functions | |
SensorSettingsWidget (const QString &port, bool isEncoder, QWidget *parent=0) | |
Constructor. More... | |
~SensorSettingsWidget () | |
void | renewFocus () override |
Set focus properly on this widget or one of its children. More... | |
QString | createScript () |
Generates new command for script and returns it. More... | |
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 () |
Returns menu entry for this widget. 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 which allows to change settings of the robot sensors.
|
explicit |
Constructor.
port | - name of port for this sensor |
isEncoder | - flag that shows whether this sensor is encoder |
parent | - parent of this widget in Qt object hierarchy. |
SensorSettingsWidget::~SensorSettingsWidget | ( | ) |
QString SensorSettingsWidget::createScript | ( | ) |
Generates new command for script and returns it.
|
overrideprotectedvirtual |
Reimplemented from trikGui::TrikGuiDialog.
|
static |
Returns menu entry for this widget.
|
overridevirtual |
Set focus properly on this widget or one of its children.
Implements trikGui::MainWidget.