Refactor Controller and File Dialog: streamline platform handling, remove redundant parameters, and enhance initialization logic

This commit is contained in:
scawful
2025-01-26 19:28:40 -05:00
parent db9fab83df
commit 646db9607a
6 changed files with 76 additions and 87 deletions

View File

@@ -1,8 +1,6 @@
#ifndef YAZE_APP_GUI_ZEML_H
#define YAZE_APP_GUI_ZEML_H
#include "imgui/imgui.h"
#include <cctype>
#include <functional>
#include <map>
@@ -10,6 +8,8 @@
#include <string>
#include <vector>
#include "imgui/imgui.h"
namespace yaze {
namespace gui {
@@ -163,12 +163,6 @@ void BindSelectable(Node* node, bool* selected, std::function<void()> callback);
*/
WidgetType MapType(const std::string& type);
/**
* @brief Parse a zeml definition
*/
void ParseDefinitions(const std::vector<Token>& tokens, size_t& index,
std::map<std::string, Node>& definitions);
void ParseFlags(const WidgetType& type, const std::string& flags,
WidgetAttributes& flags_ptr);
@@ -206,7 +200,6 @@ std::string LoadFile(const std::string& filename);
} // namespace zeml
} // namespace gui
} // namespace yaze
#endif // YAZE_APP_GUI_YAZON_H_
#endif // YAZE_APP_GUI_ZEML_H