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