add possibility to have multiple windowstyles. LCD can have different colors now.
[enigma2.git] / lib / gui / ewindowstyle.h
index 3c9c805b92ef713ef4a4dabdbaca3f0b46d7b47b..4824aad62c44a2f8bcdd9ffa5d619ac428e785cd 100644 (file)
@@ -51,12 +51,12 @@ public:
        eWindowStyleManager();
        ~eWindowStyleManager();
 #endif
-       void getStyle(ePtr<eWindowStyle> &style);
-       void setStyle(eWindowStyle *style);
+       void getStyle(int style_id, ePtr<eWindowStyle> &style);
+       void setStyle(int style_id, eWindowStyle *style);
        static int getInstance(ePtr<eWindowStyleManager> &mgr) { mgr = m_instance; if (!mgr) return -1; return 0; }
 private:
        static eWindowStyleManager *m_instance;
-       ePtr<eWindowStyle> m_current_style;
+       std::map<int, ePtr<eWindowStyle> > m_current_style;
 };
 
 TEMPLATE_TYPEDEF(ePtr<eWindowStyleManager>, eWindowStyleManagerPtr);