From 21ff02a69331fbcd53dc93a1af9a93618225b4bf Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 18 Feb 2015 14:35:00 -0600 Subject: GUI: Support styles in xml to reduce xml file size Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308 --- gui/pages.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/pages.hpp') diff --git a/gui/pages.hpp b/gui/pages.hpp index 31ccadb51..8eec9a951 100644 --- a/gui/pages.hpp +++ b/gui/pages.hpp @@ -102,6 +102,8 @@ public: int SetKeyBoardFocus(int inFocus); int NotifyVarChange(std::string varName, std::string value); + std::vector*> styles; + protected: int LoadPages(xml_node<>* pages); int LoadVariables(xml_node<>* vars); @@ -153,6 +155,8 @@ public: static HardwareKeyboard *GetHardwareKeyboard(); + static xml_node<>* FindStyle(std::string name); + protected: static PageSet* FindPackage(std::string name); -- cgit v1.2.3