Esempio n. 1
0
	def keyOK(self):
		if self["config"].l.getCurrentSelection() == self.editListEntry:
			self.session.open(ParentalControlEditor)
		elif self["config"].l.getCurrentSelection() == self.editBouquetListEntry:
			self.session.open(ParentalControlBouquetEditor)
		elif self["config"].l.getCurrentSelection() == self.changePin:
			if config.ParentalControl.mode.value == "complex":
				pass
			else:
				self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN"))
		elif self["config"].l.getCurrentSelection() == self.changeSetupPin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup PIN"))
		elif self["config"].l.getCurrentSelection() == self.changeMoviePin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.moviepin, _("movie / directory PIN"))
		elif self["config"].l.getCurrentSelection() == self.resetMoviePinCache:
			if not parentalControlFolder.configInitialized:
				parentalControlFolder.getConfigValues()
			parentalControlFolder.resetSessionPin()
			self.keyCancel()
		elif self["config"].l.getCurrentSelection() == self.changeDeletePin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.deletepin, _("movie-delete PIN"))
		elif self["config"].l.getCurrentSelection() == self.resetDeletePinCache:
			if not parentalControlFolder.configInitialized:
				parentalControlFolder.getConfigValues()
			parentalControlFolder.resetSessionDeletePin()
			self.keyCancel()
		elif self["config"].l.getCurrentSelection() == self.reloadLists:
			from Components.ParentalControl import parentalControl
			parentalControl.open()
		else:
			ConfigListScreen.keyRight(self)
			self.createSetup()
Esempio n. 2
0
 def keyRight(self):
     current = self["config"].getCurrent()
     if current == self.splitEntry or current == self.color_spaceEntry:
         ConfigListScreen.keyRight(self)
     elif (current == self.scaler_vertical_dejaggingEntry) or (current == self.smoothEntry):
         ConfigListScreen.keyRight(self)
     elif current != self.splitEntry and current in self.xtdlist:
         self.previewlist = [current, self.splitEntry]
         maxvalue = current[1].max
         self.session.openWithCallback(
             self.PreviewClosed,
             VideoEnhancementPreview,
             configEntry=self.previewlist,
             oldSplitMode=config.pep.split.value,
             maxValue=maxvalue,
         )
     else:
         self.previewlist = [current]
         maxvalue = current[1].max
         self.session.openWithCallback(
             self.PreviewClosed,
             VideoEnhancementPreview,
             configEntry=self.previewlist,
             oldSplitMode=None,
             maxValue=maxvalue,
         )
	def keyRight(self):
		cur = self["config"].getCurrent()
		cur = cur and cur[1]
		if cur == self.tags:
			self.chooseTags()
		else:
			ConfigListScreen.keyRight(self)
Esempio n. 4
0
	def keyRight(self):
		printl("", self, "S")
		
		ConfigListScreen.keyRight(self)
		self.createSetup()
		
		printl("", self, "C")
Esempio n. 5
0
	def keyRight(self, config = False):
		if config or self.focus == FOCUS_CONFIG:
			if self["config"].getCurrentIndex() < 3:
				ConfigListScreen.keyRight(self)
			elif hasattr(self, "plugincallfunc"):
				self.plugincallfunc()
		if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False:
			self["streams"].setIndex(self["streams"].count()-1)
Esempio n. 6
0
	def keyRight(self):
		sel = self["config"].getCurrent()[1]
		if sel == self.positionEntry:
			self.percent += float(config.plugins.Seekbar.sensibility.value) / 10.0
			if self.percent > 100.0:
				self.percent = 100.0
		else:
			ConfigListScreen.keyRight(self)
Esempio n. 7
0
 def keyRight(self):
     sel = self["config"].getCurrent()[1]
     if sel == self.positionEntry:
         self.percent += float(config.AdvancedMovieSelection.sensibility.value) / 1.0
         if self.percent > 100.0:
             self.percent = 100.0
     else:
         ConfigListScreen.keyRight(self)
Esempio n. 8
0
	def keyRight(self):
		if self.rebootLock:
			return
		global fwlist
		if fwlist is None:
			return
		ConfigListScreen.keyRight(self)
		self.setupStatus()
Esempio n. 9
0
	def keyRight(self):
		if self.nim.isFBCLink() and self["config"].getCurrent() in (self.advancedLof, self.advancedConnected):
			return
		ConfigListScreen.keyRight(self)
		if self["config"].getCurrent() in (self.advancedSelectSatsEntry, self.selectSatsEntry):
			self.keyOk()
		else:
			self.newConfig()
Esempio n. 10
0
	def keyRight(self):
		if isFBCLink(self.nim):
			checkList = (self.advancedLof, self.advancedConnected)
			curEntry = self["config"].getCurrent()
			if curEntry in checkList:
				return

		ConfigListScreen.keyRight(self)
		self.newConfig()
Esempio n. 11
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].getCurrent()[1] == config.GOSsettings.opkg:
         if config.GOSsettings.opkg.value == "testing":
             self.session.open(MessageBox,_("WARNING: The probability of issues in 'testing' branch is high. It's NOT recommended for unexperienced users!\n\nReturning to release branch only through reinstallation!!!"),  MessageBox.TYPE_INFO)
         elif config.GOSsettings.opkg.value == "ready":
             self.session.open(MessageBox,_("WARNING: The probability of issues in 'ready' branch is small, but exists."),  MessageBox.TYPE_INFO)
     elif self["config"].getCurrent()[1] == config.GOSsettings.ModerateShutDown:
         self.runSetup()
Esempio n. 12
0
	def keyRight(self):
		cur = self["config"].getCurrent()
		if cur in (self.channelEntry, self.tagsSet):
			self.keySelect()
		elif cur in (self.entryName, self.entryDescription):
			self.renameEntry()
		else:
			ConfigListScreen.keyRight(self)
			self.newConfig()
	def modifyEntry(self):
		cur = self["config"].getCurrent()
		if isinstance(cur, tuple) and isinstance(cur[1], ConfigSet):
			preference_list = cur[1].getValue()
			category = cur[0]
			(available_choices, preference_tuplelist) = self.track_autoselect_config.getAvailableChoicesAndPreferenceTuplelist(category, preference_list)
			self.session.openWithCallback(boundFunction(self.preferencesSetCB, cur[1]), TrackAutoselectPreferenceListScreen, category, available_choices, preference_tuplelist)
		else:
			ConfigListScreen.keyRight(self)
Esempio n. 14
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     current = self["config"].getCurrent()[1]
     if current in [
                    config.plugins.archivCZSK.linkVerification,
                    config.plugins.archivCZSK.videoPlayer.type,
                    config.plugins.archivCZSK.videoPlayer.servicemp4,
                    config.plugins.archivCZSK.videoPlayer.servicemrua,
                    config.plugins.archivCZSK.videoPlayer.bufferMode]:
         self.buildMenu()
Esempio n. 15
0
	def keyRight(self):
		oldpwmvalue=config.plugins.manualfancontrols.pwmvalue.value
		ConfigListScreen.keyRight(self)
		if self["config"].getCurrent() == self.pwmEntry and oldpwmvalue == 0:
			self.createSetup()
			while self["config"].getCurrent() != self.pwmEntry:
				self["config"].setCurrentIndex(self["config"].getCurrentIndex()+1)
		else:
			self.displayCurrentValue()
		self.selectionChanged()
Esempio n. 16
0
	def keyOK(self):
		if self["config"].l.getCurrentSelection() == self.changePin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN"))
		elif self["config"].l.getCurrentSelection() == self.reloadLists:
			from Components.ParentalControl import parentalControl
			parentalControl.open()
			self.session.open(MessageBox, _("Lists reloaded!"), MessageBox.TYPE_INFO, timeout=3)
		else:
			ConfigListScreen.keyRight(self)
			self.createSetup()
Esempio n. 17
0
	def keyRight(self, config = False):
		if config or self.focus == FOCUS_CONFIG:
			if self["config"].getCurrentIndex() < 3:
				ConfigListScreen.keyRight(self)
			else:
				cur = self["config"].getCurrent() or None
				if cur and cur[0] in self.plugincallerdict:
					self.plugincallerdict[cur[0]]()
		if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False:
			self["streams"].setIndex(self["streams"].count()-1)
Esempio n. 18
0
 def keyRight(self, config = False):
     if config or self.focus == FOCUS_CONFIG:
         if self.settings.menupage.value == PAGE_AUDIO and self['config'].getCurrent()[2]:
             self['config'].getCurrent()[2]()
         elif self.settings.menupage.value == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0, 0, 0, 0):
             self.session.open(QuickSubtitlesConfigMenu, self.infobar)
         else:
             ConfigListScreen.keyRight(self)
     if self.focus == FOCUS_STREAMS and config == False:
         self.keyAudioSubtitle()
Esempio n. 19
0
	def keyRight(self):
		if isFBCLink(self.nim):
			checkList = (self.advancedLof, self.advancedConnected)
			curEntry = self["config"].getCurrent()
			if curEntry in checkList:
				return
		ConfigListScreen.keyRight(self)
		if self["config"].getCurrent() in (self.advancedSelectSatsEntry, self.selectSatsEntry):
			self.keyOk()
		else:
			self.newConfig()
Esempio n. 20
0
	def keyRight(self, config = False):
		if config or self.focus == FOCUS_CONFIG:
			if self["config"].getCurrentIndex() < 3:
				ConfigListScreen.keyRight(self)
			elif self["config"].getCurrentIndex() == 3:
				if self.settings.menupage.getValue() == PAGE_AUDIO and hasattr(self, "plugincallfunc"):
					self.plugincallfunc()
				elif self.settings.menupage.getValue() == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0,0,0,0):
					self.session.open(QuickSubtitlesConfigMenu, self.infobar)
		if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False:
			self["streams"].setIndex(self["streams"].count()-1)
Esempio n. 21
0
	def keyRight(self):
		current = self["config"].getCurrent()
		if current in (self.splitEntry, self.scaler_vertical_dejaggingEntry, self.smoothEntry):
			ConfigListScreen.keyRight(self)
		else:
			if current in self.xtdlist:
				self.previewlist = [current, self.splitEntry]
				oldsplitmode = config.pep.split.value
			else:
				self.previewlist = [current]
				oldsplitmode = None
			maxvalue = current[1].max
			self.session.openWithCallback(self.PreviewClosed, VideoEnhancementPreview, configEntry=self.previewlist, oldSplitMode=oldsplitmode, maxValue=maxvalue)
Esempio n. 22
0
	def keyRight(self):
		cur = self["config"].getCurrent()
		if cur and isFBCLink(self.nim.slot):
			checkList = (self.advancedLof, self.advancedConnected)
			if cur in checkList:
				return
		ConfigListScreen.keyRight(self)
		if cur in (self.advancedSelectSatsEntry, self.selectSatsEntry) and cur:
			self.keyOk()
		else:
			if cur == self.multiType and cur:
				self.saveAll()
			self.newConfig()
Esempio n. 23
0
	def keyOK(self):
		if self["config"].l.getCurrentSelection() == self.changePin:
			if config.ParentalControl.servicepin[0].value:
				self.session.openWithCallback(self.oldPinEntered, PinInput, pinList=[x.value for x in config.ParentalControl.servicepin], triesEntry=config.ParentalControl.retries.servicepin, title=_("Please enter the old PIN code"), windowTitle=_("Enter pin code"))
			else:
				self.oldPinEntered(True)
		elif self["config"].l.getCurrentSelection() == self.reloadLists:
			from Components.ParentalControl import parentalControl
			parentalControl.open()
			self.session.open(MessageBox, _("Lists reloaded!"), MessageBox.TYPE_INFO, timeout=3)
		else:
			ConfigListScreen.keyRight(self)
			self.createSetup()
Esempio n. 24
0
 def keyRight(self):
     current = self['config'].getCurrent()
     if current == self.splitEntry:
         ConfigListScreen.keyRight(self)
     elif current != self.splitEntry and current in self.xtdlist:
         self.previewlist = [
             current,
             self.splitEntry]
         maxvalue = current[1].max
         self.session.openWithCallback(self.PreviewClosed, videoSettingsPreview, configEntry = self.previewlist, oldSplitMode = config.vset.split.value, maxValue = maxvalue)
     else:
         self.previewlist = [
             current]
         maxvalue = current[1].max
         self.session.openWithCallback(self.PreviewClosed, videoSettingsPreview, configEntry = self.previewlist, oldSplitMode = None, maxValue = maxvalue)
Esempio n. 25
0
	def keyOK(self):
		print "self[\"config\"].l.getCurrentSelection()", self["config"].l.getCurrentSelection()
		if self["config"].l.getCurrentSelection() == self.editListEntry:
			self.session.open(ParentalControlEditor)
		elif self["config"].l.getCurrentSelection() == self.changePin:
			if config.ParentalControl.mode.value == "complex":
				pass
			else:
				self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service pin"))
		elif self["config"].l.getCurrentSelection() == self.changeSetupPin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup pin"))
		else:
			ConfigListScreen.keyRight(self)
			print "current selection:", self["config"].l.getCurrentSelection()
			self.createSetup()
Esempio n. 26
0
	def keyRight(self, config = False):
		#add by mpiero
		if config or self.focus == FOCUS_CONFIG:
			if self.nummplugin!=None and self.nummplugin==self["config"].getCurrentIndex() and self.settings.menupage.getValue() == PAGE_AUDIO and hasattr(self, "plugincallfunc"):
				try:
					self.plugincallfunc()
				except:
					pass
			elif self["config"].getCurrentIndex() == 0 and self.settings.menupage.getValue() == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0,0,0,0):
				self.session.open(QuickSubtitlesConfigMenu, self.infobar)
			else:
				ConfigListScreen.keyRight(self)

		if self.focus == FOCUS_STREAMS and config == False:
			self.keyAudioSubtitle()
Esempio n. 27
0
	def keyRight(self, config = False):
		if config or self.focus == FOCUS_CONFIG:
			if self["config"].getCurrentIndex() < 3:
				ConfigListScreen.keyRight(self)
			elif self["config"].getCurrentIndex() == 3:
				if self.settings.menupage.getValue() == PAGE_AUDIO and hasattr(self, "plugincallfunc"):
					if len(self.Plugins) > 1:
						def runPluginAction(choice):
							if choice:
								choice[1]()
						self.session.openWithCallback(runPluginAction, ChoiceBox, title=_("Audio plugins"), list=self.plugincallfunc)
					else:
						self.plugincallfunc()
				elif self.settings.menupage.getValue() == PAGE_SUBTITLES and self.infobar.selected_subtitle and self.infobar.selected_subtitle != (0,0,0,0):
					self.session.open(QuickSubtitlesConfigMenu, self.infobar)
		if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False:
			self["streams"].setIndex(self["streams"].count()-1)
Esempio n. 28
0
	def keyRight(self, config = False):
		if config or self.focus == FOCUS_CONFIG:
			list_length = 4
			if SystemInfo["Can3DSurround"]:
				list_length += 1
			if SystemInfo["CanSpeakerPosition"]:
				list_length += 1
			if SystemInfo["CanDownmixAAC"]:
				list_length += 1
			if SystemInfo["CanAVL"]:
				list_length += 1
			if SystemInfo["CanMultiChannelPCM"]:
				list_length += 1
			if self["config"].getCurrentIndex() < list_length:
				ConfigListScreen.keyRight(self)
			elif hasattr(self, "plugincallfunc"):
				self.plugincallfunc()
		if self.focus == FOCUS_STREAMS and self["streams"].count() and config == False:
			self["streams"].setIndex(self["streams"].count()-1)
Esempio n. 29
0
	def keyOK(self):
		if self["config"].l.getCurrentSelection() == self.editListEntry:
			self.session.open(ParentalControlEditor)
		elif self["config"].l.getCurrentSelection() == self.editBouquetListEntry:
			self.session.open(ParentalControlBouquetEditor)
		elif self["config"].l.getCurrentSelection() == self.changePin:
			if config.ParentalControl.mode.value == "complex":
				pass
			else:
				self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN"))
		elif self["config"].l.getCurrentSelection() == self.changeSetupPin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup PIN"))
		elif self["config"].l.getCurrentSelection() == self.reloadLists:
			from Components.ParentalControl import parentalControl
			parentalControl.open()
			self.session.open(MessageBox, _("Lists reloaded!"), MessageBox.TYPE_INFO, timeout=3)
		else:
			ConfigListScreen.keyRight(self)
			self.createSetup()
Esempio n. 30
0
	def keyOK(self):
		print "self[\"config\"].l.getCurrentSelection()", self["config"].l.getCurrentSelection()
		if self["config"].l.getCurrentSelection() == self.editListEntry:
			self.session.open(ParentalControlEditor)
		elif self["config"].l.getCurrentSelection() == self.editBouquetListEntry:
			self.session.open(ParentalControlBouquetEditor)
		elif self["config"].l.getCurrentSelection() == self.changePin:
			if config.ParentalControl.mode.getValue() == "complex":
				pass
			else:
				self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("service PIN"))
		elif self["config"].l.getCurrentSelection() == self.changeSetupPin:
			self.session.open(ParentalControlChangePin, config.ParentalControl.setuppin, _("setup PIN"))
		elif self["config"].l.getCurrentSelection() == self.reloadLists:
			from Components.ParentalControl import parentalControl
			parentalControl.open()
		else:
			ConfigListScreen.keyRight(self)
			print "current selection:", self["config"].l.getCurrentSelection()
			self.createSetup()
Esempio n. 31
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].getCurrent() == self.server_entry:
         self.createSetup()
     self.selectionChanged()
Esempio n. 32
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.changeSubOptions()
Esempio n. 33
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.runSetup()
Esempio n. 34
0
 def keyRight(self):
     if self.index == 0:
         return
     ConfigListScreen.keyRight(self)
     self.createMenu()
Esempio n. 35
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.mylist()
Esempio n. 36
0
File: ui.py Progetto: ims21/MemInfo
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].getCurrent()[1] == cfg.enable:
         self.runSetup()
Esempio n. 37
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self.encoder is not None and (self["config"].getCurrent(
     ) == self.encoder) or self.automode is not None and (
             self["config"].getCurrent() == self.automode):
         self.createSetup()
Esempio n. 38
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self.step == 3:
         self.setPreviewPosition()
Esempio n. 39
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
Esempio n. 40
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.ShowPicture()
Esempio n. 41
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.createSetup()
Esempio n. 42
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.setupChanged()
Esempio n. 43
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.previewSkin()
Esempio n. 44
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.handleKeysLeftAndRight()
Esempio n. 45
0
	def keyRight(self):
		ConfigListScreen.keyRight(self)
		self.setupList()
Esempio n. 46
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.setPreviewSettings()
Esempio n. 47
0
	def keyRight(self):
		if self["config"].getCurrent() in (self.channelEntry, self.tagsSet):
			self.keySelect()
		else:
			ConfigListScreen.keyRight(self)
			self.newConfig()
Esempio n. 48
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].getCurrent(
     )[1] == config.plugins.autoresolution.enable:
         self.createSetup()
Esempio n. 49
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].getCurrent()[1] == config.plugins.tvcharts.enabled:
         self.createSetup()
Esempio n. 50
0
	def keyRight(self):
		ConfigListScreen.keyRight(self)
		self._onKeyChange()
Esempio n. 51
0
 def keyRight(self):
     if self.isStepSlider is True:
         self["config"].getCurrent(
         )[1].increment = config.pep.configsteps.value
     ConfigListScreen.keyRight(self)
Esempio n. 52
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.changedEntry()
Esempio n. 53
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].getCurrent() == self.hdmienabled:
         self.createSetup()
     if self["config"].getCurrent() == self.hdmiavinput:
         self.createSetup()
Esempio n. 54
0
	def keyRight(self):
		ConfigListScreen.keyRight(self)
		self.setCurrentValue()
Esempio n. 55
0
 def keyRight(self):
     if is_process_running(self.browser_name) == False:
         ConfigListScreen.keyRight(self)
         alpha_value = self.alpha.value
Esempio n. 56
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     self.keyRightLeftActions()
Esempio n. 57
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     if self["config"].l.getCurrentSelection() == self.changePin:
         pass
     else:
         self.createSetup()
Esempio n. 58
0
 def keyRight(self):
     ConfigListScreen.keyRight(self)
     key = self.keydict[self["config"].getCurrent()[1]]
     if key == "authormode" or key == "output" or key == "titlesetmode":
         self.initConfigList()
Esempio n. 59
0
	def keyRight(self):
		ConfigListScreen.keyRight(self)
		self.newConfig()
	def keyRight(self):
		ConfigListScreen.keyRight(self)
		self.setPreviewPosition()