19 #include <QMainWindow>
20 #include <QProgressBar>
21 #include <QSerialPort>
23 #include <QTranslator>
216 void addDropShadow(QGroupBox* group,
int xOffset,
int yOffset,
int radius);
The class connecting main application and serial port.
Thread wrapper class for communicating with the serial device on a separate thread.
The class connecting all modules through the UI interface.
void showErrorMessage(const QString &message)
Show error message as status bar message.
void closeEvent(QCloseEvent *event) override
Closing event function.
void on_actionDisconnect_triggered()
Slot triggered when the disconnecting signal was emitted.
FrameThread * _frameThread
Handle for communicating on different thread.
void on_actionClose_triggered()
Slot triggered when the closing signal was emitted.
void setObstacleCloseStatus()
Set the close distance status with the obstacle on the motor information widget.
Communication * _communication
Communication handle.
Ui::MainWindow * ui
Pointer to all UI widgets.
void addValueGSpeedL(const QString &message)
Set the value of the left motor given speed.
void addValueSpeedR(const QString &message)
Set the value of the right motor speed.
void resetObstacleCloseStatus()
Set the normal distance status with the obstacle on the motor information widget.
void setSerialStatus(const QString &message)
Set the connection status with the serial port on the status bar.
void addMessageToLogs(const QString &message)
Add a message to the logs widget.
Parser * _parser
Serial data processor.
void addValueSpeedL(const QString &message)
Set the value of the left motor speed.
void on_actionEnglish_US_triggered()
Change UI language to English (US).
MainWindow(QWidget *parent=nullptr)
Construct a new MainWindow object.
void addValueBattery(const int message)
Set the battery voltage value.
QTranslator _translator
Handle to translator object.
void addDropShadow(QGroupBox *group, int xOffset, int yOffset, int radius)
Add drop shadow under given GroupBox widget.
void serialTimeout()
Update information read from the serial port.
void addValueAccelerationR(const QString &message)
Set the value of the right motor acceleration.
void on_actionPolish_triggered()
Change UI language to Polish.
QTimer _serialTimer
Serial data updating timer.
void on_actionSearch_triggered()
Slot triggered when the searching signal was emitted.
~MainWindow()
Destroy the MainWindow object.
void connectSerialDevice(const QString &actionName)
Connect to the serial device.
void addValueAccelerationL(const QString &message)
Set the value of the left motor acceleration.
void addValueGSpeedR(const QString &message)
Set the value of the right motor given speed.
Parsing class for a processing data from the serial port frame.
Communication class declaration.
FrameThread class declaration.
The Joystick class declaration.
Parser class declaration.