remove includes from sim base header to source
This commit is contained in:
2026-02-14 14:31:25 +01:00
parent e9dc6af1d2
commit 8215718e7a
4 changed files with 17 additions and 6 deletions
+2
View File
@@ -3,6 +3,8 @@
#include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include <QApplication> #include <QApplication>
#include <QCommandLineOption>
#include <QCommandLineParser>
void init_logger() void init_logger()
{ {
+4
View File
@@ -1,5 +1,9 @@
#include "mainwindow.hpp" #include "mainwindow.hpp"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include <QDirIterator>
#include <QLibrary>
#include <QThread>
#include <magic_enum/magic_enum.hpp>
typedef Simulator_base *(*Get_UI)(Web_socket_wrapper *, QWidget *); typedef Simulator_base *(*Get_UI)(Web_socket_wrapper *, QWidget *);
+5
View File
@@ -1,6 +1,11 @@
#include "simulator_base.hpp" #include "simulator_base.hpp"
#include "can_transceive.hpp" #include "can_transceive.hpp"
#include "helpers.hpp"
#include "led.hpp"
#include "networkerror.hpp"
#include "plot_wrapper.hpp" #include "plot_wrapper.hpp"
#include "web_socket_wrapper.hpp"
#include <magic_enum/magic_enum.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()),
+6 -6
View File
@@ -1,16 +1,16 @@
#ifndef SIMULATOR_BASE_H #ifndef SIMULATOR_BASE_H
#define SIMULATOR_BASE_H #define SIMULATOR_BASE_H
#include "IterableEnum.hpp"
#include "helpers.hpp"
#include "led.hpp"
#include "networkerror.hpp"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "web_socket_wrapper.hpp"
#include <QMainWindow> #include <QMainWindow>
#include <QWidget> #include <QWidget>
#include <magic_enum/magic_enum.hpp>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
Q_FORWARD_DECLARE_OBJC_CLASS(Web_socket_wrapper);
Q_FORWARD_DECLARE_OBJC_CLASS(QTimer);
Q_FORWARD_DECLARE_OBJC_CLASS(NetworkError);
Q_FORWARD_DECLARE_OBJC_CLASS(QLabel);
using json = nlohmann::json; using json = nlohmann::json;
#define PUSH_UI_ITEM(item) push_ui_item(ui->item) #define PUSH_UI_ITEM(item) push_ui_item(ui->item)