From bfb6334ca85f370cae7bccc699026a39eae0128d Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Sat, 8 Feb 2014 00:32:31 +0100 Subject: Properly delete all GUIObjects and pages on theme reload Signed-off-by: Vojtech Bocek Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34 --- gui/pages.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gui/pages.hpp') diff --git a/gui/pages.hpp b/gui/pages.hpp index 2a2ef2c32..23ceee9c8 100644 --- a/gui/pages.hpp +++ b/gui/pages.hpp @@ -29,14 +29,14 @@ class RenderObject; class ActionObject; class InputObject; class MouseCursor; +class GUIObject; class Page { -public: - virtual ~Page() {} - public: Page(xml_node<>* page, xml_node<>* templates = NULL); + virtual ~Page(); + std::string GetName(void) { return mName; } public: @@ -51,6 +51,7 @@ public: protected: std::string mName; + std::vector mObjects; std::vector mRenders; std::vector mActions; std::vector mInputs; -- cgit v1.2.3