From: Andreas Monzner Date: Tue, 24 Jan 2006 22:48:05 +0000 (+0000) Subject: bouquet +/- is now working in the channellist X-Git-Tag: 2.6.0~4300 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/18d75f10661cbd4b83b2deb49f56ee7c4c2435cf bouquet +/- is now working in the channellist --- diff --git a/data/keymap.xml b/data/keymap.xml index a737ab29..1e6fbd5a 100644 --- a/data/keymap.xml +++ b/data/keymap.xml @@ -195,6 +195,8 @@ + + diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 43cf66d7..4c8b2486 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -377,6 +377,8 @@ class ChannelSelectionBase(Screen): "showAllServices": self.showAllServices, "showProviders": self.showProviders, "showSatellites": self.showSatellites, + "nextBouquet": self.nextBouquet, + "prevBouquet": self.prevBouquet, "1": self.keyNumberGlobal, "2": self.keyNumberGlobal, "3": self.keyNumberGlobal, @@ -591,6 +593,23 @@ class ChannelSelectionBase(Screen): self.clearPath() self.enterPath(ref) + def changeBouquet(self, direction): + if not self.pathChangedDisabled: + if self.isBasePathEqual(self.bouquet_root): + self.pathUp() + if direction < 0: + self.moveUp() + else: + self.moveDown() + ref = self.getCurrentSelection() + self.enterPath(ref) + + def nextBouquet(self): + self.changeBouquet(+1) + + def prevBouquet(self): + self.changeBouquet(-1) + def showFavourites(self): if not self.pathChangedDisabled: if not self.preEnterPath(self.bouquet_rootstr):