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})
file(GLOB_RECURSE SOURCES "*.[hc]pp")
file(GLOB_RECURSE UI_SOURCES "*.ui")
file(GLOB_RECURSE SIM_SOURCES "simulators/*.[hc]pp")
file(GLOB_RECURSE SIM_UI "simulators/*.ui")
set(PROJECT_SOURCES
${SOURCES}
${UI_SOURCES}
${SIM_SOURCES}
${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)
+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{}
{
+1 -1
View File
@@ -1,4 +1,4 @@
#include "can_transceive.h"
#include "can_transceive.hpp"
#include "ui_can_transceive.h"
Can_Transceive::Can_Transceive(QWidget *parent) : QWidget(parent), ui(new Ui::Can_Transceive)
@@ -1,7 +1,7 @@
#ifndef CAN_TRANSCEIVE_H
#define CAN_TRANSCEIVE_H
#include "hex_spinbox.h"
#include "hex_spinbox.hpp"
#include <QWidget>
namespace Ui
+1 -1
View File
@@ -351,7 +351,7 @@
<customwidget>
<class>HexSpinBox</class>
<extends>QSpinBox</extends>
<header>hex_spinbox.h</header>
<header>hex_spinbox.hpp</header>
</customwidget>
</customwidgets>
<resources/>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "helpers.h"
#include "helpers.hpp"
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)
{
+1 -1
View File
@@ -1,4 +1,4 @@
#include "led.h"
#include "led.hpp"
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/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h"
+1 -1
View File
@@ -1,4 +1,4 @@
#include "mainwindow.h"
#include "mainwindow.hpp"
#include "ui_mainwindow.h"
#include "can_debugger.hpp"
@@ -1,9 +1,9 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "networkerror.h"
#include "simulator_base.h"
#include "web_socket_wrapper.h"
#include "networkerror.hpp"
#include "simulator_base.hpp"
#include "web_socket_wrapper.hpp"
#include <QMainWindow>
#include <map>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "networkerror.h"
#include "networkerror.hpp"
#include "ui_networkerror.h"
NetworkError::NetworkError(QWidget *parent) : QDialog(parent), ui(new Ui::NetworkError)
+2 -2
View File
@@ -1,5 +1,5 @@
#include "simulator_base.h"
#include "can_transceive.h"
#include "simulator_base.hpp"
#include "can_transceive.hpp"
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()),
@@ -2,11 +2,11 @@
#define SIMULATOR_BASE_H
#include "IterableEnum.hpp"
#include "helpers.h"
#include "led.h"
#include "networkerror.h"
#include "helpers.hpp"
#include "led.hpp"
#include "networkerror.hpp"
#include "spdlog/spdlog.h"
#include "web_socket_wrapper.h"
#include "web_socket_wrapper.hpp"
#include <QMainWindow>
#include <QWidget>
#include <magic_enum/magic_enum.hpp>
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef SIM_CAN_DEBUGGER_H
#define SIM_CAN_DEBUGGER_H
#include "simulator_base.h"
#include "simulator_base.hpp"
#include <QMainWindow>
namespace Ui
+2 -2
View File
@@ -1,8 +1,8 @@
#ifndef SIM_TEST_H
#define SIM_TEST_H
#include "simulator_base.h"
#include "web_socket_wrapper.h"
#include "simulator_base.hpp"
#include "web_socket_wrapper.hpp"
#include <QMainWindow>
namespace Ui
+1 -1
View File
@@ -134,7 +134,7 @@
<customwidget>
<class>Led</class>
<extends>QPushButton</extends>
<header>led.h</header>
<header>led.hpp</header>
</customwidget>
</customwidgets>
<resources/>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "web_socket_wrapper.h"
#include "web_socket_wrapper.hpp"
#include "spdlog/spdlog.h"
#include <magic_enum/magic_enum.hpp>