1
0
mirror of synced 2024-11-16 12:03:22 +01:00
ImHex/source/views/view_diff.cpp
2021-09-21 02:48:41 +02:00

26 lines
654 B
C++

#include "views/view_tools.hpp"
#include <hex/providers/provider.hpp>
namespace hex {
ViewTools::ViewTools() : View("hex.view.tools.name") { }
ViewTools::~ViewTools() { }
void ViewTools::drawContent() {
if (ImGui::Begin(View::toWindowName("hex.view.tools.name").c_str(), &this->getWindowOpenState(), ImGuiWindowFlags_NoCollapse)) {
for (const auto& [name, function] : ContentRegistry::Tools::getEntries()) {
if (ImGui::CollapsingHeader(LangEntry(name))) {
function();
}
}
}
ImGui::End();
}
void ViewTools::drawMenu() {
}
}