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 ca8632d..58523ba 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 48eb971..8b7b25d 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 7f8bbee..93d9cf2 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 45b8a06..b19bdc5 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 3ddb1c3..45a0538 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 c184279..ddfac4a 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 cb54ec5..20e0961 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