follow itemHeight changes
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 12 Apr 2007 19:50:53 +0000 (19:50 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 12 Apr 2007 19:50:53 +0000 (19:50 +0000)
lib/python/Components/ChoiceList.py
lib/python/Components/FileList.py
lib/python/Components/HelpMenuList.py
lib/python/Components/MediaPlayer.py
lib/python/Components/MovieList.py
lib/python/Components/ParentalControlList.py
lib/python/Components/PluginList.py
lib/python/Components/SelectionList.py
lib/python/Components/ServiceList.py
lib/python/Components/TimerList.py

index a2070c7..a7a5e48 100644 (file)
@@ -24,11 +24,11 @@ class ChoiceList(MenuList, HTMLComponent, GUIComponent):
                self.list = list
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.list = list
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
+               self.l.setItemHeight(25)
                self.selection = selection
 
        GUI_WIDGET = eListbox
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
                self.selection = selection
 
        GUI_WIDGET = eListbox
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(25)
                self.moveToIndex(self.selection)
                self.moveToIndex(self.selection)
index b85b8ea..01358d5 100644 (file)
@@ -58,7 +58,8 @@ class FileList(MenuList, HTMLComponent, GUIComponent):
                self.changeDir(directory)
 
                self.l.setFont(0, gFont("Regular", 18))
                self.changeDir(directory)
 
                self.l.setFont(0, gFont("Regular", 18))
-               
+               self.l.setItemHeight(23)
+
        def getSelection(self):
                if self.l.getCurrentSelection() is None:
                        return None
        def getSelection(self):
                if self.l.getCurrentSelection() is None:
                        return None
@@ -186,4 +187,3 @@ class FileList(MenuList, HTMLComponent, GUIComponent):
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(23)
index 48802f7..7dc51fa 100644 (file)
@@ -36,6 +36,7 @@ class HelpMenuList(GUIComponent):
                self.l.setList(l)
                
                self.l.setFont(0, gFont("Regular", 26))
                self.l.setList(l)
                
                self.l.setFont(0, gFont("Regular", 26))
+               self.l.setItemHeight(42)
        
        def ok(self):
                # a list entry has a "private" tuple as first entry...
        
        def ok(self):
                # a list entry has a "private" tuple as first entry...
@@ -54,9 +55,9 @@ class HelpMenuList(GUIComponent):
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(42)
+
                instance.selectionChanged.get().append(self.selectionChanged)
                instance.selectionChanged.get().append(self.selectionChanged)
-               
+
        def selectionChanged(self):
                for x in self.onSelChanged:
                        x()
        def selectionChanged(self):
                for x in self.onSelChanged:
                        x()
index aff1919..2063887 100644 (file)
@@ -48,6 +48,7 @@ class PlayList(MenuList, HTMLComponent, GUIComponent):
                self.list = []
                self.l.setList(self.list)
                self.l.setFont(0, gFont("Regular", 18))
                self.list = []
                self.l.setList(self.list)
                self.l.setFont(0, gFont("Regular", 18))
+               self.l.setItemHeight(22)
                self.currPlaying = -1
                self.oldCurrPlaying = -1
        
                self.currPlaying = -1
                self.oldCurrPlaying = -1
        
@@ -61,7 +62,6 @@ class PlayList(MenuList, HTMLComponent, GUIComponent):
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(22)
 
        def getSelection(self):
                return self.l.getCurrentSelection()[0]
 
        def getSelection(self):
                return self.l.getCurrentSelection()[0]
index dcd99fe..c3ec1b1 100644 (file)
@@ -17,6 +17,7 @@ class MovieList(GUIComponent):
                self.l.setFont(1, gFont("Regular", 18))
                self.l.setFont(2, gFont("Regular", 16))
                self.l.setBuildFunc(self.buildMovieListEntry)
                self.l.setFont(1, gFont("Regular", 18))
                self.l.setFont(2, gFont("Regular", 16))
                self.l.setBuildFunc(self.buildMovieListEntry)
+               self.l.setItemHeight(75)
 
        #
        # | name of movie              |
 
        #
        # | name of movie              |
@@ -68,7 +69,6 @@ class MovieList(GUIComponent):
        
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
        
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(75)
        
        def reload(self, root = None, filter_tags = None):
                if root is not None:
        
        def reload(self, root = None, filter_tags = None):
                if root is not None:
index 02e8800..db8fd8e 100644 (file)
@@ -23,6 +23,7 @@ class ParentalControlList(MenuList, HTMLComponent, GUIComponent):
                self.list = list
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.list = list
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
+               self.l.setItemHeight(32)
 
        GUI_WIDGET = eListbox
        
 
        GUI_WIDGET = eListbox
        
@@ -32,7 +33,6 @@ class ParentalControlList(MenuList, HTMLComponent, GUIComponent):
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(32)
 
        def toggleSelectedLock(self):
                print "self.l.getCurrentSelection():", self.l.getCurrentSelection()
 
        def toggleSelectedLock(self):
                print "self.l.getCurrentSelection():", self.l.getCurrentSelection()
index fd98806..07a7174 100644 (file)
@@ -52,9 +52,9 @@ class PluginList(MenuList, HTMLComponent, GUIComponent):
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.l.setFont(1, gFont("Regular", 14))
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.l.setFont(1, gFont("Regular", 14))
+               self.l.setItemHeight(50)
 
        GUI_WIDGET = eListbox
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
 
        GUI_WIDGET = eListbox
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(50)
index 1500254..6019fff 100644 (file)
@@ -19,12 +19,12 @@ class SelectionList(MenuList, GUIComponent):
                self.list = list
                self.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.list = list
                self.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
+               self.l.setItemHeight(30)
 
        GUI_WIDGET = eListbox
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
 
        GUI_WIDGET = eListbox
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(30)
 
        def addSelection(self, description, value, index, selected = True):
                self.list.append(SelectionEntryComponent(description, value, index, selected))
 
        def addSelection(self, description, value, index, selected = True):
                self.list.append(SelectionEntryComponent(description, value, index, selected))
index 0532d24..7dfcd05 100644 (file)
@@ -160,13 +160,13 @@ class ServiceList(HTMLComponent, GUIComponent):
                self.mode = mode
 
                if mode == self.MODE_NORMAL:
                self.mode = mode
 
                if mode == self.MODE_NORMAL:
-                       self.instance.setItemHeight(28)
+                       self.l.setItemHeight(28)
                        self.l.setVisualMode(eListboxServiceContent.visModeComplex)
                        self.l.setElementFont(self.l.celServiceName, gFont("Regular", 22))
                        self.l.setElementPosition(self.l.celServiceName, eRect(0, 0, self.instance.size().width(), 28))
                        self.l.setElementFont(self.l.celServiceInfo, gFont("Regular", 18))
                else:
                        self.l.setVisualMode(eListboxServiceContent.visModeComplex)
                        self.l.setElementFont(self.l.celServiceName, gFont("Regular", 22))
                        self.l.setElementPosition(self.l.celServiceName, eRect(0, 0, self.instance.size().width(), 28))
                        self.l.setElementFont(self.l.celServiceInfo, gFont("Regular", 18))
                else:
-                       self.instance.setItemHeight(28)
+                       self.l.setItemHeight(28)
                        self.l.setVisualMode(eListboxServiceContent.visModeComplex)
                        self.l.setElementFont(self.l.celServiceNumber, gFont("Regular", 20))
                        self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 0, 50, 28))
                        self.l.setVisualMode(eListboxServiceContent.visModeComplex)
                        self.l.setElementFont(self.l.celServiceNumber, gFont("Regular", 20))
                        self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 0, 50, 28))
index d2ccbb9..c732e94 100644 (file)
@@ -71,6 +71,7 @@ class TimerList(HTMLComponent, GUIComponent, object):
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.l.setFont(1, gFont("Regular", 18))
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.l.setFont(1, gFont("Regular", 18))
+               self.l.setItemHeight(70)
        
        def getCurrent(self):
                return self.l.getCurrentSelection()
        
        def getCurrent(self):
                return self.l.getCurrentSelection()
@@ -79,7 +80,6 @@ class TimerList(HTMLComponent, GUIComponent, object):
        
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
        
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(70)
 
        def moveToIndex(self, index):
                self.instance.moveSelectionTo(index)
 
        def moveToIndex(self, index):
                self.instance.moveSelectionTo(index)