add lcd
[enigma2.git] / lib / python / Components / ServiceList.py
index 4c553d9..0f71c44 100644 (file)
@@ -32,6 +32,7 @@ class ServiceList(HTMLComponent, GUIComponent):
 
        def setRoot(self, root):
                self.l.setRoot(root)
+               self.l.sort()
                
                # mark stuff
        def clearMarked(self):
@@ -60,16 +61,18 @@ class ServiceList(HTMLComponent, GUIComponent):
 
                return marked
 
+       def setCurrentMarked(self, state):
+               self.l.setCurrentMarked(state)
+
        def setMode(self, mode):
                if mode == self.MODE_NORMAL:
                        self.instance.setItemHeight(20)
                        self.l.setVisualMode(eListboxServiceContent.visModeSimple)
                else:
                        self.instance.setItemHeight(40)
-                       
                        self.l.setElementFont(self.l.celServiceName, gFont("Arial", 30))
                        self.l.setElementPosition(self.l.celServiceName, eRect(40, 0, self.instance.size().width(), 40))
                        self.l.setElementFont(self.l.celServiceNumber, gFont("Arial", 20))
                        self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 10, 40, 30))
-                       
+
                        self.l.setVisualMode(eListboxServiceContent.visModeComplex)