mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
lint
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#include "sim-can_debugger.h"
|
||||
#include "ui_sim-can_debugger.h"
|
||||
|
||||
Can_Debugger::Can_Debugger(Web_socket_wrapper* web_socket, QWidget *parent) :
|
||||
SimulatorBase(web_socket, parent),
|
||||
ui(new Ui::Can_Debugger) {
|
||||
Can_Debugger::Can_Debugger(Web_socket_wrapper *web_socket, QWidget *parent)
|
||||
: SimulatorBase(web_socket, parent), ui(new Ui::Can_Debugger)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowTitle("CAN Debugger");
|
||||
|
||||
this->push_ui_item(ui->can_transceive);
|
||||
}
|
||||
|
||||
Can_Debugger::~Can_Debugger() {
|
||||
Can_Debugger::~Can_Debugger()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
#ifndef SIM_CAN_DEBUGGER_H
|
||||
#define SIM_CAN_DEBUGGER_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "simulator_base.h"
|
||||
#include <QMainWindow>
|
||||
|
||||
namespace Ui {
|
||||
namespace Ui
|
||||
{
|
||||
class Can_Debugger;
|
||||
}
|
||||
|
||||
class Can_Debugger : public SimulatorBase {
|
||||
class Can_Debugger : public SimulatorBase
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Can_Debugger(Web_socket_wrapper* web_socket, QWidget *parent = nullptr);
|
||||
explicit Can_Debugger(Web_socket_wrapper *web_socket, QWidget *parent = nullptr);
|
||||
~Can_Debugger();
|
||||
|
||||
private:
|
||||
Ui::Can_Debugger* ui;
|
||||
Ui::Can_Debugger *ui;
|
||||
};
|
||||
|
||||
#endif // SIM_CAN_DEBUGGER_H
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#include "sim-test.h"
|
||||
#include "ui_sim-test.h"
|
||||
|
||||
Test_Sim::Test_Sim(Web_socket_wrapper* web_socket, QWidget* parent) :
|
||||
SimulatorBase(web_socket, parent),
|
||||
ui(new Ui::Test_Sim)
|
||||
Test_Sim::Test_Sim(Web_socket_wrapper *web_socket, QWidget *parent)
|
||||
: SimulatorBase(web_socket, parent), ui(new Ui::Test_Sim)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowTitle("Test Sim");
|
||||
@@ -18,13 +17,14 @@ Test_Sim::Test_Sim(Web_socket_wrapper* web_socket, QWidget* parent) :
|
||||
push_ui_item(ui->led);
|
||||
}
|
||||
|
||||
Test_Sim::~Test_Sim() {
|
||||
Test_Sim::~Test_Sim()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
QLabel* Test_Sim::id_to_label(size_t id)
|
||||
QLabel *Test_Sim::id_to_label(size_t id)
|
||||
{
|
||||
QWidget* widget = id_to_ui(id);
|
||||
QWidget *widget = id_to_ui(id);
|
||||
if (widget == ui->slider)
|
||||
return ui->slider_label;
|
||||
if (widget == ui->thermo)
|
||||
|
||||
@@ -1,25 +1,27 @@
|
||||
#ifndef SIM_TEST_H
|
||||
#define SIM_TEST_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "simulator_base.h"
|
||||
#include "web_socket_wrapper.h"
|
||||
#include <QMainWindow>
|
||||
|
||||
namespace Ui {
|
||||
namespace Ui
|
||||
{
|
||||
class Test_Sim;
|
||||
}
|
||||
|
||||
class Test_Sim : public SimulatorBase {
|
||||
class Test_Sim : public SimulatorBase
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Test_Sim(Web_socket_wrapper* web_socket, QWidget* parent = nullptr);
|
||||
explicit Test_Sim(Web_socket_wrapper *web_socket, QWidget *parent = nullptr);
|
||||
~Test_Sim();
|
||||
|
||||
QLabel* id_to_label(size_t name) override;
|
||||
QLabel *id_to_label(size_t name) override;
|
||||
|
||||
private:
|
||||
Ui::Test_Sim* ui;
|
||||
Ui::Test_Sim *ui;
|
||||
};
|
||||
|
||||
#endif // SIM_TEST_H
|
||||
|
||||
Reference in New Issue
Block a user