mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
client
rename sims
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#include "test.hpp"
|
||||
#include "ui_test.h"
|
||||
|
||||
Test_Sim::Test_Sim(Web_socket_wrapper *web_socket, QWidget *parent)
|
||||
: Simulator_base(web_socket, parent), ui(new Ui::Test_Sim)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowTitle("Test Sim");
|
||||
this->setWindowState(Qt::WindowMaximized);
|
||||
|
||||
push_ui_item(ui->button);
|
||||
push_ui_item(ui->combobox);
|
||||
push_ui_item(ui->label);
|
||||
push_ui_item(ui->slider);
|
||||
push_ui_item(ui->dial);
|
||||
push_ui_item(ui->thermo);
|
||||
push_ui_item(ui->led);
|
||||
}
|
||||
|
||||
Test_Sim::~Test_Sim()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
QLabel *Test_Sim::id_to_label(size_t id)
|
||||
{
|
||||
QWidget *widget = id_to_ui(id);
|
||||
if (widget == ui->slider)
|
||||
return ui->slider_label;
|
||||
if (widget == ui->thermo)
|
||||
return ui->thermo_label;
|
||||
if (widget == ui->dial)
|
||||
return ui->dial_label;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user