Menu-related panels creation moved to frontend/menu module

This commit is contained in:
MihailRis
2023-11-20 11:28:28 +03:00
parent c712c2239f
commit 926fcb1f79
7 changed files with 51 additions and 297 deletions
+6
View File
@@ -61,6 +61,10 @@ namespace gui {
struct Page {
std::shared_ptr<UINode> panel = nullptr;
~Page() {
panel = nullptr;
}
};
class PagesControl : public Container {
@@ -72,8 +76,10 @@ namespace gui {
public:
PagesControl();
bool has(std::string name);
void set(std::string name, bool history=true);
void add(std::string name, std::shared_ptr<UINode> panel);
void add(std::string name, UINode* panel);
void back();
void clearHistory();
void reset();