<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>
+ <item text="Networksetup">self.openSetup("network")</item>
</menu>
<item text="Common Interface"></item>
<item text="Parental Control">self.openSetup("parental")</item>
<item text="AC3 default">config.av.defaultac3</item>
<item text="VCR Switch">config.av.vcrswitch</item>
</setup>
+ <setup key="network" title="Networksetup">
+ <item text="IP Address">config.network.ip</item>
+ </setup>
<setup key="rfmod" title="UHF Modulator">
<item text="Modulator">config.rfmod.enable</item>
<item text="Testmode">config.rfmod.test</item>
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 VariableIP.py IPAddress.py IPNameserver.py IPGateway.py
+ AVSwitch.py VariableIP.py IPAddress.py IPNameserver.py IPGateway.py Network.py
"ServiceName", "ServiceScan", "VariableText", "VariableValue", "VolumeBar",
"components", "config", "TimerList", "TimeInput", "MovieList",
"InputDevice", "ServicePosition", "IPAddress", "VariableIP", "IPGateway",
- "IPNameserver" ]
+ "IPNameserver", "Network" ]
def __call__(self): #needed by configlist
self.checkValues()
return ("text", self.parent.vals[self.parent.value])
+
+class configSequence:
+ def __init__(self, parent):
+ self.parent = parent
+
+ def checkValues(self):
+ pass
+# if self.parent.value < 0:
+# self.parent.value = 0
+#
+# if(self.parent.value >= (len(self.parent.vals) - 1)):
+# self.parent.value = len(self.parent.vals) - 1
+#
+ def cancel(self):
+ self.parent.reload()
+
+ def save(self):
+ self.parent.save()
+
+ def handleKey(self, key):
+ if key == config.prevElement:
+ self.parent.value = self.parent.value - 1
+ if key == config.nextElement:
+ self.parent.value = self.parent.value + 1
+
+ self.checkValues()
+
+ self.parent.change()
+
+ def __call__(self): #needed by configlist
+ value = ""
+ for i in self.parent.value:
+ if (value != ""):
+ value += self.parent.vals[0]
+ value += str(i)
+ return ("text", value)
class configValue:
def __init__(self, obj):
import Components.AVSwitch
Components.AVSwitch.InitAVSwitch()
+import Components.Network
+Components.Network.InitNetwork()
+
import Components.SetupDevices
Components.SetupDevices.InitSetupDevices()