1
0
mirror of synced 2024-12-16 01:31:16 +01:00
ImHex/plugins/builtin/source/content/tools_entries.cpp

55 lines
2.5 KiB
C++
Raw Normal View History

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