# HG changeset patch # User Michael Schloh von Bennewitz # Date 1326751081 -3600 # Node ID 61eb8a9b53a68dd90fcebab09462d8f36ee9eb8d # Parent 6bb708a2265fb28e058b56dbc436a42743822c2e Edit appearance of UI and adjust packaging logic accordingly. diff -r 6bb708a2265f -r 61eb8a9b53a6 mosaic/control --- a/mosaic/control Mon Jan 16 22:56:52 2012 +0100 +++ b/mosaic/control Mon Jan 16 22:58:01 2012 +0100 @@ -1,6 +1,9 @@ -Package: enigma2-plugin-extensions-mosaic -Version: 0.1-r0 -Description: Shows you screenshots of the services in a selected bouquet -Maintainer: Nabil Hanna -Homepage: http://www.lt-forums.org/ali -Depends: enigma2 (>= 2.6git20090724), aio-grab (>= 0.8cvs20081209) +Package: enigma-plugin-extensions-mosaik +Version: 1.0-20120116 +Description: Displays miniature screens of the services in a given bouquet +Section: base +Priority: optional +Maintainer: Michael Schloh von Bennewitz +License: Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported +Architecture: mipsel +Depends: enigma2, aio-grab diff -r 6bb708a2265f -r 61eb8a9b53a6 mosaic/plugin.py --- a/mosaic/plugin.py Mon Jan 16 22:56:52 2012 +0100 +++ b/mosaic/plugin.py Mon Jan 16 22:58:01 2012 +0100 @@ -59,67 +59,73 @@ positions = [] x = 80 - y = 50 + y = 40 for i in range(1, 10): positions.append([x, y]) x += windowWidth x += ((width - 160) - (windowWidth * 3)) / 2 if (i == 3) or (i == 6): - y = y + windowHeight + 20 + y = y + windowHeight + 40 x = 80 skin = "" - skin += """""" % (width, height) + skin += """""" % (width, height) skin += """""" - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[0][0], positions[0][1]-18, windowWidth-4) - skin += """""" % (positions[1][0], positions[1][1]-18, windowWidth-4) - skin += """""" % (positions[2][0], positions[2][1]-18, windowWidth-4) - skin += """""" % (positions[3][0], positions[3][1]-18, windowWidth-4) - skin += """""" % (positions[4][0], positions[4][1]-18, windowWidth-4) - skin += """""" % (positions[5][0], positions[5][1]-18, windowWidth-4) - skin += """""" % (positions[6][0], positions[6][1]-18, windowWidth-4) - skin += """""" % (positions[7][0], positions[7][1]-18, windowWidth-4) - skin += """""" % (positions[8][0], positions[8][1]-18, windowWidth-4) - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth) + skin += """""" % (positions[0][0]-2, positions[0][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[1][0]-2, positions[1][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[2][0]-2, positions[2][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[3][0]-2, positions[3][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[4][0]-2, positions[4][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[5][0]-2, positions[5][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[6][0]-2, positions[6][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[7][0]-2, positions[7][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[8][0]-2, positions[8][1]+1, windowWidth, windowHeight) - skin += """""" % (height-50, windowWidth) - skin += """ - """ % (positions[2][0] ,height-50, windowWidth) + skin += """""" % (positions[0][0]-2, positions[0][1]-18, windowWidth-4) + skin += """""" % (positions[1][0]-2, positions[1][1]-18, windowWidth-4) + skin += """""" % (positions[2][0]-2, positions[2][1]-18, windowWidth-4) + skin += """""" % (positions[3][0]-2, positions[3][1]-18, windowWidth-4) + skin += """""" % (positions[4][0]-2, positions[4][1]-18, windowWidth-4) + skin += """""" % (positions[5][0]-2, positions[5][1]-18, windowWidth-4) + skin += """""" % (positions[6][0]-2, positions[6][1]-18, windowWidth-4) + skin += """""" % (positions[7][0]-2, positions[7][1]-18, windowWidth-4) + skin += """""" % (positions[8][0]-2, positions[8][1]-18, windowWidth-4) + + skin += """""" % (positions[0][0]-2, positions[0][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[1][0]-2, positions[1][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[2][0]-2, positions[2][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[3][0]-2, positions[3][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[4][0]-2, positions[4][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[5][0]-2, positions[5][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[6][0]-2, positions[6][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[7][0]-2, positions[7][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[8][0]-2, positions[8][1]+1, windowWidth, windowHeight) + + # Playing video moving pictures + skin += """""" % (positions[0][0]-2, positions[0][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[1][0]-2, positions[1][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[2][0]-2, positions[2][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[3][0]-2, positions[3][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[4][0]-2, positions[4][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[5][0]-2, positions[5][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[6][0]-2, positions[6][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[7][0]-2, positions[7][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[8][0]-2, positions[8][1]+1, windowWidth, windowHeight) + + # Zweite Zeile Sendung + skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth) + skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth) + skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth) + skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth) + skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth) + skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth) + skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth) + skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth) + skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth) + + skin += """""" % (height-40, windowWidth) + skin += """ + """ % (positions[2][0] ,height-40, windowWidth) def __init__(self, session, services): Screen.__init__(self, session) @@ -252,7 +258,7 @@ # Grab video if not self.Console: self.Console = Console() - self.consoleCmd = "%s -v -r %d -l -j 100 %s" % (grab_binary, self.windowWidth, grab_picture) + self.consoleCmd = "%s -v -r %d -j 100 %s" % (grab_binary, self.windowWidth, grab_picture) self.Console.ePopen(self.consoleCmd, self.showNextScreenshot) def showNextScreenshot(self, result, retval, extra_args):