1
0
mirror of synced 2024-11-30 18:34:29 +01:00
ImHex/source/views/view_tools.cpp

26 lines
654 B
C++
Raw Normal View History

2020-11-15 00:46:38 +01:00
#include "views/view_tools.hpp"
#include <hex/providers/provider.hpp>
2020-11-15 00:46:38 +01:00
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();
}
}
2020-11-15 00:46:38 +01:00
}
ImGui::End();
}
void ViewTools::drawMenu() {
2020-11-15 00:46:38 +01:00
}
}