aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-05-04 23:34:47 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-05-04 23:34:47 +0000
commit84702da5d3a6df33717b399b859008a3cf8a1522 (patch)
tree03495da465a37db044f69bee8a3f06945947b33d /lib/python/Screens
parentfd002c45932aa88271af9be88f2d585199ac5a1e (diff)
downloadenigma2-84702da5d3a6df33717b399b859008a3cf8a1522.tar.gz
enigma2-84702da5d3a6df33717b399b859008a3cf8a1522.zip
move/resize PiP window (requires new drivers) (and is not yet working properly)
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py7
-rw-r--r--lib/python/Screens/Makefile.am2
-rw-r--r--lib/python/Screens/PictureInPicture.py15
-rw-r--r--lib/python/Screens/__init__.py2
4 files changed, 23 insertions, 3 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index c18c698f..7c335f1d 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1005,6 +1005,8 @@ class InfoBarTimeshift:
self.timeshift_enabled = False
self.__seekableStatusChanged()
+from Screens.PiPSetup import PiPSetup
+
class InfoBarExtensions:
def __init__(self):
self.pipshown = False
@@ -1020,6 +1022,7 @@ class InfoBarExtensions:
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):
@@ -1037,12 +1040,14 @@ class InfoBarExtensions:
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
diff --git a/lib/python/Screens/Makefile.am b/lib/python/Screens/Makefile.am
index 06571d81..b848b976 100644
--- a/lib/python/Screens/Makefile.am
+++ b/lib/python/Screens/Makefile.am
@@ -7,7 +7,7 @@ install_PYTHON = \
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
diff --git a/lib/python/Screens/PictureInPicture.py b/lib/python/Screens/PictureInPicture.py
index 391c042f..8bf78cfb 100644
--- a/lib/python/Screens/PictureInPicture.py
+++ b/lib/python/Screens/PictureInPicture.py
@@ -1,4 +1,5 @@
from Screens.Screen import Screen
+from enigma import ePoint, eSize
from Components.VideoWindow import VideoWindow
@@ -7,3 +8,17 @@ class PictureInPicture(Screen):
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
diff --git a/lib/python/Screens/__init__.py b/lib/python/Screens/__init__.py
index 30f39b1c..55830ea6 100644
--- a/lib/python/Screens/__init__.py
+++ b/lib/python/Screens/__init__.py
@@ -4,6 +4,6 @@ __all__ = ["ChannelSelection", "ClockDisplay", "ConfigMenu",
"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" ]