Dont show Nameserver Dialoque when dhcp is selected
[enigma2-plugins.git] / networkwizard / src / networkwizard.xml
1 <wizard>
2                 <step id="welcome" nextstep="selectinterface">
3                         <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress OK to start configuring your network" />
4                         <displaytext value="Network Wizard" />
5                         <code>
6 self.clearSelectedKeys()
7 self.selectKey("OK")
8                         </code>
9                 </step>
10
11                 <step id="selectinterface">
12                         <text value="Please select the network interface that you want to use for your internet connection.\n\nPlease press OK to continue." />
13                         <displaytext value="Select interface" />
14                         <list type="dynamic" source="listInterfaces" evaluation="InterfaceSelectionMade" onselect="InterfaceSelectionMoved" />
15                         <code>
16 self.clearSelectedKeys()
17 self.selectKey("OK")
18 self.selectKey("UP")
19 self.selectKey("DOWN")
20                         </code>
21                         <code pos="after">
22 self.checkInterface(self.selectedInterface)                         
23 self.currStep = self.getStepWithID(self.NextStep)
24                         </code> 
25                 </step>
26
27                 <step id="nwconfig">
28                         <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
29                         <displaytext value="Configure interface" />
30                         <config screen="AdapterSetup" module="NetworkSetup" args="self.selectedInterface" type="ConfigList" />
31                         <code>
32 self.clearSelectedKeys()
33 self.selectKey("OK")
34 self.selectKey("UP")
35 self.selectKey("DOWN")
36 self.selectKey("LEFT")
37 self.selectKey("RIGHT")
38                         </code>
39                         <code pos="after">
40 self.AdapterSetupEnd(self.selectedInterface)    
41 self.currStep = self.getStepWithID(self.NextStep)
42                         </code>                 
43                 </step>
44
45                 <step id="confdns" nextstep="checklanstatusend">
46                         <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
47                         <displaytext value="Configure nameservers" />
48                         <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
49                         <code>
50 self.clearSelectedKeys()
51 self.selectKey("OK")
52                         </code>
53                         <code pos="after">
54 self.checkNetwork()
55                         </code> 
56                 </step>
57
58                 <step id="checklanstatusend" nextstep="end">
59                 <condition>
60 self.condition = (self.InterfaceState == True )
61                 </condition>
62                         <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
63                         <displaytext value="Please follow the instructions on the TV" />
64                         <code>
65 self.clearSelectedKeys()
66 self.selectKey("OK")
67                         </code>
68                         <code pos="after">
69 currStep = self.numSteps                                
70 self.wizard[currStep]["nextstep"] = None
71 self.markDone()
72 self.close()
73                         </code> 
74                 </step>
75
76                 <step id="checklanstatusend">
77                 <condition>
78 self.condition = (self.InterfaceState == False )
79                 </condition>
80                         <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
81                         <displaytext value="Please follow the instructions on the TV" />
82                         <code>
83 self.clearSelectedKeys()
84 self.selectKey("OK")
85 self.selectKey("UP")
86 self.selectKey("DOWN")
87                         </code>
88                         <list>
89                                 <listentry caption="Configure your network again" step="selectinterface" />
90                                 <listentry caption="Exit wizard and configure later manually" step="end" />
91                         </list>
92                 </step>
93
94                 <step id="scanwlan" nextstep="nwconfig">
95                 <condition>
96 self.checkInterface(self.selectedInterface)                     
97 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
98                 </condition>
99                         <text value="Please select the wireless LAN network that you want to connect to.\n\nPlease press OK to continue." />
100                         <displaytext value="Select wireless network" />
101                         <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
102                         <code>
103 self.clearSelectedKeys()
104 self.selectKey("OK")
105 self.selectKey("UP")
106 self.selectKey("DOWN")
107 self.selectKey("LEFT")
108 self.selectKey("RIGHT")
109                         </code>
110                         <code pos="after">
111 self.saveAccessPoint(self.ap)
112                         </code>
113                 </step>
114
115                 <step id="scanwlan">
116                 <condition>
117 self.checkInterface(self.selectedInterface)                             
118 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
119                 </condition>
120                         <text value="Your wireless LAN internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
121                         <displaytext value="Please follow the instructions on the TV" />
122                         <list>
123                                 <listentry caption="Configure your wireless LAN again" step="scanwlan" />
124                                 <listentry caption="Configure your internal LAN" step="selectinterface" />
125                                 <listentry caption="Exit wizard and configure later manually" step="end" />
126                         </list>
127                         <code>
128 self.clearSelectedKeys()
129 self.selectKey("OK")
130 self.selectKey("UP")
131 self.selectKey("DOWN")
132                         </code>
133                 </step>
134
135                 <step id="scanwlan">
136                 <condition>
137 self.checkInterface(self.selectedInterface)                             
138 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
139                 </condition>
140                         <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
141                         <displaytext value="Please follow the instructions on the TV" />
142                         <list>
143                                 <listentry caption="Configure your internal LAN" step="selectinterface" />
144                                 <listentry caption="Exit wizard and configure later manually" step="end" />
145                         </list>
146                         <code>
147 self.clearSelectedKeys()
148 self.selectKey("OK")
149 self.selectKey("UP")
150 self.selectKey("DOWN")
151                         </code>
152                 </step>
153
154                 <step id="end">
155                         <text value="Thank you for using the wizard.\nPlease press OK to continue." />
156                         <code>
157 self.clearSelectedKeys()
158 self.selectKey("OK")
159                         </code>
160                 </step>
161 </wizard>
162
163