ImHex/source/views/view_tools.cpp

26 lines
595 B
C++
Raw Normal View History

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