mirror of
https://github.com/modelec/ihm.git
synced 2026-01-19 00:57:27 +01:00
TCP with tirette
This commit is contained in:
@@ -24,6 +24,7 @@ public:
|
||||
|
||||
this->tiretteState = new TiretteState(this);
|
||||
this->leftLayout->addWidget(tiretteState);
|
||||
connect(this->tiretteState, &TiretteState::askTCPServer, this, &PreparationMatch::askTCPServer);
|
||||
|
||||
this->rightLayout = new QVBoxLayout();
|
||||
this->ledVerte = new OneItemPreparation("Led verte", "Check", this);
|
||||
|
||||
@@ -22,6 +22,8 @@ public:
|
||||
|
||||
this->mainLayout->addWidget(this->title, 0, Qt::AlignCenter);
|
||||
this->mainLayout->addLayout(this->tiretteStateLayout);
|
||||
|
||||
connect(this->stateButton, &QPushButton::clicked, this, &TiretteState::onStateButtonClicked);
|
||||
}
|
||||
|
||||
void setState(const std::string& state)
|
||||
@@ -35,6 +37,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
signals:
|
||||
void askTCPServer(const std::string& message);
|
||||
|
||||
public slots:
|
||||
void onStateButtonClicked()
|
||||
{
|
||||
emit askTCPServer("strat;tirette;ping;0");
|
||||
}
|
||||
|
||||
private:
|
||||
QVBoxLayout* mainLayout;
|
||||
QLabel* title;
|
||||
|
||||
Reference in New Issue
Block a user