1991afb87b
* sys: Initial refactoring of the SharedData class * sys/pattern: More refactoring, make every provider have its own patterns * sys: Finished up refactoring. No more SharedData! * sys: Fixed compile on Unix * tests: Fixed unit tests * sys: Moved view and lang files * pattern: Added assignment operator support to for loops * tests: Fixed compile issue
24 lines
695 B
C++
24 lines
695 B
C++
#include "content/views/view_tools.hpp"
|
|
|
|
#include <hex/api/content_registry.hpp>
|
|
|
|
#include <hex/providers/provider.hpp>
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
ViewTools::ViewTools() : View("hex.builtin.view.tools.name") { }
|
|
|
|
ViewTools::~ViewTools() { }
|
|
|
|
void ViewTools::drawContent() {
|
|
if (ImGui::Begin(View::toWindowName("hex.builtin.view.tools.name").c_str(), &this->getWindowOpenState(), ImGuiWindowFlags_NoCollapse)) {
|
|
for (const auto &[name, function] : ContentRegistry::Tools::getEntries()) {
|
|
if (ImGui::CollapsingHeader(LangEntry(name))) {
|
|
function();
|
|
}
|
|
}
|
|
}
|
|
ImGui::End();
|
|
}
|
|
|
|
} |