disable instant record by pressing red button with new rcs
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 15 Jul 2008 09:49:20 +0000 (09:49 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 15 Jul 2008 09:49:20 +0000 (09:49 +0000)
data/keymap.xml
data/skin.xml
lib/python/Screens/InfoBarGenerics.py

index e83b851..3f8e681 100644 (file)
@@ -89,7 +89,9 @@
                <device name="dreambox ir keyboard">
                        <key id="KEY_RECORD" mapto="instantRecord" flags="m" />
                </device>
-               <key id="KEY_RED" mapto="instantRecord" flags="b" />
+               <device name="dreambox remote control (native)">
+                       <key id="KEY_RED" mapto="instantRecord" flags="b" />
+               </device>
        </map>
 
        <map context="InfobarExtensions">
index f1e2549..472994d 100644 (file)
                <widget source="RecordingPossible" render="Pixmap" pixmap="skin_default/buttons/button_red.png" position="212,130" zPosition="1" size="15,16" alphatest="on">
                        <convert type="ConditionalShowHide" />
                </widget>
-               <eLabel text="Record" position="232,130" size="80,22" font="Regular;16" foregroundColor="#7f848d" backgroundColor="#182946" transparent="1" />
+               <!--eLabel text="Record" position="232,130" size="80,22" font="Regular;16" foregroundColor="#7f848d" backgroundColor="#182946" transparent="1" /-->
+               <widget source="ShowRecordOnRed" render="FixedLabel" text="Record" position="232,130" zPosition="1" size="80,22" font="Regular;16" foregroundColor="#7f848d" backgroundColor="#182946" transparent="1">
+                       <convert type="ConditionalShowHide" />
+               </widget>
                <widget source="RecordingPossible" render="FixedLabel" text="Record" position="232,130" zPosition="1" size="80,22" font="Regular;16" backgroundColor="#182946" shadowColor="#1d354c" shadowOffset="-1,-1" transparent="1">
                        <convert type="ConditionalShowHide" />
                </widget>
index 718c2d5..428ecbc 100644 (file)
@@ -1731,10 +1731,11 @@ class InfoBarSubserviceSelection:
 class InfoBarAdditionalInfo:
        def __init__(self):
 
-               self["RecordingPossible"] = Boolean(fixed=harddiskmanager.HDDCount() > 0)
-               self["TimeshiftPossible"] = Boolean(fixed=(harddiskmanager.HDDCount() > 0 and config.misc.rcused.value == 1))
+               self["RecordingPossible"] = Boolean(fixed=harddiskmanager.HDDCount() > 0 and config.misc.rcused.value == 1)
+               self["TimeshiftPossible"] = self["RecordingPossible"]
                self["ShowTimeshiftOnYellow"] = Boolean(fixed=(not config.misc.rcused.value == 0))
                self["ShowAudioOnYellow"] = Boolean(fixed=config.misc.rcused.value == 0)
+               self["ShowRecordOnRed"] = Boolean(fixed=config.misc.rcused.value == 1)
                self["ExtensionsAvailable"] = Boolean(fixed=1)
 
 class InfoBarNotifications: