add blinking dish-picture if positioner is moving (we need a function which returns...
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 1 Dec 2005 08:41:25 +0000 (08:41 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 1 Dec 2005 08:41:25 +0000 (08:41 +0000)
work)

data/dish.png [new file with mode: 0755]
data/skin.xml
lib/dvb/sec.cpp
lib/dvb/sec.h
lib/python/Components/BlinkingPixmap.py
lib/python/Screens/InfoBar.py
lib/python/Screens/InfoBarGenerics.py
lib/python/Screens/Makefile.am

diff --git a/data/dish.png b/data/dish.png
new file mode 100755 (executable)
index 0000000..8253b8a
Binary files /dev/null and b/data/dish.png differ
index ca8632db11a9740914f87660549776a7367a8e5c..58523baebb7ab3f44a9e49fbf458b19393da15ac 100644 (file)
@@ -9,6 +9,7 @@
                        <color name="green"     value="#00ff00" />
                        <color name="blue"              value="#0000ff" />
                        <color name="yellow"    value="#c0c000" />
+                       <color name="transparent"       value="#ffffffff" />
                </colors>
                <windowstyle type="skinned">
                        <color name="Background" color="#33294a6b" />
                <screen name="Mute" flags="wfNoBorder" position="100,100" size="59,80" title="Mute">
                        <ePixmap position="0,0" size="59,80" pixmap="/usr/share/enigma2/mute-fs8.png" />
                </screen>
+               <screen name="Dish" flags="wfNoBorder" position="300,100" size="100,107" title="Dish">
+                       <widget name="transparent" zPosition="-1" position="0,0" size="100,107" backgroundColor="transparent" />
+                       <widget name="Dishpixmap" pixmap="/usr/share/enigma2/dish.png" position="0,0" size="100,107" />
+               </screen>
                <screen name="ChannelSelection" position="90,98" size="560,417" title="Channel Selection">
                        <widget name="list" position="10,45" size="540,364" />
                        <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
index 48eb971d516e069529def99279f7cc5599f628ee..8b7b25dbf1add7e6d1c87329c298a1115b2f6573 100644 (file)
@@ -460,7 +460,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
                                                RotorCmd=sw_param.m_rotorPosNum;
                                        else  // we must calc gotoxx cmd
                                        {
-                                               eDebug("Entry for %d,%d° not in Rotor Table found... i try gotoXX°", sat.orbital_position / 10, sat.orbital_position % 10 );
+                                               eDebug("Entry for %d,%d? not in Rotor Table found... i try gotoXX?", sat.orbital_position / 10, sat.orbital_position % 10 );
                                                useGotoXX = true;
 
                                                int satDir = sat.orbital_position < 0 ?
@@ -935,3 +935,8 @@ RESULT eDVBSatelliteEquipmentControl::setTunerLinked(int tu1, int tu2)
        }
        return -1;
 }
+
+bool eDVBSatelliteEquipmentControl::isRotorMoving()
+{
+       return false;
+}
index 7f8bbeee45f9e08b3d4b211897b59ce8d38b3568..93d9cf241645fc2ae5d92584a5ed35090c8a0c82 100644 (file)
@@ -165,8 +165,8 @@ public:
        {
                __u8 m_lo_direction;    // EAST, WEST
                __u8 m_la_direction;    // NORT, SOUTH
-               double m_longitude;     // longitude for gotoXX° function
-               double m_latitude;      // latitude for gotoXX° function
+               double m_longitude;     // longitude for gotoXX? function
+               double m_latitude;      // latitude for gotoXX? function
        };
        eDVBSatelliteRotorGotoxxParameters m_gotoxx_parameters;
 
@@ -252,6 +252,8 @@ public:
        RESULT setRotorPosNum(int rotor_pos_num);
 /* Tuner Specific Parameters */
        RESULT setTunerLinked(int from, int to);
+       
+       bool isRotorMoving();
 };
 
 #endif
index 45b8a06b483d94e4e808b194c3b4b59ea2d9bb6b..b19bdc5d92a41d8c119fb4e6987091e93e5ee89a 100644 (file)
@@ -8,7 +8,7 @@ class BlinkingPixmap(Pixmap):
        def __init__(self):
                Pixmap.__init__(self)
                
-               self.blinking = False
+               self.blinking = True
                
                self.setBlinkTime(500)
 
index 3ddb1c3c7da6ddfc5b92522b2fb1781c6e950e8f..45a0538b9a016bb0586ad51de3a806e0a49aed16 100644 (file)
@@ -12,7 +12,7 @@ from Tools.Notifications import AddNotificationWithCallback
 from Screens.InfoBarGenerics import InfoBarVolumeControl, InfoBarShowHide, \
        InfoBarPowerKey, InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, \
        InfoBarEPG, InfoBarEvent, InfoBarServiceName, InfoBarPVR, InfoBarInstantRecord, \
-       InfoBarAudioSelection, InfoBarAdditionalInfo, InfoBarNotifications
+       InfoBarAudioSelection, InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish
 
 from Screens.HelpMenu import HelpableScreen, HelpMenu
 
@@ -23,7 +23,7 @@ import time
 class InfoBar(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey,
        InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG,
        InfoBarEvent, InfoBarServiceName, InfoBarInstantRecord, InfoBarAudioSelection, 
-       HelpableScreen, InfoBarAdditionalInfo, InfoBarNotifications):
+       HelpableScreen, InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish):
 
        def __init__(self, session):
                Screen.__init__(self, session)
@@ -37,7 +37,7 @@ class InfoBar(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey,
                                InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey, \
                                InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG, \
                                InfoBarEvent, InfoBarServiceName, InfoBarInstantRecord, InfoBarAudioSelection, \
-                               InfoBarAdditionalInfo, InfoBarNotifications:
+                               InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish:
                        x.__init__(self)
 
                self.helpList.append((self["actions"], "InfobarActions", [("showMovies", "Watch a Movie...")]))
index c1842796df28a327102c95644140adb40a6eec33..ddfac4a04e9538ca0f23bf1d7ceabebaf4d6c64f 100644 (file)
@@ -17,6 +17,7 @@ from EpgSelection import EPGSelection
 from Screens.MessageBox import MessageBox
 from Screens.Volume import Volume
 from Screens.Mute import Mute
+from Screens.Dish import Dish
 from Screens.Standby import Standby
 from Screens.EventView import EventView
 
@@ -89,6 +90,11 @@ class InfoBarVolumeControl:
                else:
                        self.muteDialog.instance.hide()
 
+class InfoBarDish:
+       def __init__(self):
+               self.dishDialog = self.session.instantiateDialog(Dish)
+               self.onShown.append(self.dishDialog.instance.show)
+
 class InfoBarShowHide:
        """ InfoBar show/hide control, accepts toggleShow and hide actions, might start
        fancy animations. """
index cb54ec5b2778f53d532fc929b6c013cc0eaaf880..20e0961b84a82382389c5a25648a9b801d70d0ae 100644 (file)
@@ -6,4 +6,5 @@ install_PYTHON = \
        MovieSelection.py Setup.py About.py HarddiskSetup.py FixedMenu.py \
        Satconfig.py ScanSetup.py NetworkSetup.py Ci.py TimerEntry.py Volume.py \
        EpgSelection.py EventView.py Mute.py Standby.py ServiceInfo.py \
-       AudioSelection.py InfoBarGenerics.py HelpMenu.py Wizard.py __init__.py
+       AudioSelection.py InfoBarGenerics.py HelpMenu.py Wizard.py __init__.py \
+       Dish.py