Files
remote-ui/Qt/simulators/sim-test.h
T
sani7 b1a2ee3fb3 Sim test
ID to label
2026-02-01 19:00:57 +01:00

41 lines
716 B
C++

#ifndef SIM_TEST_H
#define SIM_TEST_H
#include <QMainWindow>
#include "simulatorbase.h"
#include "web_socket_wrapper.h"
namespace Ui {
class Test_Sim;
}
class Test_Sim : public SimulatorBase {
Q_OBJECT
public:
ITERABLE_ENUM_BEGIN(ui_lookup_e)
button,
led,
label,
slider,
dial,
thermo,
combobox
ITERABLE_ENUM_END;
explicit Test_Sim(Web_socket_wrapper* web_socket, QWidget* parent = nullptr);
~Test_Sim();
void setup_buttons(void);
void setup_sliders(void);
void setup_comboboxes(void);
void setup_dials(void);
QLabel* id_to_label(size_t name) override;
private:
Ui::Test_Sim* ui;
};
#endif // SIM_TEST_H