mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
32 lines
No EOL
971 B
C++
32 lines
No EOL
971 B
C++
#include "core/plugin.h"
|
|
#include "explorer/explorer.h"
|
|
#include "lutgen/lut_generator.h"
|
|
|
|
class ToolsAppPlugin : public satdump::Plugin
|
|
{
|
|
public:
|
|
std::string getID() { return "tools_app"; }
|
|
|
|
void init()
|
|
{
|
|
// TODOREWORK maybe a way to call up/init a handler?
|
|
satdump::eventBus->register_handler<satdump::explorer::ExplorerApplication::RenderLoadMenuElementsEvent>(renderExplorerLoaderButton);
|
|
}
|
|
|
|
static void renderExplorerLoaderButton(const satdump::explorer::ExplorerApplication::RenderLoadMenuElementsEvent &evt)
|
|
{
|
|
if (ImGui::BeginMenu("File"))
|
|
{
|
|
if (ImGui::BeginMenu("Tools"))
|
|
{
|
|
if (ImGui::MenuItem("LUT Generator"))
|
|
evt.master_handler->addSubHandler(std::make_shared<satdump::lutgen::LutGeneratorHandler>());
|
|
ImGui::EndMenu();
|
|
}
|
|
|
|
ImGui::EndMenu();
|
|
}
|
|
} // TODOREWORK
|
|
};
|
|
|
|
PLUGIN_LOADER(ToolsAppPlugin) |