network setup stuff
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 2 Sep 2005 02:07:23 +0000 (02:07 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 2 Sep 2005 02:07:23 +0000 (02:07 +0000)
data/menu.xml
data/skin.xml
lib/python/Components/IPAddress.py [new file with mode: 0644]
lib/python/Components/IPGateway.py [new file with mode: 0644]
lib/python/Components/IPNameserver.py [new file with mode: 0644]
lib/python/Components/Makefile.am
lib/python/Components/VariableIP.py [new file with mode: 0644]
lib/python/Components/__init__.py
lib/python/Screens/Network.py

index d08d016..0fa83db 100644 (file)
@@ -23,6 +23,7 @@
                                <item text="Keyboard">self.openSetup("keyboard")</item>
                                <item text="OSD">self.openSetup("osd")</item>
                                <item text="LCD">self.openSetup("lcd")</item>
                                <item text="Keyboard">self.openSetup("keyboard")</item>
                                <item text="OSD">self.openSetup("osd")</item>
                                <item text="LCD">self.openSetup("lcd")</item>
+                               <item text="Networksetup">self.openDialog(Network)</item>
                        </menu>
                        <item text="Common Interface"></item>
                        <item text="Parental Control">self.openSetup("parental")</item>
                        </menu>
                        <item text="Common Interface"></item>
                        <item text="Parental Control">self.openSetup("parental")</item>
index c62734a..af871ce 100644 (file)
                        <widget name="hddA" position="10,170" size="420,20"/>
                </screen>
                <screen name="Network" position="140,125" size="360,200" title="Network">
                        <widget name="hddA" position="10,170" size="420,20"/>
                </screen>
                <screen name="Network" position="140,125" size="360,200" title="Network">
-                       <widget name="text" position="10,30" size="420,40" font="Arial;20"/>
-                       <widget name="tuner" position="10,80" size="420,20"/>
-                       <widget name="tunerA" position="10,100" size="420,20"/>
-                       <widget name="tunerB" position="10,120" size="420,20"/>
-                       <widget name="hdd" position="10,150" size="420,20"/>
-                       <widget name="hddA" position="10,170" size="420,20"/>
+                       <widget name="textip" position="10,30" size="150,20" font="Arial;18"/>
+                       <widget name="textgateway" position="10,50" size="150,20" font="Arial;18"/>
+                       <widget name="textnameserver" position="10,70" size="150,20" font="Arial;18"/>
+                       <widget name="ip" position="160,30" size="200,20" font="Arial;18"/>
+                       <widget name="gateway" position="160,50" size="200,20" font="Arial;18"/>
+                       <widget name="nameserver" position="160,70" size="200,20" font="Arial;18"/>
                </screen>
                <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
                        <widget name="okbutton" position="20,245" size="205,40" />
                </screen>
                <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
                        <widget name="okbutton" position="20,245" size="205,40" />
diff --git a/lib/python/Components/IPAddress.py b/lib/python/Components/IPAddress.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/python/Components/IPGateway.py b/lib/python/Components/IPGateway.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/python/Components/IPNameserver.py b/lib/python/Components/IPNameserver.py
new file mode 100644 (file)
index 0000000..e69de29
index 05b7c0d..546d3e1 100644 (file)
@@ -8,4 +8,4 @@ install_DATA = \
        EventInfo.py Label.py ServiceScan.py VolumeBar.py                       \
        GUIComponent.py MenuList.py TextInput.py __init__.py MovieList.py                               \
        InputDevice.py ServicePosition.py SetupDevices.py Harddisk.py                                           \
        EventInfo.py Label.py ServiceScan.py VolumeBar.py                       \
        GUIComponent.py MenuList.py TextInput.py __init__.py MovieList.py                               \
        InputDevice.py ServicePosition.py SetupDevices.py Harddisk.py                                           \
-       AVSwitch.py
+       AVSwitch.py VariableIP.py IPAddress.py IPNameserver.py IPGateway.py
diff --git a/lib/python/Components/VariableIP.py b/lib/python/Components/VariableIP.py
new file mode 100644 (file)
index 0000000..e69de29
index fb9eeaa..a6191e0 100644 (file)
@@ -4,5 +4,6 @@ __all__ = ["ActionMap", "Button", "Clock", "ConfigList", "EventInfo",
        "Label", "MenuList", "PerServiceDisplay", "ProgressBar", "ServiceList",
        "ServiceName", "ServiceScan", "VariableText", "VariableValue", "VolumeBar",
        "components", "config", "TimerList", "TimeInput", "MovieList", 
        "Label", "MenuList", "PerServiceDisplay", "ProgressBar", "ServiceList",
        "ServiceName", "ServiceScan", "VariableText", "VariableValue", "VolumeBar",
        "components", "config", "TimerList", "TimeInput", "MovieList", 
-       "InputDevice",  "ServicePosition" ]
+       "InputDevice",  "ServicePosition", "IPAddress", "VariableIP", "IPGateway",
+       "IPNameserver" ]
 
 
index b71ac32..e69de29 100644 (file)
@@ -1,23 +0,0 @@
-from Screen import Screen
-from Components.ActionMap import ActionMap
-from Components.Label import Label
-
-
-class Network(Screen):
-       def __init__(self, session):
-               Screen.__init__(self, session)
-               
-               self["text"] = Label("Enigma v2.0a")
-
-               self["tuner"] = Label("Detected NIMs:")
-               self["tunerA"] = Label("   Tuner A: Fujitsu QST (DVB-S)")
-               self["tunerB"] = Label("   Tuner B: Fujitsu QST (DVB-S)")
-
-               self["hdd"] = Label("Detected HDD:")
-               self["hddA"] = Label("   not found")
-
-               self["actions"] = ActionMap(["SetupActions"], 
-                       {
-                               "cancel": self.close,
-                               "ok": self.close,
-                       })