mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
39 lines
675 B
C++
39 lines
675 B
C++
#pragma once
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
class Lidar : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Lidar(QWidget* parent = nullptr);
|
|
|
|
void TCPMessage(const QString& message);
|
|
|
|
signals:
|
|
void askTCPServer(const std::string& message);
|
|
|
|
public slots:
|
|
void onStartButtonClicked();
|
|
|
|
void onHealthButtonClicked();
|
|
|
|
void onPositionButtonClicked();
|
|
|
|
private:
|
|
QVBoxLayout* mainLayout;
|
|
QLabel* title;
|
|
QHBoxLayout* position;
|
|
QHBoxLayout* health;
|
|
|
|
QPushButton* startLidar;
|
|
|
|
QLabel* postionTitle;
|
|
QPushButton* positionButton;
|
|
|
|
QLabel* healthTitle;
|
|
QPushButton* healthButton;
|
|
};
|