beautify the ok, cancel and initialize buttons
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 2 Jan 2006 16:05:20 +0000 (16:05 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 2 Jan 2006 16:05:20 +0000 (16:05 +0000)
data/cancel.png [new file with mode: 0644]
data/init.png [new file with mode: 0644]
data/ok.png [new file with mode: 0644]
data/skin.xml
lib/python/Plugins/update.py
lib/python/Screens/HarddiskSetup.py
lib/python/Screens/Setup.py
po/Makefile.am
po/de.po

diff --git a/data/cancel.png b/data/cancel.png
new file mode 100644 (file)
index 0000000..26482c3
Binary files /dev/null and b/data/cancel.png differ
diff --git a/data/init.png b/data/init.png
new file mode 100644 (file)
index 0000000..1b8cfe0
Binary files /dev/null and b/data/init.png differ
diff --git a/data/ok.png b/data/ok.png
new file mode 100644 (file)
index 0000000..e69de29
index 586df14b8030ebf1124c2554b2dab05219245d15..43cfe274c2ba22daa7cd73aa4b318eba43766d49 100644 (file)
                        <widget name="model" position="20,10" size="380,25" font="Regular;23"  />
                        <widget name="capacity" position="20,40" size="380,25" font="Regular;23"  />
                        <widget name="bus" position="20,70" size="380,25" font="Regular;23"  />
-                       <widget name="initialize" position="40,110" size="100,28" font="Regular;25" backgroundColor="red" />
+                       <widget name="initialize" position="40,110" size="90,30" zPosition="1" pixmap="/usr/share/enigma2/init.png" />
+                       <widget name="initializetext" position="40,110" size="90,30" valign="center" halign="center" zPosition="2" font="Regular;20" />
                </screen>
                <screen name="Setup" position="100,125" size="540,280" title="Setup">
                        <widget name="title" position="10,10" size="280,35" font="Regular;23" />
                        <widget name="config" position="10,50" size="520,175" scrollbarMode="showOnDemand" />
-                       <widget name="ok" position="140,240" size="38,20" font="Regular;20" backgroundColor="green" />
-                       <widget name="cancel" position="240,240" size="70,20" font="Regular;20" backgroundColor="red" />
+                       <widget name="ok" position="140,240" size="53,30" pixmap="/usr/share/enigma2/ok.png" />
+                       <widget name="oktext" position="140,240" size="53,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
+                       <widget name="cancel" position="240,240" size="80,30" pixmap="/usr/share/enigma2/cancel.png" />
+                       <widget name="canceltext" position="240,240" size="80,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
                </screen>
                <screen name="LanguageSelection" position="200,125" size="220,250" title="Language selection">
                        <widget name="list" position="10,0" size="190,240" scrollbarMode="showOnDemand" />
index c0c1ecb557a2010ad1b7a16b9a8ea608961a7198..b8ff6ec45fb542536d4c87c247b7c054bd3a983a 100644 (file)
@@ -28,7 +28,6 @@ class Example(Screen):
                self.session.openWithCallback(self.doUpdate, MessageBox, _("Do you want to update your Dreambox?\nAfter pressing OK, please wait!"))
                
        def doUpdate(self, val = False):
-               
                if val:
                        lines = os.popen("ipkg update && ipkg upgrade", "r").readlines()
                        string = ""
index 290d0bac8410765412f89805fcf736b004d99b25..582b5ba85b6d16129b6c91e783d69afd6ce26780 100644 (file)
@@ -3,6 +3,7 @@ from Components.ActionMap import ActionMap
 from Components.Harddisk import harddiskmanager                        #global harddiskmanager
 from Components.MenuList import MenuList
 from Components.Label import Label
+from Components.Pixmap import Pixmap
 from Screens.MessageBox import MessageBox
 from enigma import eTimer
 
@@ -28,7 +29,8 @@ class HarddiskSetup(Screen):
                self["model"] = Label(_("Model: ") + hdd.model())
                self["capacity"] = Label(_("Capacity: ") + hdd.capacity())
                self["bus"] = Label(_("Bus: ") + hdd.bus())
-               self["initialize"] = Label(_("Initialize"))
+               self["initialize"] = Pixmap()
+               self["initializetext"] = Label(_("Initialize"))
 
                self["actions"] = ActionMap(["OkCancelActions"],
                {
index d9fc08939470ca7bb6331233647ff099946af1c7..d6215afdad226e16c545cbe1691e9de5748d6b72 100644 (file)
@@ -4,6 +4,7 @@ from Components.config import config                            #global config instance
 from Components.config import configSelection
 from Components.ConfigList import ConfigList
 from Components.Label import Label
+from Components.Pixmap import Pixmap
 
 import xml.dom.minidom
 from xml.dom import EMPTY_NAMESPACE
@@ -105,9 +106,11 @@ class Setup(Screen):
 
                self["title"] = Label(_(myTitle));
 
-               self["ok"] = Label("OK")
-               self["cancel"] = Label("Cancel")
-
+               self["oktext"] = Label(_("OK"))
+               self["canceltext"] = Label(_("Cancel"))
+               self["ok"] = Pixmap()
+               self["cancel"] = Pixmap()
+               
                self["actions"] = NumberActionMap(["SetupActions"], 
                        {
                                "cancel": self.keyCancel,
index 25cefb8db163127aaf5abc4b3028601f1f1d6fc7..11c2d98b2d094b50299a047f7c455f353cbb0b9e 100644 (file)
@@ -33,6 +33,7 @@ enigma2.pot:
                        ../lib/python/Screens/EpgSelection.py \
                        ../lib/python/Screens/LanguageSelection.py \
                        ../lib/python/Screens/About.py \
+                       ../lib/python/Screens/Setup.py \
                        ../lib/python/Screens/HarddiskSetup.py \
                        ../lib/python/Screens/MovieSelection.py \
                        ../lib/python/Screens/InfoBar.py \
index d1dd94372ec2701e7625f5d140a8e14a418d3262..e44104de632ccf9afb77db60e2cb36cac5e46db5 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: tuxbox-enigma 0.0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-01-01 18:13+0100\n"
+"POT-Creation-Date: 2006-01-02 17:02+0100\n"
 "PO-Revision-Date: 2005-12-14 03:29+0100\n"
 "Last-Translator: Stefan Pluecken <stefan.pluecken@multimedia-labs.de>\n"
 "Language-Team: none\n"
@@ -19,7 +19,7 @@ msgstr ""
 "X-Poedit-Country: GERMANY\n"
 "X-Poedit-SourceCharset: iso-8859-15\n"
 
-#: ../lib/python/Screens/EventView.py:72
+#: ../lib/python/Screens/EventView.py:76
 #, python-format
 msgid "%d min"
 msgstr ""
@@ -29,7 +29,7 @@ msgstr ""
 msgid "%d.%B %Y"
 msgstr ""
 
-#: ../lib/python/Screens/About.py:25
+#: ../lib/python/Screens/About.py:26
 #, python-format
 msgid "%s (%s, %d MB free)"
 msgstr "%s (%s, %d MB frei)"
@@ -90,7 +90,7 @@ msgstr ""
 msgid "Add"
 msgstr "Hinzufügen"
 
-#: ../lib/python/Screens/EpgSelection.py:26
+#: ../lib/python/Screens/EpgSelection.py:20
 msgid "Add timer"
 msgstr "Timer setzen"
 
@@ -99,7 +99,7 @@ msgstr "Timer setzen"
 msgid "Advanced"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:258
+#: ../lib/python/Screens/ChannelSelection.py:249
 msgid "All"
 msgstr "Alle"
 
@@ -143,7 +143,7 @@ msgstr ""
 msgid "Bandwidth"
 msgstr "Bandbreite"
 
-#: ../lib/python/Screens/HarddiskSetup.py:30
+#: ../lib/python/Screens/HarddiskSetup.py:31
 msgid "Bus: "
 msgstr ""
 
@@ -155,7 +155,11 @@ msgstr ""
 msgid "Cable provider"
 msgstr "Kabelanbieter"
 
-#: ../lib/python/Screens/HarddiskSetup.py:29
+#: ../lib/python/Screens/Setup.py:110
+msgid "Cancel"
+msgstr "Abbruch"
+
+#: ../lib/python/Screens/HarddiskSetup.py:30
 msgid "Capacity: "
 msgstr "Kapazität: "
 
@@ -163,7 +167,7 @@ msgstr "Kapazität: "
 msgid "Channel"
 msgstr "Kanal"
 
-#: ../lib/python/Screens/ChannelSelection.py:67 ../data/
+#: ../lib/python/Screens/ChannelSelection.py:66 ../data/
 msgid "Channel Selection"
 msgstr "Kanalliste"
 
@@ -211,11 +215,11 @@ msgstr "Löschen fehlgeschlagen."
 msgid "Description"
 msgstr "Beschreibung"
 
-#: ../lib/python/Screens/About.py:22
+#: ../lib/python/Screens/About.py:23
 msgid "Detected HDD:"
 msgstr "Erkannte Festplatten"
 
-#: ../lib/python/Screens/About.py:14
+#: ../lib/python/Screens/About.py:15
 msgid "Detected NIMs:"
 msgstr "Erkannte Tuner:"
 
@@ -240,7 +244,7 @@ msgid "DiSEqC repeats"
 msgstr ""
 
 #: ../lib/python/Screens/ScanSetup.py:104
-#: ../lib/python/Screens/ScanSetup.py:377 ../lib/python/Components/Lcd.py:32
+#: ../lib/python/Screens/ScanSetup.py:377 ../lib/python/Components/Lcd.py:31
 #: ../lib/python/Components/SetupDevices.py:38
 #: ../lib/python/Components/SetupDevices.py:39
 #: ../lib/python/Components/SetupDevices.py:43
@@ -255,7 +259,7 @@ msgstr "Aus"
 msgid "Do you really want to delete this recording?"
 msgstr "Wollen Sie diese Aufnahme wirklich löschen?"
 
-#: ../lib/python/Screens/InfoBarGenerics.py:729
+#: ../lib/python/Screens/InfoBarGenerics.py:786
 msgid ""
 "Do you want to stop the current\n"
 "(instant) recording?"
@@ -271,7 +275,7 @@ msgstr ""
 "Möchten Sie Ihre Dreambox updaten?\n"
 "Nach dem Druck auf OK bitte warten!"
 
-#: ../lib/python/Screens/ChannelSelection.py:335
+#: ../lib/python/Screens/ChannelSelection.py:326
 msgid "E"
 msgstr "O"
 
@@ -286,7 +290,7 @@ msgid "East"
 msgstr "Ost"
 
 #: ../lib/python/Screens/ScanSetup.py:104
-#: ../lib/python/Screens/ScanSetup.py:377 ../lib/python/Components/Lcd.py:32
+#: ../lib/python/Screens/ScanSetup.py:377 ../lib/python/Components/Lcd.py:31
 #: ../lib/python/Components/SetupDevices.py:38
 #: ../lib/python/Components/SetupDevices.py:39
 #: ../lib/python/Components/SetupDevices.py:43
@@ -320,7 +324,7 @@ msgstr ""
 msgid "Fast DiSEqC"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:261
+#: ../lib/python/Screens/ChannelSelection.py:252
 msgid "Favourites"
 msgstr "Favoriten"
 
@@ -365,11 +369,11 @@ msgstr ""
 msgid "Init"
 msgstr ""
 
-#: ../lib/python/Screens/HarddiskSetup.py:31
+#: ../lib/python/Screens/HarddiskSetup.py:33
 msgid "Initialize"
 msgstr "Initialisieren"
 
-#: ../lib/python/Screens/HarddiskSetup.py:18
+#: ../lib/python/Screens/HarddiskSetup.py:19
 msgid "Initializing Harddisk..."
 msgstr "Initialisiere Festplatte..."
 
@@ -413,7 +417,7 @@ msgstr "Längengrad"
 msgid "Loopthrough to Socket A"
 msgstr "Verbunden mit Tuner A"
 
-#: ../lib/python/Screens/HarddiskSetup.py:28
+#: ../lib/python/Screens/HarddiskSetup.py:29
 msgid "Model: "
 msgstr "Modell:"
 
@@ -451,6 +455,10 @@ msgstr ""
 msgid "Netmask"
 msgstr "Netzmaske"
 
+#: ../lib/python/Screens/EpgSelection.py:30
+msgid "Next"
+msgstr ""
+
 #: ../lib/python/Components/NimManager.py:656
 #: ../lib/python/Components/NimManager.py:668
 #: ../lib/python/Components/NimManager.py:672
@@ -459,7 +467,7 @@ msgstr "Netzmaske"
 msgid "No"
 msgstr "Nein"
 
-#: ../lib/python/Screens/InfoBarGenerics.py:725
+#: ../lib/python/Screens/InfoBarGenerics.py:782
 msgid "No HDD found or HDD not initialized!"
 msgstr ""
 "Keine Festplatte gefunden oder\n"
@@ -486,17 +494,21 @@ msgstr "Nord"
 msgid "Nothing connected"
 msgstr "Nichts angeschlossen"
 
+#: ../lib/python/Screens/Setup.py:109
+msgid "OK"
+msgstr ""
+
 #: ../lib/python/Components/NimManager.py:655
 msgid "Off"
-msgstr ""
+msgstr "Auf"
 
 #: ../lib/python/Components/NimManager.py:655
 msgid "On"
-msgstr ""
+msgstr "An"
 
 #: ../lib/python/Components/NimManager.py:680
 msgid "One"
-msgstr ""
+msgstr "Eins"
 
 #: ../lib/python/Screens/InfoBar.py:36
 msgid "Play recorded movies..."
@@ -550,15 +562,19 @@ msgstr "Zum Starten der Suche OK drücken."
 msgid "Press OK to start the scan"
 msgstr "Zum Starten der Suche OK drücken."
 
-#: ../lib/python/Screens/ChannelSelection.py:260
+#: ../lib/python/Screens/EpgSelection.py:29
+msgid "Prev"
+msgstr ""
+
+#: ../lib/python/Screens/ChannelSelection.py:251
 msgid "Provider"
 msgstr "Provider"
 
-#: ../lib/python/Screens/ChannelSelection.py:325
+#: ../lib/python/Screens/ChannelSelection.py:316
 msgid "Providers"
 msgstr "Anbieter"
 
-#: ../lib/python/Screens/InfoBarGenerics.py:778
+#: ../lib/python/Screens/InfoBarGenerics.py:835
 msgid "Record"
 msgstr "Aufnahme"
 
@@ -571,7 +587,7 @@ msgstr "Zurücksetzen"
 msgid "Satellite"
 msgstr "Satellit"
 
-#: ../lib/python/Screens/ChannelSelection.py:259
+#: ../lib/python/Screens/ChannelSelection.py:250
 msgid "Satellites"
 msgstr "Satelliten"
 
@@ -588,7 +604,7 @@ msgstr "Kanal auswahlen, von dem aufgenommen werden soll"
 msgid "Sequence repeat"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:327
+#: ../lib/python/Screens/ChannelSelection.py:318
 msgid "Services"
 msgstr "Kanäle"
 
@@ -618,7 +634,7 @@ msgstr "Süd"
 msgid "Start"
 msgstr ""
 
-#: ../lib/python/Screens/InfoBarGenerics.py:731
+#: ../lib/python/Screens/InfoBarGenerics.py:788
 msgid "Start recording?"
 msgstr "Aufnahme beginnen?"
 
@@ -638,7 +654,7 @@ msgstr "Das Abspielen dieses Films beenden?"
 msgid "Stored position"
 msgstr ""
 
-#: ../lib/python/Screens/InfoBarGenerics.py:783 ../data/
+#: ../lib/python/Screens/InfoBarGenerics.py:840 ../data/
 msgid "Subservices"
 msgstr "Unterkanäle"
 
@@ -713,7 +729,7 @@ msgstr "Art der Suche"
 msgid "USALS"
 msgstr "USALS"
 
-#: ../lib/python/Screens/HarddiskSetup.py:47
+#: ../lib/python/Screens/HarddiskSetup.py:49
 msgid ""
 "Unable to initialize harddisk.\n"
 "Please refer to the user manual.\n"
@@ -731,7 +747,7 @@ msgstr ""
 msgid "Universal LNB"
 msgstr ""
 
-#: ../lib/python/Plugins/update.py:37
+#: ../lib/python/Plugins/update.py:36
 msgid "Updating finished. Here is the result:"
 msgstr "Aktualisierung beendet. Hier das Ergebnis:"
 
@@ -751,7 +767,7 @@ msgstr ""
 msgid "Voltage mode"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:333
+#: ../lib/python/Screens/ChannelSelection.py:324
 msgid "W"
 msgstr ""
 
@@ -781,36 +797,36 @@ msgstr "Ja"
 msgid "You cannot delete this!"
 msgstr "Sie können dies nicht löschen."
 
-#: ../lib/python/Screens/ChannelSelection.py:145
+#: ../lib/python/Screens/ChannelSelection.py:136
 msgid "[bouquet edit]"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:147
+#: ../lib/python/Screens/ChannelSelection.py:138
 msgid "[favourite edit]"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:224
+#: ../lib/python/Screens/ChannelSelection.py:215
 msgid "[move mode]"
 msgstr ""
 
-#: ../lib/python/Screens/ChannelSelection.py:60
+#: ../lib/python/Screens/ChannelSelection.py:59
 msgid "abort bouquet edit"
 msgstr "Bouqueteditieren abbrechen"
 
-#: ../lib/python/Screens/ChannelSelection.py:63
+#: ../lib/python/Screens/ChannelSelection.py:62
 msgid "abort favourites edit"
 msgstr "Favoriteneditor abbrechen"
 
-#: ../lib/python/Screens/ChannelSelection.py:40
+#: ../lib/python/Screens/ChannelSelection.py:39
 msgid "add service to bouquet"
 msgstr "Zu Bouquet hinzufügen"
 
-#: ../lib/python/Screens/ChannelSelection.py:42
+#: ../lib/python/Screens/ChannelSelection.py:41
 msgid "add service to favourites"
 msgstr "Kanal zu Favoriten hinzufügen"
 
 #: ../lib/python/Screens/MovieSelection.py:20
-#: ../lib/python/Screens/ChannelSelection.py:65
+#: ../lib/python/Screens/ChannelSelection.py:64
 msgid "back"
 msgstr "zurück"
 
@@ -830,7 +846,7 @@ msgstr "täglich"
 msgid "delete..."
 msgstr "löschen..."
 
-#: ../lib/python/Screens/ChannelSelection.py:56
+#: ../lib/python/Screens/ChannelSelection.py:55
 msgid "disable move mode"
 msgstr "Verschiebemodus ausschalten"
 
@@ -838,23 +854,23 @@ msgstr "Verschiebemodus ausschalten"
 msgid "empty/unknown"
 msgstr "leer/unbekannt"
 
-#: ../lib/python/Screens/ChannelSelection.py:52
+#: ../lib/python/Screens/ChannelSelection.py:51
 msgid "enable bouquet edit"
 msgstr "Bouqueteditieren anschalten"
 
-#: ../lib/python/Screens/ChannelSelection.py:54
+#: ../lib/python/Screens/ChannelSelection.py:53
 msgid "enable favourite edit"
 msgstr "Favoriteneditor anschalten"
 
-#: ../lib/python/Screens/ChannelSelection.py:49
+#: ../lib/python/Screens/ChannelSelection.py:48
 msgid "enable move mode"
 msgstr "Verschiebemodus aktivieren"
 
-#: ../lib/python/Screens/ChannelSelection.py:59
+#: ../lib/python/Screens/ChannelSelection.py:58
 msgid "end bouquet edit"
 msgstr "Bouqueteditieren beenden"
 
-#: ../lib/python/Screens/ChannelSelection.py:62
+#: ../lib/python/Screens/ChannelSelection.py:61
 msgid "end favourites edit"
 msgstr "Favoriteneditor beenden"
 
@@ -889,7 +905,7 @@ msgstr "nächster Kanal"
 msgid "no"
 msgstr "nein"
 
-#: ../lib/python/Screens/HarddiskSetup.py:61
+#: ../lib/python/Screens/HarddiskSetup.py:63
 msgid "no HDD found"
 msgstr "keine Festplatte gefunden"
 
@@ -897,7 +913,7 @@ msgstr "keine Festplatte gefunden"
 msgid "no module found"
 msgstr "Kein Modul gefunden"
 
-#: ../lib/python/Screens/About.py:27
+#: ../lib/python/Screens/About.py:28
 msgid "none"
 msgstr "keins"
 
@@ -921,7 +937,7 @@ msgstr "einmalig"
 msgid "previous channel"
 msgstr "vorheriger Kanal"
 
-#: ../lib/python/Screens/ChannelSelection.py:44
+#: ../lib/python/Screens/ChannelSelection.py:43
 msgid "remove service"
 msgstr "Kanal löschen"
 
@@ -975,7 +991,7 @@ msgstr "zeige EPG..."
 msgid "text"
 msgstr ""
 
-#: ../lib/python/Screens/EventView.py:56
+#: ../lib/python/Screens/EventView.py:60
 msgid "unknown service"
 msgstr "unbekannter Service"