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-03-03 22:26:17 +01:00
|
|
|
ViewTools::ViewTools() : View("hex.view.tools.name") { }
|
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() {
|
2021-03-03 22:26:17 +01:00
|
|
|
if (ImGui::Begin(View::toWindowName("hex.view.tools.name").c_str(), &this->getWindowOpenState(), ImGuiWindowFlags_NoCollapse)) {
|
2021-01-13 13:18:03 +01:00
|
|
|
for (const auto& [name, function] : ContentRegistry::Tools::getEntries()) {
|
2021-02-13 15:15:32 +01:00
|
|
|
if (ImGui::CollapsingHeader(LangEntry(name))) {
|
2021-01-13 13:18:03 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|