2022-04-11 16:26:40 +02:00
|
|
|
#include "app.h"
|
|
|
|
|
#include "imgui/imgui.h"
|
|
|
|
|
|
|
|
|
|
namespace satdump
|
|
|
|
|
{
|
2025-07-05 22:22:17 +02:00
|
|
|
Application::Application(std::string id) : app_id(id) {}
|
2022-04-11 16:26:40 +02:00
|
|
|
|
2025-07-05 22:22:17 +02:00
|
|
|
Application::~Application() {}
|
2022-04-11 16:26:40 +02:00
|
|
|
|
|
|
|
|
void Application::drawWindow()
|
|
|
|
|
{
|
|
|
|
|
ImGui::Begin(app_id.c_str());
|
|
|
|
|
drawUI();
|
|
|
|
|
ImGui::End();
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-05 22:22:17 +02:00
|
|
|
void Application::draw(bool window)
|
2022-04-11 16:26:40 +02:00
|
|
|
{
|
2025-07-05 22:22:17 +02:00
|
|
|
if (window)
|
|
|
|
|
ImGui::BeginChild(app_id.c_str(), ImGui::GetContentRegionAvail(), false, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse);
|
2022-04-11 16:26:40 +02:00
|
|
|
drawUI();
|
2025-07-05 22:22:17 +02:00
|
|
|
if (window)
|
|
|
|
|
ImGui::EndChild();
|
2022-04-11 16:26:40 +02:00
|
|
|
}
|
|
|
|
|
|
2025-07-05 22:22:17 +02:00
|
|
|
void Application::drawUI() { ImGui::Text("Nothing implemented there yet!"); }
|
|
|
|
|
}; // namespace satdump
|