+ # for the skin: first try MediaPlayerSettings, then Setup, this allows individual skinning
+ self.skinName = ["PicturePlayerSetup", "Setup" ]
+ self.setup_title = _("Settings")
+ self.onChangedEntry = [ ]
+ self.session = session
+
+ self["actions"] = ActionMap(["SetupActions"],
+ {
+ "cancel": self.keyCancel,
+ "save": self.keySave,
+ "ok": self.keySave,
+ }, -2)
+
+ self["key_red"] = StaticText(_("Cancel"))
+ self["key_green"] = StaticText(_("OK"))
+
+ self.list = []
+ ConfigListScreen.__init__(self, self.list, session = self.session, on_change = self.changedEntry)
+ self.createSetup()
+ self.onLayoutFinish.append(self.layoutFinished)
+
+ def layoutFinished(self):
+ self.setTitle(self.setup_title)
+
+ def createSetup(self):
+ self.list = []
+ self.list.append(getConfigListEntry(_("Slideshow Interval (sec.)"), config.pic.slidetime))
+ self.list.append(getConfigListEntry(_("Scaling Mode"), config.pic.resize))
+ self.list.append(getConfigListEntry(_("Cache Thumbnails"), config.pic.cache))
+ self.list.append(getConfigListEntry(_("show Infoline"), config.pic.infoline))
+ self.list.append(getConfigListEntry(_("Frame size in full view"), config.pic.framesize))
+ self.list.append(getConfigListEntry(_("slide picture in loop"), config.pic.loop))
+ self.list.append(getConfigListEntry(_("backgroundcolor"), config.pic.bgcolor))
+ self.list.append(getConfigListEntry(_("textcolor"), config.pic.textcolor))
+ self["config"].list = self.list
+ self["config"].l.setList(self.list)