add ugly buttons with ugly text to the infobar
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 28 Nov 2005 00:11:25 +0000 (00:11 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 28 Nov 2005 00:11:25 +0000 (00:11 +0000)
data/button_blue.png [new file with mode: 0644]
data/button_green.png [new file with mode: 0644]
data/button_red.png [new file with mode: 0644]
data/button_yellow.png [new file with mode: 0644]
data/skin.xml
lib/python/Screens/InfoBarGenerics.py

diff --git a/data/button_blue.png b/data/button_blue.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/data/button_green.png b/data/button_green.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/data/button_red.png b/data/button_red.png
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/data/button_yellow.png b/data/button_yellow.png
new file mode 100644 (file)
index 0000000..e69de29
index f93baf3..9121927 100644 (file)
                        <widget name="Event_Next" position="273,98" size="282,22" font="Arial;20" backgroundColor="dark" />
                        <widget name="Event_Now_Duration" position="555,68" size="70,26" font="Arial;22" backgroundColor="dark" />
                        <widget name="Event_Next_Duration" position="555,98" size="70,26" font="Arial;22" backgroundColor="dark" />
+
+                       <widget name="ButtonRed" pixmap="/usr/share/enigma2/button_red.png" position="210,132" size="27,12" />
+                       <widget name="ButtonRedText" position="240,132" size="75,22" font="Arial;13" backgroundColor="dark" />
+                       <widget name="ButtonGreen" pixmap="/usr/share/enigma2/button_green.png" position="320,132" size="27,12" />
+                       <widget name="ButtonYellow" pixmap="/usr/share/enigma2/button_yellow.png" position="430,132" size="27,12" />
+                       <widget name="ButtonBlue" pixmap="/usr/share/enigma2/button_blue.png" position="540,132" size="27,12" />
+                       
                </screen>
 
-               <screen name="MoviePlayer" flags="wfNoBorder" position="0,380" size="720,148" title="InfoBar">
-<!--                   <ePixmap position="0,0" size="720,148" pixmap="/usr/share/enigma2/info-bg.png" />
+               <screen name="MoviePlayer" flags="wfNoBorder" position="0,370" size="720,148" title="InfoBar">
+                       <!--<ePixmap position="0,0" zPosition="1" size="720,148" pixmap="/usr/share/enigma2/movieplayer.png" />
+
+                       <ePixmap position="50,40" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/rewindbutton.png" />
+                       <ePixmap position="95,40" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/playbutton.png" />
+                       <ePixmap position="140,40" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/pausebutton.png" />
+                       <ePixmap position="185,40" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/forwardbutton.png" />
+                       <ePixmap position="230,40" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/stopbutton.png" />
+                       <ePixmap position="275,40" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/recordbutton.png" />
+
+                       <widget name="ServiceName" position="250,75" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
+                       <widget name="CurrentTime" position="575,85" size="90,30" backgroundColor="dark" font="Arial;19" />
+                       <eLabel position="70,0" size="300,30" text=".oO Movie Player Oo." font="Arial;20" />
 -->
                        <widget name="ServiceName" position="69,25" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
                        <widget name="CurrentTime" position="575,10" size="90,30" backgroundColor="dark" font="Arial;19" />
-                       <eLabel position="70,0" size="300,30" text=".oO Movie Player Oo." font="Arial;20" />
+
+
                </screen>
 
 
index e101cd2..5666fc8 100644 (file)
@@ -6,7 +6,7 @@ from Components.config import configfile, configsequencearg
 from Components.config import config, configElement, ConfigSubsection, configSequence
 from ChannelSelection import ChannelSelection
 
-from Components.Pixmap import PixmapConditional
+from Components.Pixmap import Pixmap, PixmapConditional
 from Components.BlinkingPixmap import BlinkingPixmapConditional
 from Components.ServiceName import ServiceName
 from Components.EventInfo import EventInfo
@@ -512,4 +512,10 @@ class InfoBarAdditionalInfo:
                
                self["FormatActive"] = PixmapConditional()
                # TODO: get the info from c++ somehow
-               self["FormatActive"].setConnect(lambda: False)
\ No newline at end of file
+               self["FormatActive"].setConnect(lambda: False)
+               
+               self["ButtonRed"] = Pixmap()
+               self["ButtonRedText"] = Label(_("Record"))
+               self["ButtonGreen"] = Pixmap()
+               self["ButtonYellow"] = Pixmap()
+               self["ButtonBlue"] = Pixmap()
\ No newline at end of file