work on web interface
[enigma2.git] / lib / python / Components / GUISkin.py
index cf8e1894bf50b8dde0a9cfe201c6183adbd1bde2..406cd0977218ba505988662a73a45436f5c8eb19 100644 (file)
@@ -6,10 +6,10 @@ class GUISkin:
 
        def __init__(self):
                self.onLayoutFinish = [ ]
-               pass
+               self.summaries = [ ]
 
        def createGUIScreen(self, parent, desktop):
-               for (name, val) in self.items():
+               for val in self.values() + self.renderer:
                        if isinstance(val, GUIComponent):
                                val.GUIcreate(parent)
                                val.applySkin(desktop)
@@ -25,8 +25,6 @@ class GUISkin:
                        else:
                                f()
 
-
-
        def deleteGUIScreen(self):
                for (name, val) in self.items():
                        if isinstance(val, GUIComponent):
@@ -34,3 +32,19 @@ class GUISkin:
 
        def close(self):
                self.deleteGUIScreen()
+
+       def createSummary(self):
+               return None
+
+       def addSummary(self, summary):
+               self.summaries.append(summary)
+
+       def removeSummary(self, summary):
+               self.summaries.remove(summary)
+
+       def setTitle(self, title):
+               self.instance.setTitle(title)
+               self.title = title
+               
+               for x in self.summaries:
+                       x.setTitle(title)