generated ui nodes indexing

This commit is contained in:
MihailRis
2024-04-03 19:29:53 +03:00
parent e57b0eca15
commit 1a4c70d21a
6 changed files with 50 additions and 58 deletions
+1 -2
View File
@@ -42,12 +42,11 @@ public:
const std::string& getId() const;
const uinodes_map& getMap() const;
uinodes_map& getMapWriteable();
const std::shared_ptr<gui::UINode> getRoot() const;
const std::shared_ptr<gui::UINode> get(const std::string& id) const;
const uidocscript& getScript() const;
int getEnvironment() const;
// @brief Collect map of all uinodes having identifiers
static void buildIndices(uinodes_map& map, std::shared_ptr<gui::UINode> node);
static std::unique_ptr<UiDocument> read(int env, std::string name, fs::path file);
static std::shared_ptr<gui::UINode> readElement(fs::path file);