summaryrefslogtreecommitdiff
path: root/quickbutton
diff options
context:
space:
mode:
authorHenning Behrend <sat_man@users.schwerkraft.elitedvb.net>2010-02-08 15:42:48 (GMT)
committerHenning Behrend <sat_man@users.schwerkraft.elitedvb.net>2010-02-08 15:42:48 (GMT)
commit7ddf87b8b499e3d319c846f3bff7b668db8d1bd7 (patch)
tree4c5bd1a55db0a6d69b6fd43f86daccd6b6c63636 /quickbutton
parenta08a99586be160a9363dffe5a1c648d7a38b3702 (diff)
add multi epg to quickbutton options
Diffstat (limited to 'quickbutton')
-rw-r--r--quickbutton/src/plugin.py34
1 files changed, 21 insertions, 13 deletions
diff --git a/quickbutton/src/plugin.py b/quickbutton/src/plugin.py
index 5c1cc78..d29091e 100644
--- a/quickbutton/src/plugin.py
+++ b/quickbutton/src/plugin.py
@@ -118,11 +118,16 @@ def startPlugin(self,pname):
msgText = _("Unknown Error")
no_plugin = True
if pname != _("Nothing"):
- if pname == _("EPG List"):
- from Screens.InfoBarGenerics import InfoBarEPG
+ if pname == _("Single EPG"):
+ from Screens.InfoBarGenerics import InfoBarEPG
if isinstance(self, InfoBarEPG):
self.openSingleServiceEPG()
no_plugin = False
+ elif pname == _("Multi EPG"):
+ from Screens.InfoBarGenerics import InfoBarEPG
+ if isinstance(self, InfoBarEPG):
+ self.openMultiServiceEPG()
+ no_plugin = False
elif pname == _("MediaPlayer"):
try: # falls es nicht installiert ist
from Plugins.Extensions.MediaPlayer.plugin import MediaPlayer
@@ -188,13 +193,14 @@ class QuickbuttonSetup(ConfigListScreen, Screen):
blue_selectedindex = self.getStaticPluginName(config.plugins.Quickbutton.blue.value)
# feste Vorgaben...koennte man noch erweitern, da hole ich mir sinnvolle Vorschlaege aus Foren noch ein...
self.entryguilist.append(("0",_("Nothing")))
- self.entryguilist.append(("1",_("EPG List")))
- self.entryguilist.append(("2",_("MediaPlayer")))
- self.entryguilist.append(("3",_("Plugin browser")))
- self.entryguilist.append(("4",_("switch 4:3 content display")))
- self.entryguilist.append(("5",_("Timer")))
+ self.entryguilist.append(("1",_("Single EPG")))
+ self.entryguilist.append(("2",_("Multi EPG")))
+ self.entryguilist.append(("3",_("MediaPlayer")))
+ self.entryguilist.append(("4",_("Plugin browser")))
+ self.entryguilist.append(("5",_("switch 4:3 content display")))
+ self.entryguilist.append(("6",_("Timer")))
# Vorgaben aus EXTENSIONSMENU, PLUGINMENU
- index = 6
+ index = 7
for p in plugins.getPlugins(where = [PluginDescriptor.WHERE_EXTENSIONSMENU, PluginDescriptor.WHERE_PLUGINMENU]):
self.entryguilist.append((str(index),str(p.name)))
if config.plugins.Quickbutton.red.value == str(p.name):
@@ -232,16 +238,18 @@ class QuickbuttonSetup(ConfigListScreen, Screen):
}, -2)
def getStaticPluginName(self,value):
- if value == _("EPG List"):
+ if value == _("Single EPG"):
return "1"
- elif value == _("MediaPlayer"):
+ elif value == _("Multi EPG"):
return "2"
- elif value == _("Plugin browser"):
+ elif value == _("MediaPlayer"):
return "3"
- elif value == _("switch 4:3 content display"):
+ elif value == _("Plugin browser"):
return "4"
- if value == _("Timer"):
+ elif value == _("switch 4:3 content display"):
return "5"
+ if value == _("Timer"):
+ return "6"
else:
return "0"