X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FInfoBar.py;h=3481177f2dde2b73f8555bc10cce4ed26ec21152;hp=a15c7ac1b89b5597b0b314d6cf6f5fc55935d5e7;hb=7ff2c7908114488178ad574b23fcee718515f4fb;hpb=f16e3ef9d1cf770517a6b21cc80884ea845d7ed4 diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py old mode 100644 new mode 100755 index a15c7ac..3481177 --- a/lib/python/Screens/InfoBar.py +++ b/lib/python/Screens/InfoBar.py @@ -12,7 +12,7 @@ profile("LOAD:InfoBarGenerics") from Screens.InfoBarGenerics import InfoBarShowHide, \ InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarRdsDecoder, \ InfoBarEPG, InfoBarSeek, InfoBarInstantRecord, \ - InfoBarAudioSelection, InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, \ + InfoBarAudioSelection, InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, InfoBarUnhandledKey, \ InfoBarSubserviceSelection, InfoBarShowMovies, InfoBarTimeshift, \ InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView, \ InfoBarSummarySupport, InfoBarMoviePlayerSummarySupport, InfoBarTimeshiftState, InfoBarTeletextPlugin, InfoBarExtensions, \ @@ -29,7 +29,7 @@ from Screens.HelpMenu import HelpableScreen class InfoBar(InfoBarBase, InfoBarShowHide, InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG, InfoBarRdsDecoder, InfoBarInstantRecord, InfoBarAudioSelection, - HelpableScreen, InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, + HelpableScreen, InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, InfoBarUnhandledKey, InfoBarSubserviceSelection, InfoBarTimeshift, InfoBarSeek, InfoBarSummarySupport, InfoBarTimeshiftState, InfoBarTeletextPlugin, InfoBarExtensions, InfoBarPiP, InfoBarPlugins, InfoBarSubtitleSupport, InfoBarServiceErrorPopupSupport, InfoBarJobman, @@ -45,6 +45,8 @@ class InfoBar(InfoBarBase, InfoBarShowHide, "showMovies": (self.showMovies, _("Play recorded movies...")), "showRadio": (self.showRadio, _("Show the radio player...")), "showTv": (self.showTv, _("Show the tv player...")), + # ikseong action for subtitle hotkey + "showSubtitle":(self.showSubtitle, _("Show the Subtitle...")), }, prio=2) self.allowPiP = True @@ -52,7 +54,7 @@ class InfoBar(InfoBarBase, InfoBarShowHide, for x in HelpableScreen, \ InfoBarBase, InfoBarShowHide, \ InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarEPG, InfoBarRdsDecoder, \ - InfoBarInstantRecord, InfoBarAudioSelection, \ + InfoBarInstantRecord, InfoBarAudioSelection, InfoBarUnhandledKey, \ InfoBarAdditionalInfo, InfoBarNotifications, InfoBarDish, InfoBarSubserviceSelection, \ InfoBarTimeshift, InfoBarSeek, InfoBarSummarySupport, InfoBarTimeshiftState, \ InfoBarTeletextPlugin, InfoBarExtensions, InfoBarPiP, InfoBarSubtitleSupport, InfoBarJobman, \ @@ -123,6 +125,11 @@ class InfoBar(InfoBarBase, InfoBarShowHide, if service is not None: self.session.open(MoviePlayer, service) + # ikseong action for subtitle hotkey + def showSubtitle(self): + from Screens.Subtitles import Subtitles + self.session.open(Subtitles) + class MoviePlayer(InfoBarBase, InfoBarShowHide, \ InfoBarMenu, \ InfoBarSeek, InfoBarShowMovies, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, @@ -138,6 +145,8 @@ class MoviePlayer(InfoBarBase, InfoBarShowHide, \ self["actions"] = HelpableActionMap(self, "MoviePlayerActions", { + # ikseong action for subtitle hotkey + "showSubtitle":(self.showSubtitle, _("Show the Subtitle...")), "leavePlayer": (self.leavePlayer, _("leave movie player...")) }) @@ -241,3 +250,8 @@ class MoviePlayer(InfoBarBase, InfoBarShowHide, \ self.returning = False elif self.returning: self.close() + + # ikseong action for subtitle hotkey + def showSubtitle(self): + from Screens.Subtitles import Subtitles + self.session.open(Subtitles)