UiDocument

This commit is contained in:
MihailRis
2024-02-07 19:29:20 +03:00
parent c902ed506b
commit 1dd0e9f939
17 changed files with 257 additions and 42 deletions
+7 -1
View File
@@ -7,6 +7,10 @@
#include "GUI.h"
#include "../../coders/xml.h"
namespace scripting {
class Environment;
}
namespace gui {
class UiXmlReader;
@@ -15,8 +19,9 @@ namespace gui {
class UiXmlReader {
std::unordered_map<std::string, uinode_reader> readers;
std::string filename;
const scripting::Environment& env;
public:
UiXmlReader();
UiXmlReader(const scripting::Environment& env);
void add(const std::string& tag, uinode_reader reader);
@@ -44,6 +49,7 @@ namespace gui {
xml::xmlelement root
);
const scripting::Environment& getEnvironment() const;
const std::string& getFilename() const;
};
}