ASAPCabinetFE
 
Loading...
Searching...
No Matches
section_renderer.h
Go to the documentation of this file.
1
10#ifndef SECTION_RENDERER_H
11#define SECTION_RENDERER_H
12
13#include "isection_renderer.h"
14#include "config_ui.h"
15#include <vector>
16#include <string>
17
27public:
36 SectionRenderer(ConfigUI* configUI, const std::vector<std::string>& orderedKeys)
37 : configUI_(configUI), orderedKeys_(orderedKeys) {}
38
54 void render(const std::string& sectionName, nlohmann::json& sectionData, bool& isCapturing, std::string& capturingKeyName, ImGuiFileDialog* fileDialog, bool defaultOpen = false, bool& isDialogOpen = *(new bool(false)), std::string& dialogKey = *(new std::string()));
55
56private:
57 ConfigUI* configUI_;
58 std::vector<std::string> orderedKeys_;
59};
60
61#endif // SECTION_RENDERER_H
Definition isection_renderer.h:31
Manages the ImGui-based configuration UI.
Definition config_ui.h:35
Renderer for generic configuration sections.
Definition section_renderer.h:26
SectionRenderer(ConfigUI *configUI, const std::vector< std::string > &orderedKeys)
Constructs a SectionRenderer instance.
Definition section_renderer.h:36
void render(const std::string &sectionName, nlohmann::json &sectionData, bool &isCapturing, std::string &capturingKeyName, ImGuiFileDialog *fileDialog, bool defaultOpen=false, bool &isDialogOpen= *(new bool(false)), std::string &dialogKey= *(new std::string()))
Renders a configuration section in the UI.
Definition section_renderer.cpp:8
Defines the ConfigUI class for managing the ImGui-based configuration UI in ASAPCabinetFE.
Defines the ISectionRenderer interface and BaseSectionRenderer for rendering configuration sections i...