mirror of
https://github.com/modelec/ihm.git
synced 2026-03-18 21:30:52 +01:00
28 lines
509 B
C++
28 lines
509 B
C++
#pragma once
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QWidget>
|
|
|
|
class TiretteState : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
TiretteState(QWidget* parent = nullptr);
|
|
|
|
void setState(const std::string& state);
|
|
|
|
signals:
|
|
void askTCPServer(const std::string& message);
|
|
|
|
public slots:
|
|
void onStateButtonClicked();
|
|
|
|
private:
|
|
QVBoxLayout* mainLayout;
|
|
QLabel* title;
|
|
QHBoxLayout* tiretteStateLayout;
|
|
QLabel* stateLabel;
|
|
QPushButton* stateButton;
|
|
};
|