add color buttons to epgselection
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 24 Nov 2005 02:09:47 +0000 (02:09 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 24 Nov 2005 02:09:47 +0000 (02:09 +0000)
data/keymap.xml
data/skin.xml
lib/python/Screens/EpgSelection.py

index 6124998..c6160b2 100644 (file)
                <key id="KEY_DOWN" mapto="pageDown" flags="mr" />
                <key id="KEY_LEFT" mapto="prevEvent" flags="mr" />
                <key id="KEY_RIGHT" mapto="nextEvent" flags="mr" />
+               <key id="KEY_GREEN" mapto="timerAdd" flags="m" />
        </map>
 
        <map context="OkCancelActions">
index 33a5fc0..d19e0fa 100644 (file)
                </screen>
                <screen name="InfoBar" flags="wfNoBorder" position="0,380" size="720,148" title="InfoBar">
                        <ePixmap position="0,0" size="720,148" pixmap="/usr/share/enigma2/info-bg.png" />
-                       
+                                               
                        <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" />
                        <widget name="Event_Now_StartTime" position="210,68" size="60,22" font="Arial;20" backgroundColor="dark" />
                        <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
                </screen>
                <screen name="EPGSelection" position="90,100" size="560,415" title="EPG Selection">
-                       <widget name="list" position="10,5" size="550,400" />
+                       <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Arial;21" />
+                       <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Arial;21" />
+                       <widget name="key_yellow" position="280,0" size="140,30" backgroundColor="yellow" font="Arial;21" />
+                       <widget name="key_blue" position="420,0" size="140,30" backgroundColor="blue" font="Arial;21" />
+
+                       <widget name="list" position="10,40" size="550,370" />
                </screen>
                <screen name="EventView" position="100,100" size="520,380" title="Eventview">
                        <widget name="epg_description" position="10,5" size="500,335" font="Arial;22" />
index def51d4..db8be2e 100644 (file)
@@ -21,6 +21,11 @@ class EPGSelection(Screen):
                class ChannelActionMap(ActionMap):
                        def action(self, contexts, action):
                                        ActionMap.action(self, contexts, action)
+                                       
+               self["key_red"] = Button("")
+               self["key_green"] = Button(_("Add timer"))
+               self["key_yellow"] = Button("")
+               self["key_blue"] = Button("")
 
                self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"], 
                        {