X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/2d546599e517470d6b790c5e8f3a59441394d2d5..ca13d7906607bb7be40e7695e36054b8b86c8529:/lib/python/Plugins/Extensions/DVDBurn/ProjectSettings.py
diff --git a/lib/python/Plugins/Extensions/DVDBurn/ProjectSettings.py b/lib/python/Plugins/Extensions/DVDBurn/ProjectSettings.py
old mode 100644
new mode 100755
index a8888da3..c4289cb0
--- a/lib/python/Plugins/Extensions/DVDBurn/ProjectSettings.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/ProjectSettings.py
@@ -14,12 +14,12 @@ from Components.config import config, getConfigListEntry
from Components.ConfigList import ConfigListScreen
class FileBrowser(Screen, HelpableScreen):
- skin = """
-
-
- """
+
def __init__(self, session, scope, configRef):
Screen.__init__(self, session)
+ # for the skin: first try FileBrowser_DVDBurn, then FileBrowser, this allows individual skinning
+ self.skinName = ["FileBrowser_DVDBurn", "FileBrowser" ]
+
HelpableScreen.__init__(self)
self.scope = scope
pattern = ""
@@ -52,11 +52,18 @@ class FileBrowser(Screen, HelpableScreen):
self.filelist = FileList(currDir, matchingPattern=pattern)
self["filelist"] = self.filelist
- self["FilelistActions"] = ActionMap(["OkCancelActions"],
+ self["FilelistActions"] = ActionMap(["SetupActions"],
{
+ "save": self.ok,
"ok": self.ok,
"cancel": self.exit
})
+ self["key_red"] = StaticText(_("Cancel"))
+ self["key_green"] = StaticText(_("OK"))
+ self.onLayoutFinish.append(self.layoutFinished)
+
+ def layoutFinished(self):
+ self.setTitle(_("DVD File Browser"))
def getDir(self, currentVal=None, defaultDir=None):
if currentVal:
@@ -81,17 +88,18 @@ class FileBrowser(Screen, HelpableScreen):
class ProjectSettings(Screen,ConfigListScreen):
skin = """
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
"""
def __init__(self, session, project = None):
@@ -126,6 +134,10 @@ class ProjectSettings(Screen,ConfigListScreen):
"cancel": self.cancel,
"ok": self.ok,
}, -2)
+ self.onLayoutFinish.append(self.layoutFinished)
+
+ def layoutFinished(self):
+ self.setTitle(_("Collection settings"))
def changedConfigList(self):
key = self.keydict[self["config"].getCurrent()[1]]
@@ -147,6 +159,7 @@ class ProjectSettings(Screen,ConfigListScreen):
self.list.append(getConfigListEntry(_("Menu")+' '+_("Title"), self.project.menutemplate.settings.titleformat))
self.list.append(getConfigListEntry(_("Menu")+' '+_("Subtitles"), self.project.menutemplate.settings.subtitleformat))
self.list.append(getConfigListEntry(_("Menu")+' '+_("background image"), self.project.menutemplate.settings.menubg))
+ self.list.append(getConfigListEntry(_("Menu")+' '+_("Language selection"), self.project.menutemplate.settings.menulang))
#self.list.append(getConfigListEntry(_("Menu")+' '+_("headline")+' '+_("color"), self.settings.color_headline))
#self.list.append(getConfigListEntry(_("Menu")+' '+_("text")+' '+_("color"), self.settings.color_button))
#self.list.append(getConfigListEntry(_("Menu")+' '+_("highlighted button")+' '+_("color"), self.settings.color_highlight))