mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Replaces header guards with pragma once
This commit is contained in:
+1
-5
@@ -1,6 +1,4 @@
|
||||
#ifndef HELPERS_H
|
||||
#define HELPERS_H
|
||||
|
||||
#pragma once
|
||||
#include <QtWidgets>
|
||||
#include <qwt_color_map.h>
|
||||
#include <qwt_dial.h>
|
||||
@@ -18,5 +16,3 @@ void set_widget_color(QWidget *widget, QString color, QString bg);
|
||||
QColor widget_bg_color(QWidget *widget);
|
||||
QColor widget_color(QWidget *widget);
|
||||
void reset_widget_color(QWidget *widget);
|
||||
|
||||
#endif // HELPERS_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#pragma once
|
||||
#include "networkerror.hpp"
|
||||
#include "simulator_base.hpp"
|
||||
#include "web_socket_wrapper.hpp"
|
||||
@@ -48,5 +46,3 @@ class MainWindow : public QMainWindow
|
||||
|
||||
std::map<QString, std::unique_ptr<Simulator_base>> m_sims;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef NETWORKERROR_H
|
||||
#define NETWORKERROR_H
|
||||
|
||||
#pragma once
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui
|
||||
@@ -20,5 +18,3 @@ class NetworkError : public QDialog
|
||||
private:
|
||||
Ui::NetworkError *ui;
|
||||
};
|
||||
|
||||
#endif // NETWORKERROR_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef SIMULATOR_BASE_H
|
||||
#define SIMULATOR_BASE_H
|
||||
|
||||
#pragma once
|
||||
#include "spdlog/spdlog.h"
|
||||
#include <QMainWindow>
|
||||
#include <QWidget>
|
||||
@@ -90,5 +88,3 @@ class Simulator_base : public QMainWindow
|
||||
bool m_first_load = true;
|
||||
std::vector<QWidget *> m_ui_lookup;
|
||||
};
|
||||
|
||||
#endif // SIMULATOR_BASE_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef SIM_CAN_DEBUGGER_H
|
||||
#define SIM_CAN_DEBUGGER_H
|
||||
|
||||
#pragma once
|
||||
#include "simulator_base.hpp"
|
||||
#include <QMainWindow>
|
||||
|
||||
@@ -20,5 +18,3 @@ class Can_Debugger : public Simulator_base
|
||||
private:
|
||||
Ui::Can_Debugger *ui;
|
||||
};
|
||||
|
||||
#endif // SIM_CAN_DEBUGGER_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef SIM_TEST_H
|
||||
#define SIM_TEST_H
|
||||
|
||||
#pragma once
|
||||
#include "simulator_base.hpp"
|
||||
#include "web_socket_wrapper.hpp"
|
||||
#include <QMainWindow>
|
||||
@@ -23,5 +21,3 @@ class Test_Sim : public Simulator_base
|
||||
private:
|
||||
Ui::Test_Sim *ui;
|
||||
};
|
||||
|
||||
#endif // SIM_TEST_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef BETTER_RADIOBUTTON_H
|
||||
#define BETTER_RADIOBUTTON_H
|
||||
|
||||
#pragma once
|
||||
#include <QRadioButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
@@ -23,5 +21,3 @@ class Better_Radiobutton : public QWidget
|
||||
std::vector<QRadioButton *> m_radiobuttons;
|
||||
QString m_checked;
|
||||
};
|
||||
|
||||
#endif // BETTER_RADIOBUTTON_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef CAN_TRANSCEIVE_H
|
||||
#define CAN_TRANSCEIVE_H
|
||||
|
||||
#pragma once
|
||||
#include "hex_spinbox.hpp"
|
||||
#include <QWidget>
|
||||
|
||||
@@ -29,5 +27,3 @@ class Can_Transceive : public QWidget
|
||||
Ui::Can_Transceive *ui;
|
||||
std::vector<HexSpinBox *> can_send_hexspinboxes;
|
||||
};
|
||||
|
||||
#endif // CAN_TRANSCEIVE_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef _HEXSPINBOX_H_
|
||||
#define _HEXSPINBOX_H_
|
||||
|
||||
#pragma once
|
||||
#include <QLineEdit>
|
||||
#include <QRegularExpressionValidator>
|
||||
#include <QSpinBox>
|
||||
@@ -28,5 +26,3 @@ class HexSpinBox : public QSpinBox
|
||||
QRegularExpressionValidator *validator;
|
||||
QString format;
|
||||
};
|
||||
|
||||
#endif // _HEXSPINBOX_H_
|
||||
|
||||
+1
-5
@@ -1,6 +1,4 @@
|
||||
#ifndef LED_H
|
||||
#define LED_H
|
||||
|
||||
#pragma once
|
||||
#include "QPushButton"
|
||||
|
||||
class Led : public QPushButton
|
||||
@@ -16,5 +14,3 @@ class Led : public QPushButton
|
||||
bool is_read_only(QWidget *widget);
|
||||
void set_read_only(QWidget *widget, bool read_only);
|
||||
};
|
||||
|
||||
#endif // LED_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef PLOT_WRAPPER_HPP
|
||||
#define PLOT_WRAPPER_HPP
|
||||
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
#include <qwt_plot.h>
|
||||
#include <qwt_plot_curve.h>
|
||||
@@ -16,5 +14,3 @@ class Plot_wrapper : public QwtPlot
|
||||
private:
|
||||
QwtPlotCurve *m_curve;
|
||||
};
|
||||
|
||||
#endif // PLOT_WRAPPER_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef WEB_SOCKET_WRAPPER_H
|
||||
#define WEB_SOCKET_WRAPPER_H
|
||||
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
#include <nlohmann/json.hpp>
|
||||
Q_FORWARD_DECLARE_OBJC_CLASS(QWebSocket);
|
||||
@@ -67,5 +65,3 @@ class Web_socket_wrapper : public QObject
|
||||
QTimer *m_ping_timer;
|
||||
QTimer *m_pong_timer;
|
||||
};
|
||||
|
||||
#endif // WEB_SOCKET_WRAPPER_H
|
||||
|
||||
Reference in New Issue
Block a user