rename client header files

This commit is contained in:
2026-02-14 14:30:59 +01:00
parent 44c314b464
commit a7c24b0b56
24 changed files with 28 additions and 52 deletions
+4 -28
View File
@@ -7,40 +7,16 @@ add_subdirectory(qwt)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE SOURCES "*.[hc]pp")
file(GLOB_RECURSE UI_SOURCES "*.ui")
file(GLOB_RECURSE SIM_SOURCES "simulators/*.[hc]pp") file(GLOB_RECURSE SIM_SOURCES "simulators/*.[hc]pp")
file(GLOB_RECURSE SIM_UI "simulators/*.ui") file(GLOB_RECURSE SIM_UI "simulators/*.ui")
set(PROJECT_SOURCES set(PROJECT_SOURCES
${SOURCES}
${UI_SOURCES}
${SIM_SOURCES} ${SIM_SOURCES}
${SIM_UI} ${SIM_UI}
simulator_base.h
simulator_base.cpp
helpers.h
helpers.cpp
IterableEnum.hpp
hex_spinbox.h
hex_spinbox.cpp
better_radiobutton.h
better_radiobutton.cpp
led.h
led.cpp
can_transceive.h
can_transceive.cpp
can_transceive.ui
networkerror.h
networkerror.cpp
networkerror.ui
web_socket_wrapper.h
web_socket_wrapper.cpp
mainwindow.h
mainwindow.cpp
mainwindow.ui
main.cpp
) )
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
+1 -1
View File
@@ -1,4 +1,4 @@
#include "better_radiobutton.h" #include "better_radiobutton.hpp"
Better_Radiobutton::Better_Radiobutton(QWidget *parent) : QWidget{parent}, m_radiobuttons{} Better_Radiobutton::Better_Radiobutton(QWidget *parent) : QWidget{parent}, m_radiobuttons{}
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "can_transceive.h" #include "can_transceive.hpp"
#include "ui_can_transceive.h" #include "ui_can_transceive.h"
Can_Transceive::Can_Transceive(QWidget *parent) : QWidget(parent), ui(new Ui::Can_Transceive) Can_Transceive::Can_Transceive(QWidget *parent) : QWidget(parent), ui(new Ui::Can_Transceive)
@@ -1,7 +1,7 @@
#ifndef CAN_TRANSCEIVE_H #ifndef CAN_TRANSCEIVE_H
#define CAN_TRANSCEIVE_H #define CAN_TRANSCEIVE_H
#include "hex_spinbox.h" #include "hex_spinbox.hpp"
#include <QWidget> #include <QWidget>
namespace Ui namespace Ui
+1 -1
View File
@@ -351,7 +351,7 @@
<customwidget> <customwidget>
<class>HexSpinBox</class> <class>HexSpinBox</class>
<extends>QSpinBox</extends> <extends>QSpinBox</extends>
<header>hex_spinbox.h</header> <header>hex_spinbox.hpp</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "helpers.h" #include "helpers.hpp"
void create_dial_needle(QwtDial *dial) void create_dial_needle(QwtDial *dial)
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "hex_spinbox.h" #include "hex_spinbox.hpp"
HexSpinBox::HexSpinBox(QWidget *parent, bool showPrefix, const QString &format) : QSpinBox(parent), format(format) HexSpinBox::HexSpinBox(QWidget *parent, bool showPrefix, const QString &format) : QSpinBox(parent), format(format)
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
#include "led.h" #include "led.hpp"
Led::Led(QWidget *parrent) : QPushButton(parrent) Led::Led(QWidget *parrent) : QPushButton(parrent)
{ {
View File
+1 -1
View File
@@ -1,4 +1,4 @@
#include "mainwindow.h" #include "mainwindow.hpp"
#include "spdlog/async.h" #include "spdlog/async.h"
#include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
+1 -1
View File
@@ -1,4 +1,4 @@
#include "mainwindow.h" #include "mainwindow.hpp"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "can_debugger.hpp" #include "can_debugger.hpp"
@@ -1,9 +1,9 @@
#ifndef MAINWINDOW_H #ifndef MAINWINDOW_H
#define MAINWINDOW_H #define MAINWINDOW_H
#include "networkerror.h" #include "networkerror.hpp"
#include "simulator_base.h" #include "simulator_base.hpp"
#include "web_socket_wrapper.h" #include "web_socket_wrapper.hpp"
#include <QMainWindow> #include <QMainWindow>
#include <map> #include <map>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "networkerror.h" #include "networkerror.hpp"
#include "ui_networkerror.h" #include "ui_networkerror.h"
NetworkError::NetworkError(QWidget *parent) : QDialog(parent), ui(new Ui::NetworkError) NetworkError::NetworkError(QWidget *parent) : QDialog(parent), ui(new Ui::NetworkError)
+2 -2
View File
@@ -1,5 +1,5 @@
#include "simulator_base.h" #include "simulator_base.hpp"
#include "can_transceive.h" #include "can_transceive.hpp"
Simulator_base::Simulator_base(QString sim_name, Web_socket_wrapper *web_socket, QWidget *parent) Simulator_base::Simulator_base(QString sim_name, Web_socket_wrapper *web_socket, QWidget *parent)
: QMainWindow{parent}, m_error_dialog(new NetworkError(this)), m_timer_update(new QTimer()), : QMainWindow{parent}, m_error_dialog(new NetworkError(this)), m_timer_update(new QTimer()),
@@ -2,11 +2,11 @@
#define SIMULATOR_BASE_H #define SIMULATOR_BASE_H
#include "IterableEnum.hpp" #include "IterableEnum.hpp"
#include "helpers.h" #include "helpers.hpp"
#include "led.h" #include "led.hpp"
#include "networkerror.h" #include "networkerror.hpp"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "web_socket_wrapper.h" #include "web_socket_wrapper.hpp"
#include <QMainWindow> #include <QMainWindow>
#include <QWidget> #include <QWidget>
#include <magic_enum/magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef SIM_CAN_DEBUGGER_H #ifndef SIM_CAN_DEBUGGER_H
#define SIM_CAN_DEBUGGER_H #define SIM_CAN_DEBUGGER_H
#include "simulator_base.h" #include "simulator_base.hpp"
#include <QMainWindow> #include <QMainWindow>
namespace Ui namespace Ui
+2 -2
View File
@@ -1,8 +1,8 @@
#ifndef SIM_TEST_H #ifndef SIM_TEST_H
#define SIM_TEST_H #define SIM_TEST_H
#include "simulator_base.h" #include "simulator_base.hpp"
#include "web_socket_wrapper.h" #include "web_socket_wrapper.hpp"
#include <QMainWindow> #include <QMainWindow>
namespace Ui namespace Ui
+1 -1
View File
@@ -134,7 +134,7 @@
<customwidget> <customwidget>
<class>Led</class> <class>Led</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>
<header>led.h</header> <header>led.hpp</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "web_socket_wrapper.h" #include "web_socket_wrapper.hpp"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include <magic_enum/magic_enum.hpp> #include <magic_enum/magic_enum.hpp>