2025-05-19 20:36:12 +02:00
|
|
|
#include "core/plugin.h"
|
2025-06-22 17:18:53 +02:00
|
|
|
#include "explorer/explorer.h"
|
2025-05-19 20:36:12 +02:00
|
|
|
#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?
|
2025-07-24 21:55:57 +02:00
|
|
|
satdump::eventBus->register_handler<satdump::explorer::RenderLoadMenuElementsEvent>(renderExplorerLoaderButton);
|
2025-05-19 20:36:12 +02:00
|
|
|
}
|
|
|
|
|
|
2025-07-24 21:55:57 +02:00
|
|
|
static void renderExplorerLoaderButton(const satdump::explorer::RenderLoadMenuElementsEvent &evt)
|
2025-05-19 20:36:12 +02:00
|
|
|
{
|
2025-08-12 11:04:46 +02:00
|
|
|
if (ImGui::BeginMenu("Add"))
|
2025-05-19 20:36:12 +02:00
|
|
|
{
|
2025-06-22 12:21:12 +02:00
|
|
|
if (ImGui::BeginMenu("Tools"))
|
2025-05-19 20:36:12 +02:00
|
|
|
{
|
2025-07-23 09:44:06 +02:00
|
|
|
if (ImGui::MenuItem("LUT Generator"))
|
2025-05-19 20:36:12 +02:00
|
|
|
evt.master_handler->addSubHandler(std::make_shared<satdump::lutgen::LutGeneratorHandler>());
|
|
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
} // TODOREWORK
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PLUGIN_LOADER(ToolsAppPlugin)
|