From 3a3836240d87bc63d4865d56a49fb2113634308b Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 2 Sep 2005 02:07:23 +0000 Subject: [PATCH 1/1] network setup stuff --- data/menu.xml | 1 + data/skin.xml | 12 ++++++------ lib/python/Components/IPAddress.py | 0 lib/python/Components/IPGateway.py | 0 lib/python/Components/IPNameserver.py | 0 lib/python/Components/Makefile.am | 2 +- lib/python/Components/VariableIP.py | 0 lib/python/Components/__init__.py | 3 ++- lib/python/Screens/Network.py | 23 ----------------------- 9 files changed, 10 insertions(+), 31 deletions(-) create mode 100644 lib/python/Components/IPAddress.py create mode 100644 lib/python/Components/IPGateway.py create mode 100644 lib/python/Components/IPNameserver.py create mode 100644 lib/python/Components/VariableIP.py diff --git a/data/menu.xml b/data/menu.xml index d08d0166..0fa83dba 100644 --- a/data/menu.xml +++ b/data/menu.xml @@ -23,6 +23,7 @@ self.openSetup("keyboard") self.openSetup("osd") self.openSetup("lcd") + self.openDialog(Network) self.openSetup("parental") diff --git a/data/skin.xml b/data/skin.xml index c62734a4..af871ce6 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -60,12 +60,12 @@ - - - - - - + + + + + + diff --git a/lib/python/Components/IPAddress.py b/lib/python/Components/IPAddress.py new file mode 100644 index 00000000..e69de29b diff --git a/lib/python/Components/IPGateway.py b/lib/python/Components/IPGateway.py new file mode 100644 index 00000000..e69de29b diff --git a/lib/python/Components/IPNameserver.py b/lib/python/Components/IPNameserver.py new file mode 100644 index 00000000..e69de29b diff --git a/lib/python/Components/Makefile.am b/lib/python/Components/Makefile.am index 05b7c0d4..546d3e14 100644 --- a/lib/python/Components/Makefile.am +++ b/lib/python/Components/Makefile.am @@ -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 \ - 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 index 00000000..e69de29b diff --git a/lib/python/Components/__init__.py b/lib/python/Components/__init__.py index fb9eeaa4..a6191e04 100644 --- a/lib/python/Components/__init__.py +++ b/lib/python/Components/__init__.py @@ -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", - "InputDevice", "ServicePosition" ] + "InputDevice", "ServicePosition", "IPAddress", "VariableIP", "IPGateway", + "IPNameserver" ] diff --git a/lib/python/Screens/Network.py b/lib/python/Screens/Network.py index b71ac328..e69de29b 100644 --- a/lib/python/Screens/Network.py +++ b/lib/python/Screens/Network.py @@ -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, - }) -- 2.30.2