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,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_BUTTON_TYPE std::string("ui_button")
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "ui_item.hpp"
|
||||
#include <QCanBusFrame>
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
#define UI_CHECKBOX_TYPE std::string("ui_checkbox")
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_COMBOBOX_TYPE std::string("ui_combobox")
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_DOUBLE_SPINBOX_H
|
||||
#define UI_DOUBLE_SPINBOX_H
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_DOUBLE_SPINBOX_TYPE std::string("ui_double_spinbox")
|
||||
@@ -28,5 +26,3 @@ class UI_double_spinbox : public UI_item
|
||||
double m_max;
|
||||
double m_value;
|
||||
};
|
||||
|
||||
#endif // UI_DOUBLE_SPINBOX_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_HEX_SPINBOX_HPP
|
||||
#define UI_HEX_SPINBOX_HPP
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_HEX_SPINBOX_TYPE std::string("ui_hex_spinbox")
|
||||
@@ -28,5 +26,3 @@ class UI_hex_spinbox : public UI_item
|
||||
double m_max;
|
||||
double m_value;
|
||||
};
|
||||
|
||||
#endif // UI_HEX_SPINBOX_HPP
|
||||
|
||||
+1
-5
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_PLOT_H
|
||||
#define UI_PLOT_H
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
#define UI_PLOT_TYPE std::string("ui_plot")
|
||||
|
||||
@@ -35,5 +33,3 @@ class UI_plot : public UI_item
|
||||
bool m_x_label_enabled;
|
||||
bool m_y_label_enabled;
|
||||
};
|
||||
|
||||
#endif // UI_PLOT_H
|
||||
|
||||
+1
-5
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_SPINBOX_HPP
|
||||
#define UI_SPINBOX_HPP
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_SPINBOX_TYPE std::string("ui_spinbox")
|
||||
@@ -28,5 +26,3 @@ class UI_spinbox : public UI_item
|
||||
double m_max;
|
||||
double m_value;
|
||||
};
|
||||
|
||||
#endif // UI_SPINBOX_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_STACKED_WIDGET_HPP
|
||||
#define UI_STACKED_WIDGET_HPP
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
#define UI_STACKED_WIDGET_TYPE std::string("ui_stacked_widget")
|
||||
|
||||
@@ -22,5 +20,3 @@ class UI_stacked_widget : public UI_item
|
||||
size_t m_tab_count;
|
||||
size_t m_current_tab;
|
||||
};
|
||||
|
||||
#endif // UI_STACKED_WIDGET_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_STATUS_BAR_HPP
|
||||
#define UI_STATUS_BAR_HPP
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
#define UI_STATUS_BAR_TYPE std::string("ui_status_bar")
|
||||
|
||||
@@ -21,5 +19,3 @@ class UI_status_bar : public UI_item
|
||||
std::string m_current_message;
|
||||
size_t m_timeout;
|
||||
};
|
||||
|
||||
#endif // UI_STATUS_BAR_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef UI_TAB_WIDGET_HPP
|
||||
#define UI_TAB_WIDGET_HPP
|
||||
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_TAB_WIDGET_TYPE std::string("ui_tab_widget")
|
||||
@@ -33,5 +31,3 @@ class UI_tab_widget : public UI_item
|
||||
std::vector<std::string> m_tab_names;
|
||||
std::vector<bool> m_tab_visible;
|
||||
};
|
||||
|
||||
#endif // UI_TAB_WIDGET_HPP
|
||||
|
||||
+1
-4
@@ -1,5 +1,4 @@
|
||||
#ifndef UI_TABLE_HPP
|
||||
#define UI_TABLE_HPP
|
||||
#pragma once
|
||||
#include "ui_item.hpp"
|
||||
|
||||
#define UI_TABLE_TYPE std::string("ui_table")
|
||||
@@ -43,5 +42,3 @@ class UI_table : public UI_item
|
||||
std::vector<bool> m_valid;
|
||||
std::vector<std::string> m_table;
|
||||
};
|
||||
|
||||
#endif // UI_TABLE_HPP
|
||||
|
||||
+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
|
||||
|
||||
Vendored
+1
-1
Submodule external/git_tag_cpp updated: 9d15e605c4...ebd8da5803
@@ -1,7 +1,4 @@
|
||||
#ifndef VISA_HPP
|
||||
#define VISA_HPP
|
||||
|
||||
#include "tcp_client.hpp"
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
|
||||
class Visa : public QObject
|
||||
@@ -32,5 +29,3 @@ class Visa : public QObject
|
||||
bool m_data_ready;
|
||||
QString m_data;
|
||||
};
|
||||
|
||||
#endif // VISA_HPP
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef GPIO_HPP
|
||||
#define GPIO_HPP
|
||||
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
#if defined(__linux__) && (defined(__aarch64__) || defined(__x86_64__))
|
||||
#include <gpiod.hpp>
|
||||
@@ -29,5 +27,3 @@ class GPIO : public QObject
|
||||
#endif
|
||||
unsigned int m_offset;
|
||||
};
|
||||
|
||||
#endif // GPIO_HPP
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "spdlog/spdlog.h"
|
||||
#include <QSerialPort>
|
||||
#include <QThread>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QObject>
|
||||
|
||||
Reference in New Issue
Block a user