<key id="KEY_OK" mapto="showMenu" flags="m" />
</map>
+ <map context="PiPSetupActions">
+ <key id="KEY_UP" mapto="up" flags="mr" />
+ <key id="KEY_DOWN" mapto="down" flags="mr" />
+ <key id="KEY_LEFT" mapto="left" flags="mr" />
+ <key id="KEY_RIGHT" mapto="right" flags="mr" />
+ <key id="KEY_EXIT" mapto="cancel" flags="m" />
+ <key id="KEY_OK" mapto="ok" flags="m" />
+ <key id="KEY_CHANNELUP" mapto="size+" flags="mr" />
+ <key id="KEY_CHANNELDOWN" mapto="size-" flags="mr" />
+ </map>
+
<map context="MediaPlayerSeekActions">
<key id="KEY_YELLOW" mapto="pause" flags="m" />
<key id="KEY_GREEN" mapto="play" flags="m" />
<screen name="PictureInPicture" position="500,100" size="180,140" zPosition="-1" flags="wfNoBorder" >
<widget name="video" position="0,0" size="160,120" />
</screen>
+ <screen name="PiPSetup" backgroundColor="transparent" position="70,400" size="600,150" title="PiPSetup" flags="wfNoBorder">
+ <widget name="text" position="0,0" size="600,150" font="Regular;23" />
+ </screen>
<screen name="MovieSelection" position="90,98" size="560,415" title="Select a movie">
<widget name="waitingtext" position="0,0" size="500,335" zPosition="2" font="Regular;22" />
<widget name="list" position="0,0" size="560,375" zPosition="1" scrollbarMode="showOnDemand" />
self.timeshift_enabled = False
self.__seekableStatusChanged()
+from Screens.PiPSetup import PiPSetup
+
class InfoBarExtensions:
def __init__(self):
self.pipshown = False
list.append((_("Activate Picture in Picture"), "pipon"))
elif self.pipshown == True:
list.append((_("Disable Picture in Picture"), "pipoff"))
+ list.append((_("Move Picture in Picture"), "movepip"))
self.session.openWithCallback(self.extensionCallback, ChoiceBox, title=_("Please choose an extension..."), list = list)
def extensionCallback(self, answer):
else:
self.pipservice = None
del self.pip
-
+ self.session.nav.playService(newservice)
elif answer[1] == "pipoff":
#self.pip.hide()
self.pipservice = None
del self.pip
self.pipshown = False
+ elif answer[1] == "movepip":
+ self.session.open(PiPSetup, pip = self.pip)
from RecordTimer import parseEvent
Satconfig.py ScanSetup.py NetworkSetup.py Ci.py TimerEntry.py Volume.py \
EpgSelection.py EventView.py Mute.py Standby.py ServiceInfo.py \
InfoBarGenerics.py HelpMenu.py Wizard.py __init__.py \
- Dish.py LanguageSelection.py StartWizard.py \
+ Dish.py LanguageSelection.py StartWizard.py PiPSetup.py \
TutorialWizard.py PluginBrowser.py MinuteInput.py Scart.py PVRState.py \
Console.py InputBox.py ChoiceBox.py SimpleSummary.py ImageWizard.py \
MediaPlayer.py TimerSelection.py PictureInPicture.py TimeDateInput.py
from Screens.Screen import Screen
+from enigma import ePoint, eSize
from Components.VideoWindow import VideoWindow
Screen.__init__(self, session)
self["video"] = VideoWindow()
+
+ def move(self, x, y):
+ print "moving pip to", str(x) + ":" + str(y)
+ self.instance.move(ePoint(x, y))
+
+ def resize(self, w, h):
+ print "resizing pip to", str(w) + "x" + str(h)
+ self.instance.resize(eSize(*(w, h)))
+
+ def getPosition(self):
+ return ((self.instance.position().x(), self.instance.position().y()))
+
+ def getSize(self):
+ return (self.instance.size().width(), self.instance.size().height())
\ No newline at end of file
"TimerEdit", "Setup", "HarddiskSetup", "FixedMenu",
"Satconfig", "Scanconfig", "Ci.py", "Volume.py", "Mute.py",
"EpgSelection", "EventView", "Standby", "ServiceInfo",
- "InfoBarGenerics", "HelpMenu", "Wizard",
+ "InfoBarGenerics", "HelpMenu", "Wizard", "PiPSetup",
"PVRState", "Console", "InputBox", "ChoiceBox", "SimpleSummary",
"TimerSelection" ]