1
0
mirror of synced 2024-12-01 02:37:18 +01:00

refactor: Give API files more consistent names

This commit is contained in:
WerWolv 2023-11-18 14:50:43 +01:00
parent 1249eb3261
commit 14f728ab76
55 changed files with 59 additions and 59 deletions

View File

@ -5,17 +5,17 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_SHARED_LIBRARY_PREFIX "") set(CMAKE_SHARED_LIBRARY_PREFIX "")
set(LIBIMHEX_SOURCES set(LIBIMHEX_SOURCES
source/api/event.cpp
source/api/imhex_api.cpp source/api/imhex_api.cpp
source/api/content_registry.cpp source/api/content_registry.cpp
source/api/task.cpp source/api/event_manager.cpp
source/api/keybinding.cpp source/api/task_manager.cpp
source/api/shortcut_manager.cpp
source/api/plugin_manager.cpp source/api/plugin_manager.cpp
source/api/localization.cpp
source/api/project_file_manager.cpp source/api/project_file_manager.cpp
source/api/theme_manager.cpp source/api/theme_manager.cpp
source/api/layout_manager.cpp source/api/layout_manager.cpp
source/api/achievement_manager.cpp source/api/achievement_manager.cpp
source/api/localization.cpp
source/data_processor/attribute.cpp source/data_processor/attribute.cpp
source/data_processor/link.cpp source/data_processor/link.cpp

View File

@ -7,7 +7,7 @@
#include <vector> #include <vector>
#include <span> #include <span>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <imgui.h> #include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h> #include <hex/ui/imgui_imhex_extensions.h>

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <map> #include <map>
#include <utility> #include <utility>

View File

@ -9,7 +9,7 @@
#include <imgui.h> #include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h> #include <hex/ui/imgui_imhex_extensions.h>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
namespace hex { namespace hex {

View File

@ -10,8 +10,8 @@
#include <fonts/codicons_font.h> #include <fonts/codicons_font.h>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/providers/provider.hpp> #include <hex/providers/provider.hpp>
#include <hex/providers/provider_data.hpp> #include <hex/providers/provider_data.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>

View File

@ -6,7 +6,7 @@
#include <string> #include <string>
#include <atomic> #include <atomic>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <imgui.h> #include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h> #include <hex/ui/imgui_imhex_extensions.h>

View File

@ -1,5 +1,5 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <hex/helpers/fs.hpp> #include <hex/helpers/fs.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>

View File

@ -1,4 +1,4 @@
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
namespace hex { namespace hex {

View File

@ -1,8 +1,8 @@
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/providers/provider.hpp> #include <hex/providers/provider.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>

View File

@ -1,4 +1,4 @@
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <imgui.h> #include <imgui.h>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>

View File

@ -1,4 +1,4 @@
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>

View File

@ -1,6 +1,6 @@
#include <hex/api/theme_manager.hpp> #include <hex/api/theme_manager.hpp>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>

View File

@ -3,7 +3,7 @@
#include <cstdio> #include <cstdio>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <hex/helpers/crypto.hpp> #include <hex/helpers/crypto.hpp>

View File

@ -1,7 +1,7 @@
#include <hex/providers/provider.hpp> #include <hex/providers/provider.hpp>
#include <hex.hpp> #include <hex.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>

View File

@ -4,7 +4,7 @@
#include "hex/subcommands/subcommands.hpp" #include "hex/subcommands/subcommands.hpp"
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/api/plugin_manager.hpp> #include <hex/api/plugin_manager.hpp>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>

View File

@ -1,5 +1,5 @@
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <init/tasks.hpp> #include <init/tasks.hpp>

View File

@ -2,7 +2,7 @@
#include "init/splash_window.hpp" #include "init/splash_window.hpp"
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
#include <hex/helpers/utils_macos.hpp> #include <hex/helpers/utils_macos.hpp>

View File

@ -9,7 +9,7 @@
#include "init/splash_window.hpp" #include "init/splash_window.hpp"
#include "init/tasks.hpp" #include "init/tasks.hpp"
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/plugin_manager.hpp> #include <hex/api/plugin_manager.hpp>

View File

@ -1,7 +1,7 @@
#include <optional> #include <optional>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>
#include "messaging.hpp" #include "messaging.hpp"

View File

@ -4,7 +4,7 @@
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
#include <hex/helpers/utils_linux.hpp> #include <hex/helpers/utils_linux.hpp>

View File

@ -4,7 +4,7 @@
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/utils_macos.hpp> #include <hex/helpers/utils_macos.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>

View File

@ -5,7 +5,7 @@
#include <emscripten.h> #include <emscripten.h>
#include <emscripten/html5.h> #include <emscripten/html5.h>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
// Function used by c++ to get the size of the html canvas // Function used by c++ to get the size of the html canvas
EM_JS(int, canvas_get_width, (), { EM_JS(int, canvas_get_width, (), {

View File

@ -6,7 +6,7 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/layout_manager.hpp> #include <hex/api/layout_manager.hpp>
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
#include <hex/helpers/fs.hpp> #include <hex/helpers/fs.hpp>

View File

@ -3,7 +3,7 @@
#include <hex/providers/provider.hpp> #include <hex/providers/provider.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
namespace hex::plugin::builtin { namespace hex::plugin::builtin {

View File

@ -3,7 +3,7 @@
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <bit> #include <bit>
#include <cstdio> #include <cstdio>

View File

@ -3,7 +3,7 @@
#include <hex.hpp> #include <hex.hpp>
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <array> #include <array>
#include <vector> #include <vector>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <ui/widgets.hpp> #include <ui/widgets.hpp>

View File

@ -2,7 +2,7 @@
#include <hex.hpp> #include <hex.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/helpers/binary_pattern.hpp> #include <hex/helpers/binary_pattern.hpp>
#include <ui/widgets.hpp> #include <ui/widgets.hpp>

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include "content/helpers/diagrams.hpp" #include "content/helpers/diagrams.hpp"
#include <ui/widgets.hpp> #include <ui/widgets.hpp>

View File

@ -5,7 +5,7 @@
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/helpers/http_requests.hpp> #include <hex/helpers/http_requests.hpp>
#include <hex/helpers/fs.hpp> #include <hex/helpers/fs.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <future> #include <future>
#include <string> #include <string>

View File

@ -4,7 +4,7 @@
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
namespace hex::plugin::builtin { namespace hex::plugin::builtin {

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <pl/core/lexer.hpp> #include <pl/core/lexer.hpp>

View File

@ -1,6 +1,6 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <wolv/net/socket_server.hpp> #include <wolv/net/socket_server.hpp>

View File

@ -1,7 +1,7 @@
#include "content/command_line_interface.hpp" #include "content/command_line_interface.hpp"
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>

View File

@ -1,5 +1,5 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>

View File

@ -3,7 +3,7 @@
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <hex/helpers/crypto.hpp> #include <hex/helpers/crypto.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/providers/provider.hpp> #include <hex/providers/provider.hpp>

View File

@ -1,4 +1,4 @@
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>

View File

@ -4,7 +4,7 @@
#include <implot.h> #include <implot.h>
#include <hex/ui/view.hpp> #include <hex/ui/view.hpp>
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/layout_manager.hpp> #include <hex/api/layout_manager.hpp>
#include <hex/api/achievement_manager.hpp> #include <hex/api/achievement_manager.hpp>

View File

@ -1,6 +1,6 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/http_requests.hpp> #include <hex/helpers/http_requests.hpp>
#include <hex/helpers/disassembler.hpp> #include <hex/helpers/disassembler.hpp>

View File

@ -12,7 +12,7 @@
#include "content/helpers/notification.hpp" #include "content/helpers/notification.hpp"
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>

View File

@ -6,7 +6,7 @@
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/achievement_manager.hpp> #include <hex/api/achievement_manager.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>

View File

@ -6,7 +6,7 @@
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <wolv/io/file.hpp> #include <wolv/io/file.hpp>

View File

@ -2,10 +2,10 @@
#include <imgui.h> #include <imgui.h>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <hex/providers/provider.hpp> #include <hex/providers/provider.hpp>

View File

@ -2,8 +2,8 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/theme_manager.hpp> #include <hex/api/theme_manager.hpp>
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/helpers/http_requests.hpp> #include <hex/helpers/http_requests.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>

View File

@ -10,7 +10,7 @@
#include <hex/helpers/fs.hpp> #include <hex/helpers/fs.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <wolv/io/file.hpp> #include <wolv/io/file.hpp>

View File

@ -1,7 +1,7 @@
#include "content/views/view_achievements.hpp" #include "content/views/view_achievements.hpp"
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <cmath> #include <cmath>

View File

@ -3,7 +3,7 @@
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/achievement_manager.hpp> #include <hex/api/achievement_manager.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/fmt.hpp> #include <hex/helpers/fmt.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>

View File

@ -1,7 +1,7 @@
#include "content/views/view_hex_editor.hpp" #include "content/views/view_hex_editor.hpp"
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/keybinding.hpp> #include <hex/api/shortcut_manager.hpp>
#include <hex/api/project_file_manager.hpp> #include <hex/api/project_file_manager.hpp>
#include <hex/api/achievement_manager.hpp> #include <hex/api/achievement_manager.hpp>

View File

@ -1,6 +1,6 @@
#include <hex.hpp> #include <hex.hpp>
#include <hex/helpers/http_requests.hpp> #include <hex/helpers/http_requests.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/api/plugin_manager.hpp> #include <hex/api/plugin_manager.hpp>

View File

@ -1,6 +1,6 @@
#include <hex/plugin.hpp> #include <hex/plugin.hpp>
#include <hex/api/content_registry.hpp> #include <hex/api/content_registry.hpp>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>

View File

@ -1,7 +1,7 @@
#include <script_api.hpp> #include <script_api.hpp>
#include <hex/api/imhex_api.hpp> #include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp> #include <hex/api/event_manager.hpp>
#include <hex/api/localization.hpp> #include <hex/api/localization.hpp>
#include <hex/ui/popup.hpp> #include <hex/ui/popup.hpp>

View File

@ -2,7 +2,7 @@
#include <imgui_internal.h> #include <imgui_internal.h>
#include <hex/api/task.hpp> #include <hex/api/task_manager.hpp>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
#include <wolv/utils/guards.hpp> #include <wolv/utils/guards.hpp>