2020-11-15 00:46:38 +01:00
|
|
|
#include "views/view_tools.hpp"
|
|
|
|
|
2021-01-13 17:28:27 +01:00
|
|
|
#include <hex/providers/provider.hpp>
|
2020-11-24 18:12:08 +01:00
|
|
|
|
2020-11-15 00:46:38 +01:00
|
|
|
namespace hex {
|
|
|
|
|
2021-01-22 18:01:39 +01:00
|
|
|
ViewTools::ViewTools() : View("Tools") { }
|
2020-11-15 21:31:04 +01:00
|
|
|
|
2021-01-22 18:01:39 +01:00
|
|
|
ViewTools::~ViewTools() { }
|
2020-11-28 21:55:52 +01:00
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void ViewTools::drawContent() {
|
2020-11-23 23:57:19 +01:00
|
|
|
if (ImGui::Begin("Tools", &this->getWindowOpenState(), ImGuiWindowFlags_NoCollapse)) {
|
2021-01-13 13:18:03 +01:00
|
|
|
for (const auto& [name, function] : ContentRegistry::Tools::getEntries()) {
|
|
|
|
if (ImGui::CollapsingHeader(name.c_str())) {
|
|
|
|
function();
|
|
|
|
}
|
|
|
|
}
|
2020-11-15 00:46:38 +01:00
|
|
|
}
|
|
|
|
ImGui::End();
|
|
|
|
}
|
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void ViewTools::drawMenu() {
|
2020-11-23 23:57:19 +01:00
|
|
|
|
2020-11-15 00:46:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|