move the movie selector to the currently playing movie
[enigma2.git] / lib / python / Components / ServiceList.py
index d008c475682ea29a51f79a69c72113b75374d4ee..4c10c6604f1a0d89982f2eefc3ba46dec5414bc9 100644 (file)
@@ -43,6 +43,12 @@ class ServiceList(HTMLComponent, GUIComponent):
                self.instance.moveSelectionTo(index)
                print "Moving to character " + str(char)
 
+       def moveToIndex(self, index):
+               self.instance.moveSelectionTo(index)
+
+       def getCurrentIndex(self):
+               return self.instance.getCurrentIndex()
+
        def GUIcreate(self, parent):
                self.instance = eListbox(parent)
                self.instance.setContent(self.l)
@@ -73,9 +79,17 @@ class ServiceList(HTMLComponent, GUIComponent):
        def setPlayableIgnoreService(self, ref):
                self.l.setIgnoreService(ref)
 
-       def setRoot(self, root):
+       def setRoot(self, root, justSet=False):
                self.root = root
-               self.l.setRoot(root)
+               self.l.setRoot(root, justSet)
+               if not justSet:
+                       self.l.sort()
+
+       def addService(self, service):
+               self.l.addService(service)
+
+       def finishFill(self):
+               self.l.FillFinished()
                self.l.sort()
 
 # stuff for multiple marks (edit mode / later multiepg)