move xml2po.py to root folder
[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" async="yes">
22 self.checkInterface(self.selectedInterface)
23                         </code> 
24                 </step>
25
26                 <step id="nwconfig">
27                         <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
28                         <displaytext value="Configure interface" />
29                         <config screen="AdapterSetup" module="NetworkSetup" args="self.selectedInterface" type="ConfigList" />
30                         <code>
31 self.clearSelectedKeys()
32 self.selectKey("OK")
33 self.selectKey("UP")
34 self.selectKey("DOWN")
35 self.selectKey("LEFT")
36 self.selectKey("RIGHT")
37                         </code>
38                         <code pos="after" async="yes">
39 self.AdapterSetupEnd(self.selectedInterface)
40                         </code>                 
41                 </step>
42
43                 <step id="confdns" nextstep="checklanstatusend">
44                         <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
45                         <displaytext value="Configure nameservers" />
46                         <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
47                         <code>
48 self.clearSelectedKeys()
49 self.selectKey("OK")
50                         </code>
51                         <code pos="after" async="yes">
52 self.checkNetwork()
53                         </code> 
54                 </step>
55
56                 <step id="checklanstatusend" nextstep="end">
57                 <condition>
58 self.condition = (self.InterfaceState == True )
59                 </condition>
60                         <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
61                         <displaytext value="Please follow the instructions on the TV" />
62                         <code>
63 self.clearSelectedKeys()
64 self.selectKey("OK")
65                         </code>
66                         <code pos="after">
67 currStep = self.numSteps                                
68 self.wizard[currStep]["nextstep"] = None
69 self.markDone()
70 self.close()
71                         </code> 
72                 </step>
73
74                 <step id="checklanstatusend">
75                 <condition>
76 self.condition = (self.InterfaceState == False )
77                 </condition>
78                         <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
79                         <displaytext value="Please follow the instructions on the TV" />
80                         <code>
81 self.clearSelectedKeys()
82 self.selectKey("OK")
83 self.selectKey("UP")
84 self.selectKey("DOWN")
85                         </code>
86                         <list>
87                                 <listentry caption="Configure your network again" step="selectinterface" />
88                                 <listentry caption="Exit network wizard" step="end" />
89                         </list>
90                 </step>
91
92                 <step id="scanwlan" nextstep="wlanconfig">
93                 <condition>
94 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
95                 </condition>
96                         <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
97                         <displaytext value="Select wireless network" />
98                         <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
99                         <code>
100 self.clearSelectedKeys()
101 self.selectKey("OK")
102 self.selectKey("UP")
103 self.selectKey("DOWN")
104 self.selectKey("LEFT")
105 self.selectKey("RIGHT")
106                         </code>
107                 </step>
108
109                 <step id="scanwlan">
110                 <condition>
111 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
112                 </condition>
113                         <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." />
114                         <displaytext value="Please follow the instructions on the TV" />
115                         <list>
116                                 <listentry caption="Configure your wireless LAN again" step="scanwlan" />
117                                 <listentry caption="Configure your internal LAN" step="selectinterface" />
118                                 <listentry caption="Exit network wizard" step="end" />
119                         </list>
120                         <code>
121 self.clearSelectedKeys()
122 self.selectKey("OK")
123 self.selectKey("UP")
124 self.selectKey("DOWN")
125                         </code>
126                 </step>
127
128                 <step id="scanwlan">
129                 <condition>
130 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
131                 </condition>
132                         <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
133                         <displaytext value="Please follow the instructions on the TV" />
134                         <list>
135                                 <listentry caption="Configure your internal LAN" step="selectinterface" />
136                                 <listentry caption="Exit network wizard" step="end" />
137                         </list>
138                         <code>
139 self.clearSelectedKeys()
140 self.selectKey("OK")
141 self.selectKey("UP")
142 self.selectKey("DOWN")
143                         </code>
144                 </step>
145
146                 <step id="wlanconfig">
147                         <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
148                         <displaytext value="Configure interface" />
149                         <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap,self.WlanList)" type="ConfigList" />
150                         <code>
151 self.clearSelectedKeys()
152 self.selectKey("OK")
153 self.selectKey("UP")
154 self.selectKey("DOWN")
155 self.selectKey("LEFT")
156 self.selectKey("RIGHT")
157                         </code>
158                         <code pos="after" async="yes">
159 self.AdapterSetupEnd(self.selectedInterface)
160                         </code>                 
161                 </step>
162
163                 <step id="end">
164                         <text value="Thank you for using the wizard.\nPlease press OK to continue." />
165                         <code>
166 self.clearSelectedKeys()
167 self.selectKey("OK")
168                         </code>
169                 </step>
170 </wizard>
171
172