+ def getMarked(self):
+ i = self.l
+ i.markedQueryStart()
+ ref = eServiceReference()
+ marked = [ ]
+ while i.markedQueryNext(ref) == 0:
+ marked.append(ref.toString())
+ ref = eServiceReference()
+ return marked
+
+#just for movemode.. only one marked entry..
+ def setCurrentMarked(self, state):
+ self.l.setCurrentMarked(state)
+
+ def setMode(self, mode):
+ self.mode = mode
+
+ try:
+ self.instance
+ except:
+ return
+
+ if mode == self.MODE_NORMAL:
+ self.instance.setItemHeight(28)
+ self.l.setVisualMode(eListboxServiceContent.visModeSimple)
+ self.l.setElementFont(self.l.celServiceName, gFont("Arial", 22))
+ self.l.setElementPosition(self.l.celServiceName, eRect(0, 0, self.instance.size().width(), 28))
+ else:
+ self.instance.setItemHeight(28)
+ self.l.setElementFont(self.l.celServiceNumber, gFont("Arial", 20))
+ self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 0, 40, 28))
+ self.l.setElementFont(self.l.celServiceName, gFont("Arial", 22))
+ self.l.setElementPosition(self.l.celServiceName, eRect(50, 0, self.instance.size().width()-50, 28))
+ self.l.setElementFont(self.l.celServiceInfo, gFont("Arial", 18))
+ self.l.setVisualMode(eListboxServiceContent.visModeComplex)