2021-08-29 14:18:45 +02:00
|
|
|
#include <hex/api/content_registry.hpp>
|
2021-01-22 18:01:39 +01:00
|
|
|
|
2023-11-21 14:38:01 +01:00
|
|
|
#include <hex/api/localization_manager.hpp>
|
2022-02-01 18:09:40 +01:00
|
|
|
|
2023-11-12 01:22:01 +01:00
|
|
|
#include <content/tools_entries.hpp>
|
2021-08-28 00:45:59 +02:00
|
|
|
|
2023-11-12 01:22:01 +01:00
|
|
|
#include <imgui.h>
|
2021-09-22 17:56:06 +02:00
|
|
|
|
2023-11-12 01:22:01 +01:00
|
|
|
namespace hex::plugin::builtin {
|
2021-09-22 17:56:06 +02:00
|
|
|
|
2023-12-01 13:53:51 +01:00
|
|
|
void drawFileTools() {
|
|
|
|
if (ImGui::BeginTabBar("file_tools_tabs")) {
|
|
|
|
if (ImGui::BeginTabItem("hex.builtin.tools.file_tools.shredder"_lang)) {
|
|
|
|
drawFileToolShredder();
|
|
|
|
ImGui::EndTabItem();
|
2023-10-22 00:46:45 +02:00
|
|
|
}
|
2023-12-01 13:53:51 +01:00
|
|
|
|
|
|
|
if (ImGui::BeginTabItem("hex.builtin.tools.file_tools.splitter"_lang)) {
|
|
|
|
drawFileToolSplitter();
|
|
|
|
ImGui::EndTabItem();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ImGui::BeginTabItem("hex.builtin.tools.file_tools.combiner"_lang)) {
|
|
|
|
drawFileToolCombiner();
|
|
|
|
ImGui::EndTabItem();
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::EndTabBar();
|
2023-10-22 00:46:45 +02:00
|
|
|
}
|
2023-12-01 13:53:51 +01:00
|
|
|
|
2021-09-22 17:56:06 +02:00
|
|
|
}
|
|
|
|
|
2021-01-22 18:01:39 +01:00
|
|
|
void registerToolEntries() {
|
2023-12-01 13:53:51 +01:00
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.demangler", drawDemangler);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.ascii_table", drawASCIITable);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.regex_replacer", drawRegexReplacer);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.color", drawColorPicker);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.calc", drawMathEvaluator);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.graphing", drawGraphingCalculator);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.base_converter", drawBaseConverter);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.byte_swapper", drawByteSwapper);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.permissions", drawPermissionsCalculator);
|
|
|
|
//ContentRegistry::Tools::add("hex.builtin.tools.file_uploader", drawFileUploader);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.wiki_explain", drawWikiExplainer);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.file_tools", drawFileTools);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.ieee754", drawIEEE754Decoder);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.invariant_multiplication", drawInvariantMultiplicationDecoder);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.tcp_client_server", drawTCPClientServer);
|
|
|
|
ContentRegistry::Tools::add("hex.builtin.tools.euclidean_algorithm", drawEuclidianAlgorithm);
|
2021-01-22 18:01:39 +01:00
|
|
|
}
|
|
|
|
|
2022-12-29 15:07:43 +01:00
|
|
|
}
|