author | mickeyl <mickeyl> | 2003-10-04 00:30:57 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-04 00:30:57 (UTC) |
commit | e2716e3862915582d0ce48aaacc967f5b0cf6550 (patch) (unidiff) | |
tree | a27e94a9d813f843dcb26c22ee31f7ce21142109 | |
parent | 120b0fe68c1352ba03ad6e73d26bcbe8452ef6ed (diff) | |
download | opie-e2716e3862915582d0ce48aaacc967f5b0cf6550.zip opie-e2716e3862915582d0ce48aaacc967f5b0cf6550.tar.gz opie-e2716e3862915582d0ce48aaacc967f5b0cf6550.tar.bz2 |
perform autodetection only if no configuration exists or on demand
-rw-r--r-- | noncore/net/wellenreiter/gui/configbase.ui | 470 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 98 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.h | 6 |
3 files changed, 344 insertions, 230 deletions
diff --git a/noncore/net/wellenreiter/gui/configbase.ui b/noncore/net/wellenreiter/gui/configbase.ui index d7ab3bb..4fc8ea1 100644 --- a/noncore/net/wellenreiter/gui/configbase.ui +++ b/noncore/net/wellenreiter/gui/configbase.ui | |||
@@ -1,1241 +1,1317 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>WellenreiterConfigBase</class> | 2 | <class>WellenreiterConfigBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>WellenreiterConfigBase</cstring> | 7 | <cstring>WellenreiterConfigBase</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>303</width> | 14 | <width>286</width> |
15 | <height>287</height> | 15 | <height>345</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Wellenreiter II COnfiguration Dialog</string> | 20 | <string>Wellenreiter II COnfiguration Dialog</string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
27 | </property> | 27 | </property> |
28 | <grid> | 28 | <grid> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>2</number> | 31 | <number>2</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>3</number> | 35 | <number>3</number> |
36 | </property> | 36 | </property> |
37 | <widget row="0" column="0" > | 37 | <widget row="0" column="0" > |
38 | <class>QTabWidget</class> | 38 | <class>QTabWidget</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>tab</cstring> | 41 | <cstring>tab</cstring> |
42 | </property> | 42 | </property> |
43 | <property> | 43 | <property> |
44 | <name>layoutMargin</name> | 44 | <name>layoutMargin</name> |
45 | </property> | 45 | </property> |
46 | <property> | 46 | <property> |
47 | <name>layoutSpacing</name> | 47 | <name>layoutSpacing</name> |
48 | </property> | 48 | </property> |
49 | <widget> | 49 | <widget> |
50 | <class>QWidget</class> | 50 | <class>QWidget</class> |
51 | <property stdset="1"> | 51 | <property stdset="1"> |
52 | <name>name</name> | 52 | <name>name</name> |
53 | <cstring>tab</cstring> | 53 | <cstring>tab</cstring> |
54 | </property> | 54 | </property> |
55 | <attribute> | 55 | <attribute> |
56 | <name>title</name> | 56 | <name>title</name> |
57 | <string>Interface</string> | 57 | <string>Interface</string> |
58 | </attribute> | 58 | </attribute> |
59 | <grid> | 59 | <vbox> |
60 | <property stdset="1"> | 60 | <property stdset="1"> |
61 | <name>margin</name> | 61 | <name>margin</name> |
62 | <number>5</number> | 62 | <number>11</number> |
63 | </property> | 63 | </property> |
64 | <property stdset="1"> | 64 | <property stdset="1"> |
65 | <name>spacing</name> | 65 | <name>spacing</name> |
66 | <number>3</number> | 66 | <number>6</number> |
67 | </property> | 67 | </property> |
68 | <widget row="0" column="0" > | 68 | <widget> |
69 | <class>QLabel</class> | 69 | <class>QLayoutWidget</class> |
70 | <property stdset="1"> | ||
71 | <name>name</name> | ||
72 | <cstring>Layout7</cstring> | ||
73 | </property> | ||
74 | <grid> | ||
75 | <property stdset="1"> | ||
76 | <name>margin</name> | ||
77 | <number>0</number> | ||
78 | </property> | ||
79 | <property stdset="1"> | ||
80 | <name>spacing</name> | ||
81 | <number>6</number> | ||
82 | </property> | ||
83 | <widget row="1" column="1" > | ||
84 | <class>QComboBox</class> | ||
85 | <item> | ||
86 | <property> | ||
87 | <name>text</name> | ||
88 | <string><select></string> | ||
89 | </property> | ||
90 | </item> | ||
91 | <item> | ||
92 | <property> | ||
93 | <name>text</name> | ||
94 | <string>cisco</string> | ||
95 | </property> | ||
96 | </item> | ||
97 | <item> | ||
98 | <property> | ||
99 | <name>text</name> | ||
100 | <string>wlan-ng</string> | ||
101 | </property> | ||
102 | </item> | ||
103 | <item> | ||
104 | <property> | ||
105 | <name>text</name> | ||
106 | <string>hostap</string> | ||
107 | </property> | ||
108 | </item> | ||
109 | <item> | ||
110 | <property> | ||
111 | <name>text</name> | ||
112 | <string>orinoco</string> | ||
113 | </property> | ||
114 | </item> | ||
115 | <item> | ||
116 | <property> | ||
117 | <name>text</name> | ||
118 | <string><manual></string> | ||
119 | </property> | ||
120 | </item> | ||
121 | <item> | ||
122 | <property> | ||
123 | <name>text</name> | ||
124 | <string><file></string> | ||
125 | </property> | ||
126 | </item> | ||
127 | <property stdset="1"> | ||
128 | <name>name</name> | ||
129 | <cstring>deviceType</cstring> | ||
130 | </property> | ||
131 | <property stdset="1"> | ||
132 | <name>enabled</name> | ||
133 | <bool>true</bool> | ||
134 | </property> | ||
135 | <property stdset="1"> | ||
136 | <name>sizePolicy</name> | ||
137 | <sizepolicy> | ||
138 | <hsizetype>7</hsizetype> | ||
139 | <vsizetype>0</vsizetype> | ||
140 | </sizepolicy> | ||
141 | </property> | ||
142 | <property> | ||
143 | <name>whatsThis</name> | ||
144 | <string>Choose the type of driver used for sniffing.</string> | ||
145 | </property> | ||
146 | </widget> | ||
147 | <widget row="1" column="0" > | ||
148 | <class>QLabel</class> | ||
149 | <property stdset="1"> | ||
150 | <name>name</name> | ||
151 | <cstring>TextLabel2_3</cstring> | ||
152 | </property> | ||
153 | <property stdset="1"> | ||
154 | <name>enabled</name> | ||
155 | <bool>true</bool> | ||
156 | </property> | ||
157 | <property stdset="1"> | ||
158 | <name>text</name> | ||
159 | <string>Driver:</string> | ||
160 | </property> | ||
161 | </widget> | ||
162 | <widget row="0" column="1" > | ||
163 | <class>QComboBox</class> | ||
164 | <property stdset="1"> | ||
165 | <name>name</name> | ||
166 | <cstring>interfaceName</cstring> | ||
167 | </property> | ||
168 | <property stdset="1"> | ||
169 | <name>enabled</name> | ||
170 | <bool>true</bool> | ||
171 | </property> | ||
172 | <property stdset="1"> | ||
173 | <name>sizePolicy</name> | ||
174 | <sizepolicy> | ||
175 | <hsizetype>7</hsizetype> | ||
176 | <vsizetype>0</vsizetype> | ||
177 | </sizepolicy> | ||
178 | </property> | ||
179 | <property stdset="1"> | ||
180 | <name>editable</name> | ||
181 | <bool>false</bool> | ||
182 | </property> | ||
183 | <property> | ||
184 | <name>whatsThis</name> | ||
185 | <string>Choose the interface used for sniffing.</string> | ||
186 | </property> | ||
187 | </widget> | ||
188 | <widget row="0" column="0" > | ||
189 | <class>QLabel</class> | ||
190 | <property stdset="1"> | ||
191 | <name>name</name> | ||
192 | <cstring>TextLabel1_2</cstring> | ||
193 | </property> | ||
194 | <property stdset="1"> | ||
195 | <name>enabled</name> | ||
196 | <bool>true</bool> | ||
197 | </property> | ||
198 | <property stdset="1"> | ||
199 | <name>text</name> | ||
200 | <string>Name:</string> | ||
201 | </property> | ||
202 | </widget> | ||
203 | </grid> | ||
204 | </widget> | ||
205 | <widget> | ||
206 | <class>QLayoutWidget</class> | ||
70 | <property stdset="1"> | 207 | <property stdset="1"> |
71 | <name>name</name> | 208 | <name>name</name> |
72 | <cstring>TextLabel1_2</cstring> | 209 | <cstring>Layout5</cstring> |
73 | </property> | 210 | </property> |
211 | <hbox> | ||
212 | <property stdset="1"> | ||
213 | <name>margin</name> | ||
214 | <number>0</number> | ||
215 | </property> | ||
216 | <property stdset="1"> | ||
217 | <name>spacing</name> | ||
218 | <number>6</number> | ||
219 | </property> | ||
220 | <widget> | ||
221 | <class>QPushButton</class> | ||
222 | <property stdset="1"> | ||
223 | <name>name</name> | ||
224 | <cstring>autodetect</cstring> | ||
225 | </property> | ||
226 | <property stdset="1"> | ||
227 | <name>text</name> | ||
228 | <string>Perform Autodetection</string> | ||
229 | </property> | ||
230 | </widget> | ||
231 | </hbox> | ||
232 | </widget> | ||
233 | <widget> | ||
234 | <class>QCheckBox</class> | ||
74 | <property stdset="1"> | 235 | <property stdset="1"> |
75 | <name>enabled</name> | 236 | <name>name</name> |
76 | <bool>true</bool> | 237 | <cstring>prismHeader</cstring> |
77 | </property> | 238 | </property> |
78 | <property stdset="1"> | 239 | <property stdset="1"> |
79 | <name>text</name> | 240 | <name>text</name> |
80 | <string>Name:</string> | 241 | <string>Use additional PRISM header</string> |
81 | </property> | 242 | </property> |
82 | </widget> | 243 | </widget> |
83 | <widget row="1" column="0" > | 244 | <spacer> |
84 | <class>QLabel</class> | 245 | <property> |
85 | <property stdset="1"> | ||
86 | <name>name</name> | 246 | <name>name</name> |
87 | <cstring>TextLabel2_3</cstring> | 247 | <cstring>Spacer4</cstring> |
88 | </property> | 248 | </property> |
89 | <property stdset="1"> | 249 | <property stdset="1"> |
90 | <name>enabled</name> | 250 | <name>orientation</name> |
91 | <bool>true</bool> | 251 | <enum>Vertical</enum> |
92 | </property> | 252 | </property> |
93 | <property stdset="1"> | 253 | <property stdset="1"> |
94 | <name>text</name> | 254 | <name>sizeType</name> |
95 | <string>Driver:</string> | 255 | <enum>Expanding</enum> |
256 | </property> | ||
257 | <property> | ||
258 | <name>sizeHint</name> | ||
259 | <size> | ||
260 | <width>20</width> | ||
261 | <height>20</height> | ||
262 | </size> | ||
263 | </property> | ||
264 | </spacer> | ||
265 | <widget> | ||
266 | <class>QLayoutWidget</class> | ||
267 | <property stdset="1"> | ||
268 | <name>name</name> | ||
269 | <cstring>Layout6</cstring> | ||
96 | </property> | 270 | </property> |
271 | <hbox> | ||
272 | <property stdset="1"> | ||
273 | <name>margin</name> | ||
274 | <number>0</number> | ||
275 | </property> | ||
276 | <property stdset="1"> | ||
277 | <name>spacing</name> | ||
278 | <number>6</number> | ||
279 | </property> | ||
280 | <widget> | ||
281 | <class>QCheckBox</class> | ||
282 | <property stdset="1"> | ||
283 | <name>name</name> | ||
284 | <cstring>hopChannels</cstring> | ||
285 | </property> | ||
286 | <property stdset="1"> | ||
287 | <name>text</name> | ||
288 | <string>Hop Channels</string> | ||
289 | </property> | ||
290 | <property stdset="1"> | ||
291 | <name>checked</name> | ||
292 | <bool>true</bool> | ||
293 | </property> | ||
294 | </widget> | ||
295 | <widget> | ||
296 | <class>QLabel</class> | ||
297 | <property stdset="1"> | ||
298 | <name>name</name> | ||
299 | <cstring>TextLabel1</cstring> | ||
300 | </property> | ||
301 | <property stdset="1"> | ||
302 | <name>text</name> | ||
303 | <string>every</string> | ||
304 | </property> | ||
305 | </widget> | ||
306 | <widget> | ||
307 | <class>QSpinBox</class> | ||
308 | <property stdset="1"> | ||
309 | <name>name</name> | ||
310 | <cstring>hopInterval</cstring> | ||
311 | </property> | ||
312 | <property stdset="1"> | ||
313 | <name>enabled</name> | ||
314 | <bool>true</bool> | ||
315 | </property> | ||
316 | <property stdset="1"> | ||
317 | <name>suffix</name> | ||
318 | <string> ms</string> | ||
319 | </property> | ||
320 | <property stdset="1"> | ||
321 | <name>maxValue</name> | ||
322 | <number>2000</number> | ||
323 | </property> | ||
324 | <property stdset="1"> | ||
325 | <name>minValue</name> | ||
326 | <number>100</number> | ||
327 | </property> | ||
328 | <property stdset="1"> | ||
329 | <name>lineStep</name> | ||
330 | <number>100</number> | ||
331 | </property> | ||
332 | <property stdset="1"> | ||
333 | <name>value</name> | ||
334 | <number>1000</number> | ||
335 | </property> | ||
336 | <property> | ||
337 | <name>whatsThis</name> | ||
338 | <string>Choose the channel hop interval.</string> | ||
339 | </property> | ||
340 | </widget> | ||
341 | </hbox> | ||
97 | </widget> | 342 | </widget> |
98 | <widget row="2" column="0" rowspan="1" colspan="4" > | 343 | <widget> |
99 | <class>QCheckBox</class> | 344 | <class>QCheckBox</class> |
100 | <property stdset="1"> | 345 | <property stdset="1"> |
101 | <name>name</name> | 346 | <name>name</name> |
102 | <cstring>prismHeader</cstring> | 347 | <cstring>adaptiveHopping</cstring> |
348 | </property> | ||
349 | <property stdset="1"> | ||
350 | <name>enabled</name> | ||
351 | <bool>false</bool> | ||
103 | </property> | 352 | </property> |
104 | <property stdset="1"> | 353 | <property stdset="1"> |
105 | <name>text</name> | 354 | <name>text</name> |
106 | <string>Use additional PRISM header</string> | 355 | <string>Use Adaptive(TM) Hop Scheme</string> |
107 | </property> | 356 | </property> |
108 | </widget> | 357 | </widget> |
109 | <widget row="6" column="0" rowspan="1" colspan="4" > | 358 | <widget> |
110 | <class>QGroupBox</class> | 359 | <class>QGroupBox</class> |
111 | <property stdset="1"> | 360 | <property stdset="1"> |
112 | <name>name</name> | 361 | <name>name</name> |
113 | <cstring>GroupBox1</cstring> | 362 | <cstring>GroupBox1</cstring> |
114 | </property> | 363 | </property> |
115 | <property stdset="1"> | 364 | <property stdset="1"> |
116 | <name>enabled</name> | 365 | <name>enabled</name> |
117 | <bool>false</bool> | 366 | <bool>false</bool> |
118 | </property> | 367 | </property> |
119 | <property stdset="1"> | 368 | <property stdset="1"> |
120 | <name>title</name> | 369 | <name>title</name> |
121 | <string>Scan on channel</string> | 370 | <string>Scan on channel</string> |
122 | </property> | 371 | </property> |
123 | <property> | 372 | <property> |
124 | <name>layoutMargin</name> | 373 | <name>layoutMargin</name> |
125 | </property> | 374 | </property> |
126 | <property> | 375 | <property> |
127 | <name>layoutSpacing</name> | 376 | <name>layoutSpacing</name> |
128 | </property> | 377 | </property> |
129 | <grid> | 378 | <grid> |
130 | <property stdset="1"> | 379 | <property stdset="1"> |
131 | <name>margin</name> | 380 | <name>margin</name> |
132 | <number>4</number> | 381 | <number>4</number> |
133 | </property> | 382 | </property> |
134 | <property stdset="1"> | 383 | <property stdset="1"> |
135 | <name>spacing</name> | 384 | <name>spacing</name> |
136 | <number>2</number> | 385 | <number>2</number> |
137 | </property> | 386 | </property> |
138 | <widget row="1" column="1" > | 387 | <widget row="1" column="1" > |
139 | <class>QCheckBox</class> | 388 | <class>QCheckBox</class> |
140 | <property stdset="1"> | 389 | <property stdset="1"> |
141 | <name>name</name> | 390 | <name>name</name> |
142 | <cstring>channel6</cstring> | 391 | <cstring>channel6</cstring> |
143 | </property> | 392 | </property> |
144 | <property stdset="1"> | 393 | <property stdset="1"> |
145 | <name>text</name> | 394 | <name>text</name> |
146 | <string>6</string> | 395 | <string>6</string> |
147 | </property> | 396 | </property> |
148 | </widget> | 397 | </widget> |
149 | <widget row="1" column="3" > | 398 | <widget row="1" column="3" > |
150 | <class>QCheckBox</class> | 399 | <class>QCheckBox</class> |
151 | <property stdset="1"> | 400 | <property stdset="1"> |
152 | <name>name</name> | 401 | <name>name</name> |
153 | <cstring>channel8</cstring> | 402 | <cstring>channel8</cstring> |
154 | </property> | 403 | </property> |
155 | <property stdset="1"> | 404 | <property stdset="1"> |
156 | <name>text</name> | 405 | <name>text</name> |
157 | <string>8</string> | 406 | <string>8</string> |
158 | </property> | 407 | </property> |
159 | </widget> | 408 | </widget> |
160 | <widget row="0" column="2" > | 409 | <widget row="0" column="2" > |
161 | <class>QCheckBox</class> | 410 | <class>QCheckBox</class> |
162 | <property stdset="1"> | 411 | <property stdset="1"> |
163 | <name>name</name> | 412 | <name>name</name> |
164 | <cstring>channel2</cstring> | 413 | <cstring>channel2</cstring> |
165 | </property> | 414 | </property> |
166 | <property stdset="1"> | 415 | <property stdset="1"> |
167 | <name>text</name> | 416 | <name>text</name> |
168 | <string>2</string> | 417 | <string>2</string> |
169 | </property> | 418 | </property> |
170 | </widget> | 419 | </widget> |
171 | <widget row="1" column="4" > | 420 | <widget row="1" column="4" > |
172 | <class>QCheckBox</class> | 421 | <class>QCheckBox</class> |
173 | <property stdset="1"> | 422 | <property stdset="1"> |
174 | <name>name</name> | 423 | <name>name</name> |
175 | <cstring>channel9</cstring> | 424 | <cstring>channel9</cstring> |
176 | </property> | 425 | </property> |
177 | <property stdset="1"> | 426 | <property stdset="1"> |
178 | <name>text</name> | 427 | <name>text</name> |
179 | <string>9</string> | 428 | <string>9</string> |
180 | </property> | 429 | </property> |
181 | </widget> | 430 | </widget> |
182 | <widget row="0" column="1" > | 431 | <widget row="0" column="1" > |
183 | <class>QCheckBox</class> | 432 | <class>QCheckBox</class> |
184 | <property stdset="1"> | 433 | <property stdset="1"> |
185 | <name>name</name> | 434 | <name>name</name> |
186 | <cstring>channel1</cstring> | 435 | <cstring>channel1</cstring> |
187 | </property> | 436 | </property> |
188 | <property stdset="1"> | 437 | <property stdset="1"> |
189 | <name>text</name> | 438 | <name>text</name> |
190 | <string>1</string> | 439 | <string>1</string> |
191 | </property> | 440 | </property> |
192 | </widget> | 441 | </widget> |
193 | <widget row="0" column="0" > | 442 | <widget row="0" column="0" > |
194 | <class>QCheckBox</class> | 443 | <class>QCheckBox</class> |
195 | <property stdset="1"> | 444 | <property stdset="1"> |
196 | <name>name</name> | 445 | <name>name</name> |
197 | <cstring>channelAll</cstring> | 446 | <cstring>channelAll</cstring> |
198 | </property> | 447 | </property> |
199 | <property stdset="1"> | 448 | <property stdset="1"> |
200 | <name>text</name> | 449 | <name>text</name> |
201 | <string>All</string> | 450 | <string>All</string> |
202 | </property> | 451 | </property> |
203 | </widget> | 452 | </widget> |
204 | <widget row="2" column="1" > | 453 | <widget row="2" column="1" > |
205 | <class>QCheckBox</class> | 454 | <class>QCheckBox</class> |
206 | <property stdset="1"> | 455 | <property stdset="1"> |
207 | <name>name</name> | 456 | <name>name</name> |
208 | <cstring>channel11</cstring> | 457 | <cstring>channel11</cstring> |
209 | </property> | 458 | </property> |
210 | <property stdset="1"> | 459 | <property stdset="1"> |
211 | <name>text</name> | 460 | <name>text</name> |
212 | <string>11</string> | 461 | <string>11</string> |
213 | </property> | 462 | </property> |
214 | </widget> | 463 | </widget> |
215 | <widget row="2" column="0" > | 464 | <widget row="2" column="0" > |
216 | <class>QCheckBox</class> | 465 | <class>QCheckBox</class> |
217 | <property stdset="1"> | 466 | <property stdset="1"> |
218 | <name>name</name> | 467 | <name>name</name> |
219 | <cstring>channel10</cstring> | 468 | <cstring>channel10</cstring> |
220 | </property> | 469 | </property> |
221 | <property stdset="1"> | 470 | <property stdset="1"> |
222 | <name>text</name> | 471 | <name>text</name> |
223 | <string>10</string> | 472 | <string>10</string> |
224 | </property> | 473 | </property> |
225 | </widget> | 474 | </widget> |
226 | <widget row="1" column="2" > | 475 | <widget row="1" column="2" > |
227 | <class>QCheckBox</class> | 476 | <class>QCheckBox</class> |
228 | <property stdset="1"> | 477 | <property stdset="1"> |
229 | <name>name</name> | 478 | <name>name</name> |
230 | <cstring>channel7</cstring> | 479 | <cstring>channel7</cstring> |
231 | </property> | 480 | </property> |
232 | <property stdset="1"> | 481 | <property stdset="1"> |
233 | <name>text</name> | 482 | <name>text</name> |
234 | <string>7</string> | 483 | <string>7</string> |
235 | </property> | 484 | </property> |
236 | </widget> | 485 | </widget> |
237 | <widget row="0" column="3" > | 486 | <widget row="0" column="3" > |
238 | <class>QCheckBox</class> | 487 | <class>QCheckBox</class> |
239 | <property stdset="1"> | 488 | <property stdset="1"> |
240 | <name>name</name> | 489 | <name>name</name> |
241 | <cstring>channel3</cstring> | 490 | <cstring>channel3</cstring> |
242 | </property> | 491 | </property> |
243 | <property stdset="1"> | 492 | <property stdset="1"> |
244 | <name>text</name> | 493 | <name>text</name> |
245 | <string>3</string> | 494 | <string>3</string> |
246 | </property> | 495 | </property> |
247 | </widget> | 496 | </widget> |
248 | <widget row="1" column="0" > | 497 | <widget row="1" column="0" > |
249 | <class>QCheckBox</class> | 498 | <class>QCheckBox</class> |
250 | <property stdset="1"> | 499 | <property stdset="1"> |
251 | <name>name</name> | 500 | <name>name</name> |
252 | <cstring>channel5</cstring> | 501 | <cstring>channel5</cstring> |
253 | </property> | 502 | </property> |
254 | <property stdset="1"> | 503 | <property stdset="1"> |
255 | <name>text</name> | 504 | <name>text</name> |
256 | <string>5</string> | 505 | <string>5</string> |
257 | </property> | 506 | </property> |
258 | </widget> | 507 | </widget> |
259 | <widget row="0" column="4" > | 508 | <widget row="0" column="4" > |
260 | <class>QCheckBox</class> | 509 | <class>QCheckBox</class> |
261 | <property stdset="1"> | 510 | <property stdset="1"> |
262 | <name>name</name> | 511 | <name>name</name> |
263 | <cstring>channel4</cstring> | 512 | <cstring>channel4</cstring> |
264 | </property> | 513 | </property> |
265 | <property stdset="1"> | 514 | <property stdset="1"> |
266 | <name>text</name> | 515 | <name>text</name> |
267 | <string>4</string> | 516 | <string>4</string> |
268 | </property> | 517 | </property> |
269 | </widget> | 518 | </widget> |
270 | <widget row="2" column="2" > | 519 | <widget row="2" column="2" > |
271 | <class>QCheckBox</class> | 520 | <class>QCheckBox</class> |
272 | <property stdset="1"> | 521 | <property stdset="1"> |
273 | <name>name</name> | 522 | <name>name</name> |
274 | <cstring>channel12</cstring> | 523 | <cstring>channel12</cstring> |
275 | </property> | 524 | </property> |
276 | <property stdset="1"> | 525 | <property stdset="1"> |
277 | <name>text</name> | 526 | <name>text</name> |
278 | <string>12</string> | 527 | <string>12</string> |
279 | </property> | 528 | </property> |
280 | </widget> | 529 | </widget> |
281 | <widget row="2" column="3" > | 530 | <widget row="2" column="3" > |
282 | <class>QCheckBox</class> | 531 | <class>QCheckBox</class> |
283 | <property stdset="1"> | 532 | <property stdset="1"> |
284 | <name>name</name> | 533 | <name>name</name> |
285 | <cstring>channel13</cstring> | 534 | <cstring>channel13</cstring> |
286 | </property> | 535 | </property> |
287 | <property stdset="1"> | 536 | <property stdset="1"> |
288 | <name>text</name> | 537 | <name>text</name> |
289 | <string>13</string> | 538 | <string>13</string> |
290 | </property> | 539 | </property> |
291 | </widget> | 540 | </widget> |
292 | <widget row="2" column="4" > | 541 | <widget row="2" column="4" > |
293 | <class>QCheckBox</class> | 542 | <class>QCheckBox</class> |
294 | <property stdset="1"> | 543 | <property stdset="1"> |
295 | <name>name</name> | 544 | <name>name</name> |
296 | <cstring>channel14</cstring> | 545 | <cstring>channel14</cstring> |
297 | </property> | 546 | </property> |
298 | <property stdset="1"> | 547 | <property stdset="1"> |
299 | <name>text</name> | 548 | <name>text</name> |
300 | <string>14</string> | 549 | <string>14</string> |
301 | </property> | 550 | </property> |
302 | </widget> | 551 | </widget> |
303 | </grid> | 552 | </grid> |
304 | </widget> | 553 | </widget> |
305 | <widget row="0" column="1" rowspan="1" colspan="3" > | 554 | </vbox> |
306 | <class>QComboBox</class> | ||
307 | <property stdset="1"> | ||
308 | <name>name</name> | ||
309 | <cstring>interfaceName</cstring> | ||
310 | </property> | ||
311 | <property stdset="1"> | ||
312 | <name>enabled</name> | ||
313 | <bool>true</bool> | ||
314 | </property> | ||
315 | <property stdset="1"> | ||
316 | <name>editable</name> | ||
317 | <bool>false</bool> | ||
318 | </property> | ||
319 | <property> | ||
320 | <name>whatsThis</name> | ||
321 | <string>Choose the interface used for sniffing.</string> | ||
322 | </property> | ||
323 | </widget> | ||
324 | <widget row="1" column="1" rowspan="1" colspan="3" > | ||
325 | <class>QComboBox</class> | ||
326 | <item> | ||
327 | <property> | ||
328 | <name>text</name> | ||
329 | <string><select></string> | ||
330 | </property> | ||
331 | </item> | ||
332 | <item> | ||
333 | <property> | ||
334 | <name>text</name> | ||
335 | <string>cisco</string> | ||
336 | </property> | ||
337 | </item> | ||
338 | <item> | ||
339 | <property> | ||
340 | <name>text</name> | ||
341 | <string>wlan-ng</string> | ||
342 | </property> | ||
343 | </item> | ||
344 | <item> | ||
345 | <property> | ||
346 | <name>text</name> | ||
347 | <string>hostap</string> | ||
348 | </property> | ||
349 | </item> | ||
350 | <item> | ||
351 | <property> | ||
352 | <name>text</name> | ||
353 | <string>orinoco</string> | ||
354 | </property> | ||
355 | </item> | ||
356 | <item> | ||
357 | <property> | ||
358 | <name>text</name> | ||
359 | <string><manual></string> | ||
360 | </property> | ||
361 | </item> | ||
362 | <item> | ||
363 | <property> | ||
364 | <name>text</name> | ||
365 | <string><file></string> | ||
366 | </property> | ||
367 | </item> | ||
368 | <property stdset="1"> | ||
369 | <name>name</name> | ||
370 | <cstring>deviceType</cstring> | ||
371 | </property> | ||
372 | <property stdset="1"> | ||
373 | <name>enabled</name> | ||
374 | <bool>true</bool> | ||
375 | </property> | ||
376 | <property> | ||
377 | <name>whatsThis</name> | ||
378 | <string>Choose the type of driver used for sniffing.</string> | ||
379 | </property> | ||
380 | </widget> | ||
381 | <spacer row="3" column="0" > | ||
382 | <property> | ||
383 | <name>name</name> | ||
384 | <cstring>Spacer4</cstring> | ||
385 | </property> | ||
386 | <property stdset="1"> | ||
387 | <name>orientation</name> | ||
388 | <enum>Vertical</enum> | ||
389 | </property> | ||
390 | <property stdset="1"> | ||
391 | <name>sizeType</name> | ||
392 | <enum>Expanding</enum> | ||
393 | </property> | ||
394 | <property> | ||
395 | <name>sizeHint</name> | ||
396 | <size> | ||
397 | <width>20</width> | ||
398 | <height>20</height> | ||
399 | </size> | ||
400 | </property> | ||
401 | </spacer> | ||
402 | <widget row="4" column="2" > | ||
403 | <class>QLabel</class> | ||
404 | <property stdset="1"> | ||
405 | <name>name</name> | ||
406 | <cstring>TextLabel1</cstring> | ||
407 | </property> | ||
408 | <property stdset="1"> | ||
409 | <name>text</name> | ||
410 | <string>every</string> | ||
411 | </property> | ||
412 | </widget> | ||
413 | <widget row="4" column="0" rowspan="1" colspan="2" > | ||
414 | <class>QCheckBox</class> | ||
415 | <property stdset="1"> | ||
416 | <name>name</name> | ||
417 | <cstring>hopChannels</cstring> | ||
418 | </property> | ||
419 | <property stdset="1"> | ||
420 | <name>text</name> | ||
421 | <string>Hop Channels</string> | ||
422 | </property> | ||
423 | <property stdset="1"> | ||
424 | <name>checked</name> | ||
425 | <bool>true</bool> | ||
426 | </property> | ||
427 | </widget> | ||
428 | <widget row="4" column="3" > | ||
429 | <class>QSpinBox</class> | ||
430 | <property stdset="1"> | ||
431 | <name>name</name> | ||
432 | <cstring>hopInterval</cstring> | ||
433 | </property> | ||
434 | <property stdset="1"> | ||
435 | <name>enabled</name> | ||
436 | <bool>true</bool> | ||
437 | </property> | ||
438 | <property stdset="1"> | ||
439 | <name>suffix</name> | ||
440 | <string> ms</string> | ||
441 | </property> | ||
442 | <property stdset="1"> | ||
443 | <name>maxValue</name> | ||
444 | <number>2000</number> | ||
445 | </property> | ||
446 | <property stdset="1"> | ||
447 | <name>minValue</name> | ||
448 | <number>100</number> | ||
449 | </property> | ||
450 | <property stdset="1"> | ||
451 | <name>lineStep</name> | ||
452 | <number>100</number> | ||
453 | </property> | ||
454 | <property stdset="1"> | ||
455 | <name>value</name> | ||
456 | <number>1000</number> | ||
457 | </property> | ||
458 | <property> | ||
459 | <name>whatsThis</name> | ||
460 | <string>Choose the channel hop interval.</string> | ||
461 | </property> | ||
462 | </widget> | ||
463 | <widget row="5" column="0" rowspan="1" colspan="4" > | ||
464 | <class>QCheckBox</class> | ||
465 | <property stdset="1"> | ||
466 | <name>name</name> | ||
467 | <cstring>adaptiveHopping</cstring> | ||
468 | </property> | ||
469 | <property stdset="1"> | ||
470 | <name>enabled</name> | ||
471 | <bool>false</bool> | ||
472 | </property> | ||
473 | <property stdset="1"> | ||
474 | <name>text</name> | ||
475 | <string>Use Adaptive(TM) Hop Scheme</string> | ||
476 | </property> | ||
477 | </widget> | ||
478 | </grid> | ||
479 | </widget> | 555 | </widget> |
480 | <widget> | 556 | <widget> |
481 | <class>QWidget</class> | 557 | <class>QWidget</class> |
482 | <property stdset="1"> | 558 | <property stdset="1"> |
483 | <name>name</name> | 559 | <name>name</name> |
484 | <cstring>tab</cstring> | 560 | <cstring>tab</cstring> |
485 | </property> | 561 | </property> |
486 | <attribute> | 562 | <attribute> |
487 | <name>title</name> | 563 | <name>title</name> |
488 | <string>Capture</string> | 564 | <string>Capture</string> |
489 | </attribute> | 565 | </attribute> |
490 | <grid> | 566 | <grid> |
491 | <property stdset="1"> | 567 | <property stdset="1"> |
492 | <name>margin</name> | 568 | <name>margin</name> |
493 | <number>5</number> | 569 | <number>5</number> |
494 | </property> | 570 | </property> |
495 | <property stdset="1"> | 571 | <property stdset="1"> |
496 | <name>spacing</name> | 572 | <name>spacing</name> |
497 | <number>3</number> | 573 | <number>3</number> |
498 | </property> | 574 | </property> |
499 | <widget row="2" column="0" rowspan="1" colspan="3" > | 575 | <widget row="2" column="0" rowspan="1" colspan="3" > |
500 | <class>ProtocolListView</class> | 576 | <class>ProtocolListView</class> |
501 | <property stdset="1"> | 577 | <property stdset="1"> |
502 | <name>name</name> | 578 | <name>name</name> |
503 | <cstring>capturePackets</cstring> | 579 | <cstring>capturePackets</cstring> |
504 | </property> | 580 | </property> |
505 | <property stdset="1"> | 581 | <property stdset="1"> |
506 | <name>enabled</name> | 582 | <name>enabled</name> |
507 | <bool>false</bool> | 583 | <bool>false</bool> |
508 | </property> | 584 | </property> |
509 | <property stdset="1"> | 585 | <property stdset="1"> |
510 | <name>sizePolicy</name> | 586 | <name>sizePolicy</name> |
511 | <sizepolicy> | 587 | <sizepolicy> |
512 | <hsizetype>7</hsizetype> | 588 | <hsizetype>7</hsizetype> |
513 | <vsizetype>7</vsizetype> | 589 | <vsizetype>7</vsizetype> |
514 | </sizepolicy> | 590 | </sizepolicy> |
515 | </property> | 591 | </property> |
516 | </widget> | 592 | </widget> |
517 | <widget row="1" column="0" rowspan="1" colspan="3" > | 593 | <widget row="1" column="0" rowspan="1" colspan="3" > |
518 | <class>QLineEdit</class> | 594 | <class>QLineEdit</class> |
519 | <property stdset="1"> | 595 | <property stdset="1"> |
520 | <name>name</name> | 596 | <name>name</name> |
521 | <cstring>captureFileName</cstring> | 597 | <cstring>captureFileName</cstring> |
522 | </property> | 598 | </property> |
523 | <property stdset="1"> | 599 | <property stdset="1"> |
524 | <name>enabled</name> | 600 | <name>enabled</name> |
525 | <bool>false</bool> | 601 | <bool>false</bool> |
526 | </property> | 602 | </property> |
527 | <property stdset="1"> | 603 | <property stdset="1"> |
528 | <name>text</name> | 604 | <name>text</name> |
529 | <string>/tmp/capture</string> | 605 | <string>/tmp/capture</string> |
530 | </property> | 606 | </property> |
531 | </widget> | 607 | </widget> |
532 | <widget row="0" column="2" > | 608 | <widget row="0" column="2" > |
533 | <class>QToolButton</class> | 609 | <class>QToolButton</class> |
534 | <property stdset="1"> | 610 | <property stdset="1"> |
535 | <name>name</name> | 611 | <name>name</name> |
536 | <cstring>getCaptureFileName</cstring> | 612 | <cstring>getCaptureFileName</cstring> |
537 | </property> | 613 | </property> |
538 | <property stdset="1"> | 614 | <property stdset="1"> |
539 | <name>enabled</name> | 615 | <name>enabled</name> |
540 | <bool>false</bool> | 616 | <bool>false</bool> |
541 | </property> | 617 | </property> |
542 | <property stdset="1"> | 618 | <property stdset="1"> |
543 | <name>text</name> | 619 | <name>text</name> |
544 | <string>Browse</string> | 620 | <string>Browse</string> |
545 | </property> | 621 | </property> |
546 | </widget> | 622 | </widget> |
547 | <spacer row="0" column="1" > | 623 | <spacer row="0" column="1" > |
548 | <property> | 624 | <property> |
549 | <name>name</name> | 625 | <name>name</name> |
550 | <cstring>Spacer2</cstring> | 626 | <cstring>Spacer2</cstring> |
551 | </property> | 627 | </property> |
552 | <property stdset="1"> | 628 | <property stdset="1"> |
553 | <name>orientation</name> | 629 | <name>orientation</name> |
554 | <enum>Horizontal</enum> | 630 | <enum>Horizontal</enum> |
555 | </property> | 631 | </property> |
556 | <property stdset="1"> | 632 | <property stdset="1"> |
557 | <name>sizeType</name> | 633 | <name>sizeType</name> |
558 | <enum>Expanding</enum> | 634 | <enum>Expanding</enum> |
559 | </property> | 635 | </property> |
560 | <property> | 636 | <property> |
561 | <name>sizeHint</name> | 637 | <name>sizeHint</name> |
562 | <size> | 638 | <size> |
563 | <width>20</width> | 639 | <width>20</width> |
564 | <height>20</height> | 640 | <height>20</height> |
565 | </size> | 641 | </size> |
566 | </property> | 642 | </property> |
567 | </spacer> | 643 | </spacer> |
568 | <widget row="0" column="0" > | 644 | <widget row="0" column="0" > |
569 | <class>QCheckBox</class> | 645 | <class>QCheckBox</class> |
570 | <property stdset="1"> | 646 | <property stdset="1"> |
571 | <name>name</name> | 647 | <name>name</name> |
572 | <cstring>writeCaptureFile</cstring> | 648 | <cstring>writeCaptureFile</cstring> |
573 | </property> | 649 | </property> |
574 | <property stdset="1"> | 650 | <property stdset="1"> |
575 | <name>enabled</name> | 651 | <name>enabled</name> |
576 | <bool>true</bool> | 652 | <bool>true</bool> |
577 | </property> | 653 | </property> |
578 | <property stdset="1"> | 654 | <property stdset="1"> |
579 | <name>text</name> | 655 | <name>text</name> |
580 | <string>Write Capture Files To</string> | 656 | <string>Write Capture Files To</string> |
581 | </property> | 657 | </property> |
582 | </widget> | 658 | </widget> |
583 | </grid> | 659 | </grid> |
584 | </widget> | 660 | </widget> |
585 | <widget> | 661 | <widget> |
586 | <class>QWidget</class> | 662 | <class>QWidget</class> |
587 | <property stdset="1"> | 663 | <property stdset="1"> |
588 | <name>name</name> | 664 | <name>name</name> |
589 | <cstring>tab</cstring> | 665 | <cstring>tab</cstring> |
590 | </property> | 666 | </property> |
591 | <attribute> | 667 | <attribute> |
592 | <name>title</name> | 668 | <name>title</name> |
593 | <string>Parse</string> | 669 | <string>Parse</string> |
594 | </attribute> | 670 | </attribute> |
595 | <grid> | 671 | <grid> |
596 | <property stdset="1"> | 672 | <property stdset="1"> |
597 | <name>margin</name> | 673 | <name>margin</name> |
598 | <number>5</number> | 674 | <number>5</number> |
599 | </property> | 675 | </property> |
600 | <property stdset="1"> | 676 | <property stdset="1"> |
601 | <name>spacing</name> | 677 | <name>spacing</name> |
602 | <number>3</number> | 678 | <number>3</number> |
603 | </property> | 679 | </property> |
604 | <widget row="0" column="0" > | 680 | <widget row="0" column="0" > |
605 | <class>ProtocolListView</class> | 681 | <class>ProtocolListView</class> |
606 | <property stdset="1"> | 682 | <property stdset="1"> |
607 | <name>name</name> | 683 | <name>name</name> |
608 | <cstring>parsePackets</cstring> | 684 | <cstring>parsePackets</cstring> |
609 | </property> | 685 | </property> |
610 | <property stdset="1"> | 686 | <property stdset="1"> |
611 | <name>sizePolicy</name> | 687 | <name>sizePolicy</name> |
612 | <sizepolicy> | 688 | <sizepolicy> |
613 | <hsizetype>7</hsizetype> | 689 | <hsizetype>7</hsizetype> |
614 | <vsizetype>7</vsizetype> | 690 | <vsizetype>7</vsizetype> |
615 | </sizepolicy> | 691 | </sizepolicy> |
616 | </property> | 692 | </property> |
617 | </widget> | 693 | </widget> |
618 | </grid> | 694 | </grid> |
619 | </widget> | 695 | </widget> |
620 | <widget> | 696 | <widget> |
621 | <class>QWidget</class> | 697 | <class>QWidget</class> |
622 | <property stdset="1"> | 698 | <property stdset="1"> |
623 | <name>name</name> | 699 | <name>name</name> |
624 | <cstring>tab</cstring> | 700 | <cstring>tab</cstring> |
625 | </property> | 701 | </property> |
626 | <attribute> | 702 | <attribute> |
627 | <name>title</name> | 703 | <name>title</name> |
628 | <string>UI</string> | 704 | <string>UI</string> |
629 | </attribute> | 705 | </attribute> |
630 | <vbox> | 706 | <vbox> |
631 | <property stdset="1"> | 707 | <property stdset="1"> |
632 | <name>margin</name> | 708 | <name>margin</name> |
633 | <number>11</number> | 709 | <number>11</number> |
634 | </property> | 710 | </property> |
635 | <property stdset="1"> | 711 | <property stdset="1"> |
636 | <name>spacing</name> | 712 | <name>spacing</name> |
637 | <number>6</number> | 713 | <number>6</number> |
638 | </property> | 714 | </property> |
639 | <widget> | 715 | <widget> |
640 | <class>QCheckBox</class> | 716 | <class>QCheckBox</class> |
641 | <property stdset="1"> | 717 | <property stdset="1"> |
642 | <name>name</name> | 718 | <name>name</name> |
643 | <cstring>lookupVendor</cstring> | 719 | <cstring>lookupVendor</cstring> |
644 | </property> | 720 | </property> |
645 | <property stdset="1"> | 721 | <property stdset="1"> |
646 | <name>text</name> | 722 | <name>text</name> |
647 | <string>Lookup MAC vendor names</string> | 723 | <string>Lookup MAC vendor names</string> |
648 | </property> | 724 | </property> |
649 | </widget> | 725 | </widget> |
650 | <widget> | 726 | <widget> |
651 | <class>QCheckBox</class> | 727 | <class>QCheckBox</class> |
652 | <property stdset="1"> | 728 | <property stdset="1"> |
653 | <name>name</name> | 729 | <name>name</name> |
654 | <cstring>openTree</cstring> | 730 | <cstring>openTree</cstring> |
655 | </property> | 731 | </property> |
656 | <property stdset="1"> | 732 | <property stdset="1"> |
657 | <name>text</name> | 733 | <name>text</name> |
658 | <string>Open Tree On New Station</string> | 734 | <string>Open Tree On New Station</string> |
659 | </property> | 735 | </property> |
660 | </widget> | 736 | </widget> |
661 | <widget> | 737 | <widget> |
662 | <class>QCheckBox</class> | 738 | <class>QCheckBox</class> |
663 | <property stdset="1"> | 739 | <property stdset="1"> |
664 | <name>name</name> | 740 | <name>name</name> |
665 | <cstring>disablePM</cstring> | 741 | <cstring>disablePM</cstring> |
666 | </property> | 742 | </property> |
667 | <property stdset="1"> | 743 | <property stdset="1"> |
668 | <name>text</name> | 744 | <name>text</name> |
669 | <string>Disable Power Management</string> | 745 | <string>Disable Power Management</string> |
670 | </property> | 746 | </property> |
671 | </widget> | 747 | </widget> |
672 | <spacer> | 748 | <spacer> |
673 | <property> | 749 | <property> |
674 | <name>name</name> | 750 | <name>name</name> |
675 | <cstring>Spacer3</cstring> | 751 | <cstring>Spacer3</cstring> |
676 | </property> | 752 | </property> |
677 | <property stdset="1"> | 753 | <property stdset="1"> |
678 | <name>orientation</name> | 754 | <name>orientation</name> |
679 | <enum>Vertical</enum> | 755 | <enum>Vertical</enum> |
680 | </property> | 756 | </property> |
681 | <property stdset="1"> | 757 | <property stdset="1"> |
682 | <name>sizeType</name> | 758 | <name>sizeType</name> |
683 | <enum>Expanding</enum> | 759 | <enum>Expanding</enum> |
684 | </property> | 760 | </property> |
685 | <property> | 761 | <property> |
686 | <name>sizeHint</name> | 762 | <name>sizeHint</name> |
687 | <size> | 763 | <size> |
688 | <width>20</width> | 764 | <width>20</width> |
689 | <height>20</height> | 765 | <height>20</height> |
690 | </size> | 766 | </size> |
691 | </property> | 767 | </property> |
692 | </spacer> | 768 | </spacer> |
693 | <widget> | 769 | <widget> |
694 | <class>QGroupBox</class> | 770 | <class>QGroupBox</class> |
695 | <property stdset="1"> | 771 | <property stdset="1"> |
696 | <name>name</name> | 772 | <name>name</name> |
697 | <cstring>GroupBox4_2</cstring> | 773 | <cstring>GroupBox4_2</cstring> |
698 | </property> | 774 | </property> |
699 | <property stdset="1"> | 775 | <property stdset="1"> |
700 | <name>title</name> | 776 | <name>title</name> |
701 | <string>Action On Detecting</string> | 777 | <string>Action On Detecting</string> |
702 | </property> | 778 | </property> |
703 | <grid> | 779 | <grid> |
704 | <property stdset="1"> | 780 | <property stdset="1"> |
705 | <name>margin</name> | 781 | <name>margin</name> |
706 | <number>11</number> | 782 | <number>11</number> |
707 | </property> | 783 | </property> |
708 | <property stdset="1"> | 784 | <property stdset="1"> |
709 | <name>spacing</name> | 785 | <name>spacing</name> |
710 | <number>6</number> | 786 | <number>6</number> |
711 | </property> | 787 | </property> |
712 | <widget row="1" column="0" > | 788 | <widget row="1" column="0" > |
713 | <class>QLabel</class> | 789 | <class>QLabel</class> |
714 | <property stdset="1"> | 790 | <property stdset="1"> |
715 | <name>name</name> | 791 | <name>name</name> |
716 | <cstring>TextLabel2</cstring> | 792 | <cstring>TextLabel2</cstring> |
717 | </property> | 793 | </property> |
718 | <property stdset="1"> | 794 | <property stdset="1"> |
719 | <name>text</name> | 795 | <name>text</name> |
720 | <string>New Wireless Station</string> | 796 | <string>New Wireless Station</string> |
721 | </property> | 797 | </property> |
722 | </widget> | 798 | </widget> |
723 | <widget row="0" column="0" > | 799 | <widget row="0" column="0" > |
724 | <class>QLabel</class> | 800 | <class>QLabel</class> |
725 | <property stdset="1"> | 801 | <property stdset="1"> |
726 | <name>name</name> | 802 | <name>name</name> |
727 | <cstring>TextLabel1_3</cstring> | 803 | <cstring>TextLabel1_3</cstring> |
728 | </property> | 804 | </property> |
729 | <property stdset="1"> | 805 | <property stdset="1"> |
730 | <name>text</name> | 806 | <name>text</name> |
731 | <string>New Network</string> | 807 | <string>New Network</string> |
732 | </property> | 808 | </property> |
733 | </widget> | 809 | </widget> |
734 | <widget row="0" column="1" > | 810 | <widget row="0" column="1" > |
735 | <class>QComboBox</class> | 811 | <class>QComboBox</class> |
736 | <property stdset="1"> | 812 | <property stdset="1"> |
737 | <name>name</name> | 813 | <name>name</name> |
738 | <cstring>newNetwork</cstring> | 814 | <cstring>newNetwork</cstring> |
739 | </property> | 815 | </property> |
740 | </widget> | 816 | </widget> |
741 | <widget row="1" column="1" > | 817 | <widget row="1" column="1" > |
742 | <class>QComboBox</class> | 818 | <class>QComboBox</class> |
743 | <property stdset="1"> | 819 | <property stdset="1"> |
744 | <name>name</name> | 820 | <name>name</name> |
745 | <cstring>newWirelessStation</cstring> | 821 | <cstring>newWirelessStation</cstring> |
746 | </property> | 822 | </property> |
747 | </widget> | 823 | </widget> |
748 | <widget row="2" column="1" > | 824 | <widget row="2" column="1" > |
749 | <class>QComboBox</class> | 825 | <class>QComboBox</class> |
750 | <property stdset="1"> | 826 | <property stdset="1"> |
751 | <name>name</name> | 827 | <name>name</name> |
752 | <cstring>newStation</cstring> | 828 | <cstring>newStation</cstring> |
753 | </property> | 829 | </property> |
754 | </widget> | 830 | </widget> |
755 | <widget row="2" column="0" > | 831 | <widget row="2" column="0" > |
756 | <class>QLabel</class> | 832 | <class>QLabel</class> |
757 | <property stdset="1"> | 833 | <property stdset="1"> |
758 | <name>name</name> | 834 | <name>name</name> |
759 | <cstring>TextLabel3</cstring> | 835 | <cstring>TextLabel3</cstring> |
760 | </property> | 836 | </property> |
761 | <property stdset="1"> | 837 | <property stdset="1"> |
762 | <name>text</name> | 838 | <name>text</name> |
763 | <string>New Station</string> | 839 | <string>New Station</string> |
764 | </property> | 840 | </property> |
765 | </widget> | 841 | </widget> |
766 | </grid> | 842 | </grid> |
767 | </widget> | 843 | </widget> |
768 | </vbox> | 844 | </vbox> |
769 | </widget> | 845 | </widget> |
770 | <widget> | 846 | <widget> |
771 | <class>QWidget</class> | 847 | <class>QWidget</class> |
772 | <property stdset="1"> | 848 | <property stdset="1"> |
773 | <name>name</name> | 849 | <name>name</name> |
774 | <cstring>tab</cstring> | 850 | <cstring>tab</cstring> |
775 | </property> | 851 | </property> |
776 | <attribute> | 852 | <attribute> |
777 | <name>title</name> | 853 | <name>title</name> |
778 | <string>Intrusion</string> | 854 | <string>Intrusion</string> |
779 | </attribute> | 855 | </attribute> |
780 | <grid> | 856 | <grid> |
781 | <property stdset="1"> | 857 | <property stdset="1"> |
782 | <name>margin</name> | 858 | <name>margin</name> |
783 | <number>11</number> | 859 | <number>11</number> |
784 | </property> | 860 | </property> |
785 | <property stdset="1"> | 861 | <property stdset="1"> |
786 | <name>spacing</name> | 862 | <name>spacing</name> |
787 | <number>6</number> | 863 | <number>6</number> |
788 | </property> | 864 | </property> |
789 | <widget row="1" column="0" > | 865 | <widget row="1" column="0" > |
790 | <class>QGroupBox</class> | 866 | <class>QGroupBox</class> |
791 | <property stdset="1"> | 867 | <property stdset="1"> |
792 | <name>name</name> | 868 | <name>name</name> |
793 | <cstring>GroupBox3</cstring> | 869 | <cstring>GroupBox3</cstring> |
794 | </property> | 870 | </property> |
795 | <property stdset="1"> | 871 | <property stdset="1"> |
796 | <name>enabled</name> | 872 | <name>enabled</name> |
797 | <bool>false</bool> | 873 | <bool>false</bool> |
798 | </property> | 874 | </property> |
799 | <property stdset="1"> | 875 | <property stdset="1"> |
800 | <name>title</name> | 876 | <name>title</name> |
801 | <string>Link Level</string> | 877 | <string>Link Level</string> |
802 | </property> | 878 | </property> |
803 | <grid> | 879 | <grid> |
804 | <property stdset="1"> | 880 | <property stdset="1"> |
805 | <name>margin</name> | 881 | <name>margin</name> |
806 | <number>11</number> | 882 | <number>11</number> |
807 | </property> | 883 | </property> |
808 | <property stdset="1"> | 884 | <property stdset="1"> |
809 | <name>spacing</name> | 885 | <name>spacing</name> |
810 | <number>6</number> | 886 | <number>6</number> |
811 | </property> | 887 | </property> |
812 | <widget row="0" column="0" > | 888 | <widget row="0" column="0" > |
813 | <class>QLabel</class> | 889 | <class>QLabel</class> |
814 | <property stdset="1"> | 890 | <property stdset="1"> |
815 | <name>name</name> | 891 | <name>name</name> |
816 | <cstring>TextLabel1_5</cstring> | 892 | <cstring>TextLabel1_5</cstring> |
817 | </property> | 893 | </property> |
818 | <property stdset="1"> | 894 | <property stdset="1"> |
819 | <name>text</name> | 895 | <name>text</name> |
820 | <string>Fake Mac:</string> | 896 | <string>Fake Mac:</string> |
821 | </property> | 897 | </property> |
822 | </widget> | 898 | </widget> |
823 | <widget row="1" column="0" rowspan="1" colspan="2" > | 899 | <widget row="1" column="0" rowspan="1" colspan="2" > |
824 | <class>QCheckBox</class> | 900 | <class>QCheckBox</class> |
825 | <property stdset="1"> | 901 | <property stdset="1"> |
826 | <name>name</name> | 902 | <name>name</name> |
827 | <cstring>sendProbeRequests</cstring> | 903 | <cstring>sendProbeRequests</cstring> |
828 | </property> | 904 | </property> |
829 | <property stdset="1"> | 905 | <property stdset="1"> |
830 | <name>text</name> | 906 | <name>text</name> |
831 | <string>Send proble requests</string> | 907 | <string>Send proble requests</string> |
832 | </property> | 908 | </property> |
833 | </widget> | 909 | </widget> |
834 | <widget row="0" column="1" > | 910 | <widget row="0" column="1" > |
835 | <class>QComboBox</class> | 911 | <class>QComboBox</class> |
836 | <item> | 912 | <item> |
837 | <property> | 913 | <property> |
838 | <name>text</name> | 914 | <name>text</name> |
839 | <string><automatic></string> | 915 | <string><automatic></string> |
840 | </property> | 916 | </property> |
841 | </item> | 917 | </item> |
842 | <item> | 918 | <item> |
843 | <property> | 919 | <property> |
844 | <name>text</name> | 920 | <name>text</name> |
845 | <string>44:44:44:44:44:44</string> | 921 | <string>44:44:44:44:44:44</string> |
846 | </property> | 922 | </property> |
847 | </item> | 923 | </item> |
848 | <property stdset="1"> | 924 | <property stdset="1"> |
849 | <name>name</name> | 925 | <name>name</name> |
850 | <cstring>fakeMac</cstring> | 926 | <cstring>fakeMac</cstring> |
851 | </property> | 927 | </property> |
852 | <property stdset="1"> | 928 | <property stdset="1"> |
853 | <name>sizePolicy</name> | 929 | <name>sizePolicy</name> |
854 | <sizepolicy> | 930 | <sizepolicy> |
855 | <hsizetype>7</hsizetype> | 931 | <hsizetype>7</hsizetype> |
856 | <vsizetype>0</vsizetype> | 932 | <vsizetype>0</vsizetype> |
857 | </sizepolicy> | 933 | </sizepolicy> |
858 | </property> | 934 | </property> |
859 | <property stdset="1"> | 935 | <property stdset="1"> |
860 | <name>editable</name> | 936 | <name>editable</name> |
861 | <bool>true</bool> | 937 | <bool>true</bool> |
862 | </property> | 938 | </property> |
863 | <property stdset="1"> | 939 | <property stdset="1"> |
864 | <name>currentItem</name> | 940 | <name>currentItem</name> |
865 | <number>1</number> | 941 | <number>1</number> |
866 | </property> | 942 | </property> |
867 | <property stdset="1"> | 943 | <property stdset="1"> |
868 | <name>autoCompletion</name> | 944 | <name>autoCompletion</name> |
869 | <bool>true</bool> | 945 | <bool>true</bool> |
870 | </property> | 946 | </property> |
871 | </widget> | 947 | </widget> |
872 | <widget row="2" column="0" rowspan="1" colspan="2" > | 948 | <widget row="2" column="0" rowspan="1" colspan="2" > |
873 | <class>QCheckBox</class> | 949 | <class>QCheckBox</class> |
874 | <property stdset="1"> | 950 | <property stdset="1"> |
875 | <name>name</name> | 951 | <name>name</name> |
876 | <cstring>tryToAuthenticate</cstring> | 952 | <cstring>tryToAuthenticate</cstring> |
877 | </property> | 953 | </property> |
878 | <property stdset="1"> | 954 | <property stdset="1"> |
879 | <name>text</name> | 955 | <name>text</name> |
880 | <string>Try to authenticate</string> | 956 | <string>Try to authenticate</string> |
881 | </property> | 957 | </property> |
882 | </widget> | 958 | </widget> |
883 | </grid> | 959 | </grid> |
884 | </widget> | 960 | </widget> |
885 | <widget row="0" column="0" > | 961 | <widget row="0" column="0" > |
886 | <class>QCheckBox</class> | 962 | <class>QCheckBox</class> |
887 | <property stdset="1"> | 963 | <property stdset="1"> |
888 | <name>name</name> | 964 | <name>name</name> |
889 | <cstring>enableActiveScanning</cstring> | 965 | <cstring>enableActiveScanning</cstring> |
890 | </property> | 966 | </property> |
891 | <property stdset="1"> | 967 | <property stdset="1"> |
892 | <name>enabled</name> | 968 | <name>enabled</name> |
893 | <bool>false</bool> | 969 | <bool>false</bool> |
894 | </property> | 970 | </property> |
895 | <property stdset="1"> | 971 | <property stdset="1"> |
896 | <name>text</name> | 972 | <name>text</name> |
897 | <string>Enable active scanning</string> | 973 | <string>Enable active scanning</string> |
898 | </property> | 974 | </property> |
899 | </widget> | 975 | </widget> |
900 | <widget row="2" column="0" > | 976 | <widget row="2" column="0" > |
901 | <class>QGroupBox</class> | 977 | <class>QGroupBox</class> |
902 | <property stdset="1"> | 978 | <property stdset="1"> |
903 | <name>name</name> | 979 | <name>name</name> |
904 | <cstring>GroupBox4</cstring> | 980 | <cstring>GroupBox4</cstring> |
905 | </property> | 981 | </property> |
906 | <property stdset="1"> | 982 | <property stdset="1"> |
907 | <name>enabled</name> | 983 | <name>enabled</name> |
908 | <bool>false</bool> | 984 | <bool>false</bool> |
909 | </property> | 985 | </property> |
910 | <property stdset="1"> | 986 | <property stdset="1"> |
911 | <name>title</name> | 987 | <name>title</name> |
912 | <string>IP Level</string> | 988 | <string>IP Level</string> |
913 | </property> | 989 | </property> |
914 | <grid> | 990 | <grid> |
915 | <property stdset="1"> | 991 | <property stdset="1"> |
916 | <name>margin</name> | 992 | <name>margin</name> |
917 | <number>11</number> | 993 | <number>11</number> |
918 | </property> | 994 | </property> |
919 | <property stdset="1"> | 995 | <property stdset="1"> |
920 | <name>spacing</name> | 996 | <name>spacing</name> |
921 | <number>6</number> | 997 | <number>6</number> |
922 | </property> | 998 | </property> |
923 | <widget row="1" column="0" rowspan="1" colspan="2" > | 999 | <widget row="1" column="0" rowspan="1" colspan="2" > |
924 | <class>QCheckBox</class> | 1000 | <class>QCheckBox</class> |
925 | <property stdset="1"> | 1001 | <property stdset="1"> |
926 | <name>name</name> | 1002 | <name>name</name> |
927 | <cstring>CheckBox24</cstring> | 1003 | <cstring>CheckBox24</cstring> |
928 | </property> | 1004 | </property> |
929 | <property stdset="1"> | 1005 | <property stdset="1"> |
930 | <name>text</name> | 1006 | <name>text</name> |
931 | <string>Request DHCP Address</string> | 1007 | <string>Request DHCP Address</string> |
932 | </property> | 1008 | </property> |
933 | </widget> | 1009 | </widget> |
934 | <widget row="0" column="0" > | 1010 | <widget row="0" column="0" > |
935 | <class>QLabel</class> | 1011 | <class>QLabel</class> |
936 | <property stdset="1"> | 1012 | <property stdset="1"> |
937 | <name>name</name> | 1013 | <name>name</name> |
938 | <cstring>TextLabel1_5_2</cstring> | 1014 | <cstring>TextLabel1_5_2</cstring> |
939 | </property> | 1015 | </property> |
940 | <property stdset="1"> | 1016 | <property stdset="1"> |
941 | <name>text</name> | 1017 | <name>text</name> |
942 | <string>Fake IP:</string> | 1018 | <string>Fake IP:</string> |
943 | </property> | 1019 | </property> |
944 | </widget> | 1020 | </widget> |
945 | <widget row="0" column="1" > | 1021 | <widget row="0" column="1" > |
946 | <class>QComboBox</class> | 1022 | <class>QComboBox</class> |
947 | <item> | 1023 | <item> |
948 | <property> | 1024 | <property> |
949 | <name>text</name> | 1025 | <name>text</name> |
950 | <string>192.168.125.1</string> | 1026 | <string>192.168.125.1</string> |
951 | </property> | 1027 | </property> |
952 | </item> | 1028 | </item> |
953 | <item> | 1029 | <item> |
954 | <property> | 1030 | <property> |
955 | <name>text</name> | 1031 | <name>text</name> |
956 | <string><automatic></string> | 1032 | <string><automatic></string> |
957 | </property> | 1033 | </property> |
958 | </item> | 1034 | </item> |
959 | <property stdset="1"> | 1035 | <property stdset="1"> |
960 | <name>name</name> | 1036 | <name>name</name> |
961 | <cstring>fakeIP</cstring> | 1037 | <cstring>fakeIP</cstring> |
962 | </property> | 1038 | </property> |
963 | <property stdset="1"> | 1039 | <property stdset="1"> |
964 | <name>sizePolicy</name> | 1040 | <name>sizePolicy</name> |
965 | <sizepolicy> | 1041 | <sizepolicy> |
966 | <hsizetype>7</hsizetype> | 1042 | <hsizetype>7</hsizetype> |
967 | <vsizetype>0</vsizetype> | 1043 | <vsizetype>0</vsizetype> |
968 | </sizepolicy> | 1044 | </sizepolicy> |
969 | </property> | 1045 | </property> |
970 | <property stdset="1"> | 1046 | <property stdset="1"> |
971 | <name>editable</name> | 1047 | <name>editable</name> |
972 | <bool>true</bool> | 1048 | <bool>true</bool> |
973 | </property> | 1049 | </property> |
974 | <property stdset="1"> | 1050 | <property stdset="1"> |
975 | <name>currentItem</name> | 1051 | <name>currentItem</name> |
976 | <number>0</number> | 1052 | <number>0</number> |
977 | </property> | 1053 | </property> |
978 | </widget> | 1054 | </widget> |
979 | </grid> | 1055 | </grid> |
980 | </widget> | 1056 | </widget> |
981 | </grid> | 1057 | </grid> |
982 | </widget> | 1058 | </widget> |
983 | <widget> | 1059 | <widget> |
984 | <class>QWidget</class> | 1060 | <class>QWidget</class> |
985 | <property stdset="1"> | 1061 | <property stdset="1"> |
986 | <name>name</name> | 1062 | <name>name</name> |
987 | <cstring>tab</cstring> | 1063 | <cstring>tab</cstring> |
988 | </property> | 1064 | </property> |
989 | <attribute> | 1065 | <attribute> |
990 | <name>title</name> | 1066 | <name>title</name> |
991 | <string>GPS</string> | 1067 | <string>GPS</string> |
992 | </attribute> | 1068 | </attribute> |
993 | <widget> | 1069 | <widget> |
994 | <class>QLayoutWidget</class> | 1070 | <class>QLayoutWidget</class> |
995 | <property stdset="1"> | 1071 | <property stdset="1"> |
996 | <name>name</name> | 1072 | <name>name</name> |
997 | <cstring>Layout1</cstring> | 1073 | <cstring>Layout1</cstring> |
998 | </property> | 1074 | </property> |
999 | <property stdset="1"> | 1075 | <property stdset="1"> |
1000 | <name>geometry</name> | 1076 | <name>geometry</name> |
1001 | <rect> | 1077 | <rect> |
1002 | <x>10</x> | 1078 | <x>10</x> |
1003 | <y>40</y> | 1079 | <y>40</y> |
1004 | <width>216</width> | 1080 | <width>216</width> |
1005 | <height>27</height> | 1081 | <height>27</height> |
1006 | </rect> | 1082 | </rect> |
1007 | </property> | 1083 | </property> |
1008 | <hbox> | 1084 | <hbox> |
1009 | <property stdset="1"> | 1085 | <property stdset="1"> |
1010 | <name>margin</name> | 1086 | <name>margin</name> |
1011 | <number>0</number> | 1087 | <number>0</number> |
1012 | </property> | 1088 | </property> |
1013 | <property stdset="1"> | 1089 | <property stdset="1"> |
1014 | <name>spacing</name> | 1090 | <name>spacing</name> |
1015 | <number>6</number> | 1091 | <number>6</number> |
1016 | </property> | 1092 | </property> |
1017 | <widget> | 1093 | <widget> |
1018 | <class>QLabel</class> | 1094 | <class>QLabel</class> |
1019 | <property stdset="1"> | 1095 | <property stdset="1"> |
1020 | <name>name</name> | 1096 | <name>name</name> |
1021 | <cstring>TextLabel1_4</cstring> | 1097 | <cstring>TextLabel1_4</cstring> |
1022 | </property> | 1098 | </property> |
1023 | <property stdset="1"> | 1099 | <property stdset="1"> |
1024 | <name>text</name> | 1100 | <name>text</name> |
1025 | <string>Host</string> | 1101 | <string>Host</string> |
1026 | </property> | 1102 | </property> |
1027 | </widget> | 1103 | </widget> |
1028 | <widget> | 1104 | <widget> |
1029 | <class>QComboBox</class> | 1105 | <class>QComboBox</class> |
1030 | <item> | 1106 | <item> |
1031 | <property> | 1107 | <property> |
1032 | <name>text</name> | 1108 | <name>text</name> |
1033 | <string>localhost</string> | 1109 | <string>localhost</string> |
1034 | </property> | 1110 | </property> |
1035 | </item> | 1111 | </item> |
1036 | <property stdset="1"> | 1112 | <property stdset="1"> |
1037 | <name>name</name> | 1113 | <name>name</name> |
1038 | <cstring>gpsdHost</cstring> | 1114 | <cstring>gpsdHost</cstring> |
1039 | </property> | 1115 | </property> |
1040 | <property stdset="1"> | 1116 | <property stdset="1"> |
1041 | <name>enabled</name> | 1117 | <name>enabled</name> |
1042 | <bool>false</bool> | 1118 | <bool>false</bool> |
1043 | </property> | 1119 | </property> |
1044 | <property stdset="1"> | 1120 | <property stdset="1"> |
1045 | <name>editable</name> | 1121 | <name>editable</name> |
1046 | <bool>true</bool> | 1122 | <bool>true</bool> |
1047 | </property> | 1123 | </property> |
1048 | <property stdset="1"> | 1124 | <property stdset="1"> |
1049 | <name>currentItem</name> | 1125 | <name>currentItem</name> |
1050 | <number>0</number> | 1126 | <number>0</number> |
1051 | </property> | 1127 | </property> |
1052 | </widget> | 1128 | </widget> |
1053 | <widget> | 1129 | <widget> |
1054 | <class>QLabel</class> | 1130 | <class>QLabel</class> |
1055 | <property stdset="1"> | 1131 | <property stdset="1"> |
1056 | <name>name</name> | 1132 | <name>name</name> |
1057 | <cstring>TextLabel2_2</cstring> | 1133 | <cstring>TextLabel2_2</cstring> |
1058 | </property> | 1134 | </property> |
1059 | <property stdset="1"> | 1135 | <property stdset="1"> |
1060 | <name>text</name> | 1136 | <name>text</name> |
1061 | <string>:</string> | 1137 | <string>:</string> |
1062 | </property> | 1138 | </property> |
1063 | </widget> | 1139 | </widget> |
1064 | <widget> | 1140 | <widget> |
1065 | <class>QSpinBox</class> | 1141 | <class>QSpinBox</class> |
1066 | <property stdset="1"> | 1142 | <property stdset="1"> |
1067 | <name>name</name> | 1143 | <name>name</name> |
1068 | <cstring>gpsdPort</cstring> | 1144 | <cstring>gpsdPort</cstring> |
1069 | </property> | 1145 | </property> |
1070 | <property stdset="1"> | 1146 | <property stdset="1"> |
1071 | <name>enabled</name> | 1147 | <name>enabled</name> |
1072 | <bool>false</bool> | 1148 | <bool>false</bool> |
1073 | </property> | 1149 | </property> |
1074 | <property stdset="1"> | 1150 | <property stdset="1"> |
1075 | <name>maxValue</name> | 1151 | <name>maxValue</name> |
1076 | <number>65535</number> | 1152 | <number>65535</number> |
1077 | </property> | 1153 | </property> |
1078 | <property stdset="1"> | 1154 | <property stdset="1"> |
1079 | <name>minValue</name> | 1155 | <name>minValue</name> |
1080 | <number>1024</number> | 1156 | <number>1024</number> |
1081 | </property> | 1157 | </property> |
1082 | <property stdset="1"> | 1158 | <property stdset="1"> |
1083 | <name>value</name> | 1159 | <name>value</name> |
1084 | <number>2947</number> | 1160 | <number>2947</number> |
1085 | </property> | 1161 | </property> |
1086 | </widget> | 1162 | </widget> |
1087 | </hbox> | 1163 | </hbox> |
1088 | </widget> | 1164 | </widget> |
1089 | <widget> | 1165 | <widget> |
1090 | <class>QLineEdit</class> | 1166 | <class>QLineEdit</class> |
1091 | <property stdset="1"> | 1167 | <property stdset="1"> |
1092 | <name>name</name> | 1168 | <name>name</name> |
1093 | <cstring>commandGPS</cstring> | 1169 | <cstring>commandGPS</cstring> |
1094 | </property> | 1170 | </property> |
1095 | <property stdset="1"> | 1171 | <property stdset="1"> |
1096 | <name>enabled</name> | 1172 | <name>enabled</name> |
1097 | <bool>false</bool> | 1173 | <bool>false</bool> |
1098 | </property> | 1174 | </property> |
1099 | <property stdset="1"> | 1175 | <property stdset="1"> |
1100 | <name>geometry</name> | 1176 | <name>geometry</name> |
1101 | <rect> | 1177 | <rect> |
1102 | <x>10</x> | 1178 | <x>10</x> |
1103 | <y>110</y> | 1179 | <y>110</y> |
1104 | <width>210</width> | 1180 | <width>210</width> |
1105 | <height>22</height> | 1181 | <height>22</height> |
1106 | </rect> | 1182 | </rect> |
1107 | </property> | 1183 | </property> |
1108 | <property stdset="1"> | 1184 | <property stdset="1"> |
1109 | <name>text</name> | 1185 | <name>text</name> |
1110 | <string>gpsd -p /dev/ttyS3 -s 57600</string> | 1186 | <string>gpsd -p /dev/ttyS3 -s 57600</string> |
1111 | </property> | 1187 | </property> |
1112 | </widget> | 1188 | </widget> |
1113 | <widget> | 1189 | <widget> |
1114 | <class>QCheckBox</class> | 1190 | <class>QCheckBox</class> |
1115 | <property stdset="1"> | 1191 | <property stdset="1"> |
1116 | <name>name</name> | 1192 | <name>name</name> |
1117 | <cstring>enableGPS</cstring> | 1193 | <cstring>enableGPS</cstring> |
1118 | </property> | 1194 | </property> |
1119 | <property stdset="1"> | 1195 | <property stdset="1"> |
1120 | <name>geometry</name> | 1196 | <name>geometry</name> |
1121 | <rect> | 1197 | <rect> |
1122 | <x>10</x> | 1198 | <x>10</x> |
1123 | <y>10</y> | 1199 | <y>10</y> |
1124 | <width>199</width> | 1200 | <width>199</width> |
1125 | <height>21</height> | 1201 | <height>21</height> |
1126 | </rect> | 1202 | </rect> |
1127 | </property> | 1203 | </property> |
1128 | <property stdset="1"> | 1204 | <property stdset="1"> |
1129 | <name>text</name> | 1205 | <name>text</name> |
1130 | <string>Enable GPS logging w/ gpsd</string> | 1206 | <string>Enable GPS logging w/ gpsd</string> |
1131 | </property> | 1207 | </property> |
1132 | </widget> | 1208 | </widget> |
1133 | <widget> | 1209 | <widget> |
1134 | <class>QCheckBox</class> | 1210 | <class>QCheckBox</class> |
1135 | <property stdset="1"> | 1211 | <property stdset="1"> |
1136 | <name>name</name> | 1212 | <name>name</name> |
1137 | <cstring>startGPS</cstring> | 1213 | <cstring>startGPS</cstring> |
1138 | </property> | 1214 | </property> |
1139 | <property stdset="1"> | 1215 | <property stdset="1"> |
1140 | <name>geometry</name> | 1216 | <name>geometry</name> |
1141 | <rect> | 1217 | <rect> |
1142 | <x>10</x> | 1218 | <x>10</x> |
1143 | <y>80</y> | 1219 | <y>80</y> |
1144 | <width>171</width> | 1220 | <width>171</width> |
1145 | <height>21</height> | 1221 | <height>21</height> |
1146 | </rect> | 1222 | </rect> |
1147 | </property> | 1223 | </property> |
1148 | <property stdset="1"> | 1224 | <property stdset="1"> |
1149 | <name>text</name> | 1225 | <name>text</name> |
1150 | <string>Start gpsd on localhost</string> | 1226 | <string>Start gpsd on localhost</string> |
1151 | </property> | 1227 | </property> |
1152 | </widget> | 1228 | </widget> |
1153 | </widget> | 1229 | </widget> |
1154 | </widget> | 1230 | </widget> |
1155 | </grid> | 1231 | </grid> |
1156 | </widget> | 1232 | </widget> |
1157 | <customwidgets> | 1233 | <customwidgets> |
1158 | <customwidget> | 1234 | <customwidget> |
1159 | <class>ProtocolListView</class> | 1235 | <class>ProtocolListView</class> |
1160 | <header location="local">protolistview.h</header> | 1236 | <header location="local">protolistview.h</header> |
1161 | <sizehint> | 1237 | <sizehint> |
1162 | <width>100</width> | 1238 | <width>100</width> |
1163 | <height>100</height> | 1239 | <height>100</height> |
1164 | </sizehint> | 1240 | </sizehint> |
1165 | <container>0</container> | 1241 | <container>0</container> |
1166 | <sizepolicy> | 1242 | <sizepolicy> |
1167 | <hordata>3</hordata> | 1243 | <hordata>3</hordata> |
1168 | <verdata>3</verdata> | 1244 | <verdata>3</verdata> |
1169 | </sizepolicy> | 1245 | </sizepolicy> |
1170 | <pixmap>image0</pixmap> | 1246 | <pixmap>image0</pixmap> |
1171 | </customwidget> | 1247 | </customwidget> |
1172 | </customwidgets> | 1248 | </customwidgets> |
1173 | <images> | 1249 | <images> |
1174 | <image> | 1250 | <image> |
1175 | <name>image0</name> | 1251 | <name>image0</name> |
1176 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> | 1252 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> |
1177 | </image> | 1253 | </image> |
1178 | </images> | 1254 | </images> |
1179 | <connections> | 1255 | <connections> |
1180 | <connection> | 1256 | <connection> |
1181 | <sender>hopChannels</sender> | 1257 | <sender>hopChannels</sender> |
1182 | <signal>toggled(bool)</signal> | 1258 | <signal>toggled(bool)</signal> |
1183 | <receiver>hopInterval</receiver> | 1259 | <receiver>hopInterval</receiver> |
1184 | <slot>setEnabled(bool)</slot> | 1260 | <slot>setEnabled(bool)</slot> |
1185 | </connection> | 1261 | </connection> |
1186 | <connection> | 1262 | <connection> |
1187 | <sender>hopChannels</sender> | 1263 | <sender>hopChannels</sender> |
1188 | <signal>toggled(bool)</signal> | 1264 | <signal>toggled(bool)</signal> |
1189 | <receiver>TextLabel1</receiver> | 1265 | <receiver>TextLabel1</receiver> |
1190 | <slot>setEnabled(bool)</slot> | 1266 | <slot>setEnabled(bool)</slot> |
1191 | </connection> | 1267 | </connection> |
1192 | <connection> | 1268 | <connection> |
1193 | <sender>enableActiveScanning</sender> | 1269 | <sender>enableActiveScanning</sender> |
1194 | <signal>toggled(bool)</signal> | 1270 | <signal>toggled(bool)</signal> |
1195 | <receiver>GroupBox3</receiver> | 1271 | <receiver>GroupBox3</receiver> |
1196 | <slot>setEnabled(bool)</slot> | 1272 | <slot>setEnabled(bool)</slot> |
1197 | </connection> | 1273 | </connection> |
1198 | <connection> | 1274 | <connection> |
1199 | <sender>enableActiveScanning</sender> | 1275 | <sender>enableActiveScanning</sender> |
1200 | <signal>toggled(bool)</signal> | 1276 | <signal>toggled(bool)</signal> |
1201 | <receiver>GroupBox4</receiver> | 1277 | <receiver>GroupBox4</receiver> |
1202 | <slot>setEnabled(bool)</slot> | 1278 | <slot>setEnabled(bool)</slot> |
1203 | </connection> | 1279 | </connection> |
1204 | <connection> | 1280 | <connection> |
1205 | <sender>writeCaptureFile</sender> | 1281 | <sender>writeCaptureFile</sender> |
1206 | <signal>toggled(bool)</signal> | 1282 | <signal>toggled(bool)</signal> |
1207 | <receiver>getCaptureFileName</receiver> | 1283 | <receiver>getCaptureFileName</receiver> |
1208 | <slot>setEnabled(bool)</slot> | 1284 | <slot>setEnabled(bool)</slot> |
1209 | </connection> | 1285 | </connection> |
1210 | <connection> | 1286 | <connection> |
1211 | <sender>writeCaptureFile</sender> | 1287 | <sender>writeCaptureFile</sender> |
1212 | <signal>toggled(bool)</signal> | 1288 | <signal>toggled(bool)</signal> |
1213 | <receiver>captureFileName</receiver> | 1289 | <receiver>captureFileName</receiver> |
1214 | <slot>setEnabled(bool)</slot> | 1290 | <slot>setEnabled(bool)</slot> |
1215 | </connection> | 1291 | </connection> |
1216 | <connection> | 1292 | <connection> |
1217 | <sender>writeCaptureFile</sender> | 1293 | <sender>writeCaptureFile</sender> |
1218 | <signal>toggled(bool)</signal> | 1294 | <signal>toggled(bool)</signal> |
1219 | <receiver>capturePackets</receiver> | 1295 | <receiver>capturePackets</receiver> |
1220 | <slot>setEnabled(bool)</slot> | 1296 | <slot>setEnabled(bool)</slot> |
1221 | </connection> | 1297 | </connection> |
1222 | <connection> | 1298 | <connection> |
1223 | <sender>enableGPS</sender> | 1299 | <sender>enableGPS</sender> |
1224 | <signal>toggled(bool)</signal> | 1300 | <signal>toggled(bool)</signal> |
1225 | <receiver>gpsdHost</receiver> | 1301 | <receiver>gpsdHost</receiver> |
1226 | <slot>setEnabled(bool)</slot> | 1302 | <slot>setEnabled(bool)</slot> |
1227 | </connection> | 1303 | </connection> |
1228 | <connection> | 1304 | <connection> |
1229 | <sender>enableGPS</sender> | 1305 | <sender>enableGPS</sender> |
1230 | <signal>toggled(bool)</signal> | 1306 | <signal>toggled(bool)</signal> |
1231 | <receiver>gpsdPort</receiver> | 1307 | <receiver>gpsdPort</receiver> |
1232 | <slot>setEnabled(bool)</slot> | 1308 | <slot>setEnabled(bool)</slot> |
1233 | </connection> | 1309 | </connection> |
1234 | <connection> | 1310 | <connection> |
1235 | <sender>startGPS</sender> | 1311 | <sender>startGPS</sender> |
1236 | <signal>toggled(bool)</signal> | 1312 | <signal>toggled(bool)</signal> |
1237 | <receiver>commandGPS</receiver> | 1313 | <receiver>commandGPS</receiver> |
1238 | <slot>setEnabled(bool)</slot> | 1314 | <slot>setEnabled(bool)</slot> |
1239 | </connection> | 1315 | </connection> |
1240 | </connections> | 1316 | </connections> |
1241 | </UI> | 1317 | </UI> |
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 84d4c63..3ec190b 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp | |||
@@ -1,304 +1,342 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | /* LOCAL */ | 16 | /* LOCAL */ |
17 | #include "configwindow.h" | 17 | #include "configwindow.h" |
18 | #include "mainwindow.h" | 18 | #include "mainwindow.h" |
19 | 19 | ||
20 | /* QT */ | 20 | /* QT */ |
21 | #include <qapplication.h> | 21 | #include <qapplication.h> |
22 | #include <qcheckbox.h> | 22 | #include <qcheckbox.h> |
23 | #include <qcombobox.h> | 23 | #include <qcombobox.h> |
24 | #include <qfile.h> | 24 | #include <qfile.h> |
25 | #include <qlineedit.h> | 25 | #include <qlineedit.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qmap.h> | 27 | #include <qmap.h> |
28 | #include <qpushbutton.h> | 28 | #include <qpushbutton.h> |
29 | #include <qtoolbutton.h> | 29 | #include <qtoolbutton.h> |
30 | #include <qspinbox.h> | 30 | #include <qspinbox.h> |
31 | #include <qtextstream.h> | 31 | #include <qtextstream.h> |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/onetwork.h> | 34 | #include <opie2/onetwork.h> |
35 | #include <opie2/oapplication.h> | 35 | #include <opie2/oapplication.h> |
36 | #include <opie2/oconfig.h> | 36 | #include <opie2/oconfig.h> |
37 | 37 | ||
38 | WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0; | 38 | WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0; |
39 | 39 | ||
40 | WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) | 40 | WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) |
41 | :WellenreiterConfigBase( parent, name, true, f ) | 41 | :WellenreiterConfigBase( parent, name, true, f ) |
42 | { | 42 | { |
43 | _devicetype[ "cisco" ] = DEVTYPE_CISCO; | 43 | _devicetype[ "cisco" ] = DEVTYPE_CISCO; |
44 | _devicetype[ "wlan-ng" ] = DEVTYPE_WLAN_NG; | 44 | _devicetype[ "wlan-ng" ] = DEVTYPE_WLAN_NG; |
45 | _devicetype[ "hostap" ] = DEVTYPE_HOSTAP; | 45 | _devicetype[ "hostap" ] = DEVTYPE_HOSTAP; |
46 | _devicetype[ "orinoco" ] = DEVTYPE_ORINOCO; | 46 | _devicetype[ "orinoco" ] = DEVTYPE_ORINOCO; |
47 | _devicetype[ "<manual>" ] = DEVTYPE_MANUAL; | 47 | _devicetype[ "<manual>" ] = DEVTYPE_MANUAL; |
48 | _devicetype[ "<file>" ] = DEVTYPE_FILE; | 48 | _devicetype[ "<file>" ] = DEVTYPE_FILE; |
49 | 49 | ||
50 | // gather possible interface names from ONetwork | 50 | // gather possible interface names from ONetwork |
51 | ONetwork* net = ONetwork::instance(); | 51 | ONetwork* net = ONetwork::instance(); |
52 | ONetwork::InterfaceIterator it = net->iterator(); | 52 | ONetwork::InterfaceIterator it = net->iterator(); |
53 | while ( it.current() ) | 53 | while ( it.current() ) |
54 | { | 54 | { |
55 | if ( it.current()->isWireless() ) | 55 | if ( it.current()->isWireless() ) |
56 | interfaceName->insertItem( it.current()->name() ); | 56 | interfaceName->insertItem( it.current()->name() ); |
57 | ++it; | 57 | ++it; |
58 | } | 58 | } |
59 | 59 | ||
60 | if ( !load() ) // no configuration present | 60 | load(); |
61 | { | ||
62 | // try to guess device type | ||
63 | QFile m( "/proc/modules" ); | ||
64 | if ( m.open( IO_ReadOnly ) ) | ||
65 | { | ||
66 | int devicetype(0); | ||
67 | QString line; | ||
68 | QTextStream modules( &m ); | ||
69 | while( !modules.atEnd() && !devicetype ) | ||
70 | { | ||
71 | modules >> line; | ||
72 | if ( line.contains( "cisco" ) ) devicetype = DEVTYPE_CISCO; | ||
73 | else if ( line.contains( "hostap" ) ) devicetype = DEVTYPE_HOSTAP; | ||
74 | else if ( line.contains( "prism" ) ) devicetype = DEVTYPE_WLAN_NG; | ||
75 | else if ( line.contains( "orinoco" ) ) devicetype = DEVTYPE_ORINOCO; | ||
76 | } | ||
77 | if ( devicetype ) | ||
78 | { | ||
79 | deviceType->setCurrentItem( devicetype ); | ||
80 | _guess = devicetype; | ||
81 | qDebug( "Wellenreiter: guessed device type to be #%d", devicetype ); | ||
82 | } | ||
83 | } | ||
84 | } | ||
85 | 61 | ||
86 | #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here | 62 | #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here |
87 | QPushButton* okButton = new QPushButton( "ok", this ); | 63 | QPushButton* okButton = new QPushButton( "ok", this ); |
88 | okButton->show(); | 64 | okButton->show(); |
89 | WellenreiterConfigBaseLayout->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui | 65 | WellenreiterConfigBaseLayout->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui |
90 | connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); | 66 | connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); |
91 | #endif | 67 | #endif |
92 | 68 | ||
93 | WellenreiterConfigWindow::_instance = this; | 69 | WellenreiterConfigWindow::_instance = this; |
94 | 70 | ||
95 | connect( deviceType, SIGNAL( activated(int) ), this, SLOT( changedDeviceType(int) ) ); | 71 | connect( deviceType, SIGNAL( activated(int) ), this, SLOT( changedDeviceType(int) ) ); |
96 | connect( getCaptureFileName, SIGNAL( clicked() ), this, SLOT( getCaptureFileNameClicked() ) ); | 72 | connect( getCaptureFileName, SIGNAL( clicked() ), this, SLOT( getCaptureFileNameClicked() ) ); |
97 | 73 | ||
98 | // make the checkbox 'channelAll' control all other channels | 74 | // make the checkbox 'channelAll' control all other channels |
99 | connect( channelAll, SIGNAL( stateChanged(int) ), this, SLOT( channelAllClicked(int) ) ); | 75 | connect( channelAll, SIGNAL( stateChanged(int) ), this, SLOT( channelAllClicked(int) ) ); |
76 | |||
77 | connect( autodetect, SIGNAL( clicked() ), this, SLOT( performAutodetection() ) ); | ||
100 | }; | 78 | }; |
101 | 79 | ||
102 | 80 | ||
103 | WellenreiterConfigWindow::~WellenreiterConfigWindow() | 81 | WellenreiterConfigWindow::~WellenreiterConfigWindow() |
104 | { | 82 | { |
105 | save(); | 83 | save(); |
106 | } | 84 | } |
107 | 85 | ||
108 | 86 | ||
87 | void WellenreiterConfigWindow::performAutodetection() | ||
88 | { | ||
89 | //TODO: insert modal splash screen here | ||
90 | // and sleep a second, so that it looks | ||
91 | // like we're actually doing something fancy... ;-) | ||
92 | |||
93 | qDebug( "WellenreiterConfigWindow::performAutodetection()" ); | ||
94 | |||
95 | // try to guess device type | ||
96 | QFile m( "/proc/modules" ); | ||
97 | if ( m.open( IO_ReadOnly ) ) | ||
98 | { | ||
99 | int devicetype(0); | ||
100 | QString line; | ||
101 | QTextStream modules( &m ); | ||
102 | while( !modules.atEnd() && !devicetype ) | ||
103 | { | ||
104 | modules >> line; | ||
105 | if ( line.contains( "cisco" ) ) devicetype = DEVTYPE_CISCO; | ||
106 | else if ( line.contains( "hostap" ) ) devicetype = DEVTYPE_HOSTAP; | ||
107 | else if ( line.contains( "prism" ) ) devicetype = DEVTYPE_WLAN_NG; | ||
108 | else if ( line.contains( "orinoco" ) ) devicetype = DEVTYPE_ORINOCO; | ||
109 | } | ||
110 | if ( devicetype ) | ||
111 | { | ||
112 | deviceType->setCurrentItem( devicetype ); | ||
113 | _guess = devicetype; | ||
114 | qDebug( "Wellenreiter: guessed device type to be #%d", devicetype ); | ||
115 | } | ||
116 | } | ||
117 | } | ||
118 | |||
119 | |||
109 | int WellenreiterConfigWindow::driverType() const | 120 | int WellenreiterConfigWindow::driverType() const |
110 | { | 121 | { |
111 | QString name = deviceType->currentText(); | 122 | QString name = deviceType->currentText(); |
112 | if ( _devicetype.contains( name ) ) | 123 | if ( _devicetype.contains( name ) ) |
113 | { | 124 | { |
114 | return _devicetype[name]; | 125 | return _devicetype[name]; |
115 | } | 126 | } |
116 | else | 127 | else |
117 | { | 128 | { |
118 | return 0; | 129 | return 0; |
119 | } | 130 | } |
120 | }; | 131 | }; |
121 | 132 | ||
122 | 133 | ||
123 | int WellenreiterConfigWindow::hoppingInterval() const | 134 | int WellenreiterConfigWindow::hoppingInterval() const |
124 | { | 135 | { |
125 | return hopInterval->cleanText().toInt(); | 136 | return hopInterval->cleanText().toInt(); |
126 | } | 137 | } |
127 | 138 | ||
128 | 139 | ||
129 | bool WellenreiterConfigWindow::usePrismHeader() const | 140 | bool WellenreiterConfigWindow::usePrismHeader() const |
130 | { | 141 | { |
131 | return prismHeader->isChecked(); | 142 | return prismHeader->isChecked(); |
132 | } | 143 | } |
133 | 144 | ||
134 | 145 | ||
135 | bool WellenreiterConfigWindow::isChannelChecked( int channel ) const | 146 | bool WellenreiterConfigWindow::isChannelChecked( int channel ) const |
136 | { | 147 | { |
137 | switch ( channel ) | 148 | switch ( channel ) |
138 | { | 149 | { |
139 | case 1: return channel1->isOn(); | 150 | case 1: return channel1->isOn(); |
140 | case 2: return channel2->isOn(); | 151 | case 2: return channel2->isOn(); |
141 | case 3: return channel3->isOn(); | 152 | case 3: return channel3->isOn(); |
142 | case 4: return channel4->isOn(); | 153 | case 4: return channel4->isOn(); |
143 | case 5: return channel5->isOn(); | 154 | case 5: return channel5->isOn(); |
144 | case 6: return channel6->isOn(); | 155 | case 6: return channel6->isOn(); |
145 | case 7: return channel7->isOn(); | 156 | case 7: return channel7->isOn(); |
146 | case 8: return channel8->isOn(); | 157 | case 8: return channel8->isOn(); |
147 | case 9: return channel9->isOn(); | 158 | case 9: return channel9->isOn(); |
148 | case 10: return channel10->isOn(); | 159 | case 10: return channel10->isOn(); |
149 | case 11: return channel11->isOn(); | 160 | case 11: return channel11->isOn(); |
150 | case 12: return channel12->isOn(); | 161 | case 12: return channel12->isOn(); |
151 | case 13: return channel13->isOn(); | 162 | case 13: return channel13->isOn(); |
152 | case 14: return channel14->isOn(); | 163 | case 14: return channel14->isOn(); |
153 | } | 164 | } |
154 | } | 165 | } |
155 | 166 | ||
156 | 167 | ||
157 | void WellenreiterConfigWindow::changedDeviceType(int t) | 168 | void WellenreiterConfigWindow::changedDeviceType(int t) |
158 | { | 169 | { |
159 | if ( t != DEVTYPE_FILE ) return; | 170 | if ( t != DEVTYPE_FILE ) return; |
160 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(false); | 171 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(false); |
161 | if ( !name.isEmpty() && QFile::exists( name ) ) | 172 | if ( !name.isEmpty() && QFile::exists( name ) ) |
162 | { | 173 | { |
163 | interfaceName->insertItem( name ); | 174 | interfaceName->insertItem( name ); |
164 | interfaceName->setCurrentItem( interfaceName->count()-1 ); | 175 | interfaceName->setCurrentItem( interfaceName->count()-1 ); |
165 | } | 176 | } |
166 | else | 177 | else |
167 | { | 178 | { |
168 | deviceType->setCurrentItem( _guess ); | 179 | deviceType->setCurrentItem( _guess ); |
169 | } | 180 | } |
170 | 181 | ||
171 | } | 182 | } |
172 | 183 | ||
173 | 184 | ||
174 | void WellenreiterConfigWindow::getCaptureFileNameClicked() | 185 | void WellenreiterConfigWindow::getCaptureFileNameClicked() |
175 | { | 186 | { |
176 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(true); | 187 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(true); |
177 | qDebug( "name = %s", (const char*) name ); | 188 | qDebug( "name = %s", (const char*) name ); |
178 | if ( !name.isEmpty() ) | 189 | if ( !name.isEmpty() ) |
179 | { | 190 | { |
180 | captureFileName->setText( name ); | 191 | captureFileName->setText( name ); |
181 | } | 192 | } |
182 | } | 193 | } |
183 | 194 | ||
184 | 195 | ||
185 | void WellenreiterConfigWindow::channelAllClicked(int state) | 196 | void WellenreiterConfigWindow::channelAllClicked(int state) |
186 | { | 197 | { |
187 | bool b = state; | 198 | bool b = state; |
188 | channel1->setChecked( b ); | 199 | channel1->setChecked( b ); |
189 | channel2->setChecked( b ); | 200 | channel2->setChecked( b ); |
190 | channel3->setChecked( b ); | 201 | channel3->setChecked( b ); |
191 | channel4->setChecked( b ); | 202 | channel4->setChecked( b ); |
192 | channel5->setChecked( b ); | 203 | channel5->setChecked( b ); |
193 | channel6->setChecked( b ); | 204 | channel6->setChecked( b ); |
194 | channel7->setChecked( b ); | 205 | channel7->setChecked( b ); |
195 | channel8->setChecked( b ); | 206 | channel8->setChecked( b ); |
196 | channel9->setChecked( b ); | 207 | channel9->setChecked( b ); |
197 | channel10->setChecked( b ); | 208 | channel10->setChecked( b ); |
198 | channel11->setChecked( b ); | 209 | channel11->setChecked( b ); |
199 | channel12->setChecked( b ); | 210 | channel12->setChecked( b ); |
200 | channel13->setChecked( b ); | 211 | channel13->setChecked( b ); |
201 | channel14->setChecked( b ); | 212 | channel14->setChecked( b ); |
202 | } | 213 | } |
203 | 214 | ||
204 | 215 | ||
205 | bool WellenreiterConfigWindow::useGPS() const | 216 | bool WellenreiterConfigWindow::useGPS() const |
206 | { | 217 | { |
207 | return enableGPS->isChecked(); | 218 | return enableGPS->isChecked(); |
208 | } | 219 | } |
209 | 220 | ||
210 | 221 | ||
211 | const QString WellenreiterConfigWindow::gpsHost() const | 222 | const QString WellenreiterConfigWindow::gpsHost() const |
212 | { | 223 | { |
213 | return useGPS() ? gpsdHost->currentText() : QString::null; | 224 | return useGPS() ? gpsdHost->currentText() : QString::null; |
214 | } | 225 | } |
215 | 226 | ||
216 | 227 | ||
217 | int WellenreiterConfigWindow::gpsPort() const | 228 | int WellenreiterConfigWindow::gpsPort() const |
218 | { | 229 | { |
219 | bool ok; | 230 | bool ok; |
220 | return useGPS() ? gpsdPort->value() : -1; | 231 | return useGPS() ? gpsdPort->value() : -1; |
221 | } | 232 | } |
222 | 233 | ||
223 | 234 | ||
224 | bool WellenreiterConfigWindow::load() | 235 | void WellenreiterConfigWindow::load() |
225 | { | 236 | { |
226 | #ifdef Q_WS_X11 | 237 | #ifdef Q_WS_X11 |
227 | #warning Persistent Configuration not yet implemented for standalone X11 build | 238 | #warning Persistent Configuration not yet implemented for standalone X11 build |
228 | return false; | 239 | performAutodetection(); |
229 | #else | 240 | #else |
230 | qDebug( "loading configuration settings..." ); | 241 | qDebug( "loading configuration settings..." ); |
231 | 242 | ||
232 | /* This is dumb monkey typing stuff... We _need_ to do this automatically! */ | 243 | /* This is dumb monkey typing stuff... We _need_ to do this automatically! */ |
233 | 244 | ||
234 | OConfig* c = oApp->config(); | 245 | OConfig* c = oApp->config(); |
235 | 246 | ||
236 | c->setGroup( "Interface" ); | 247 | c->setGroup( "Interface" ); |
237 | //interfaceName->setCurrentText( c->readEntry( "name" ) ); | 248 | |
238 | //deviceType->setCurrentText( c->readEntry( "type", "<select>" ) ); | 249 | QString interface = c->readEntry( "name", "<none>" ); |
250 | if ( interface != "<none>" ) | ||
251 | { | ||
252 | #if QT_VERSION < 300 | ||
253 | interfaceName->insertItem( interface, 0 ); | ||
254 | interfaceName->setCurrentItem( 0 ); | ||
255 | #else | ||
256 | interfaceName->setCurrentText( interface ); | ||
257 | #endif | ||
258 | |||
259 | QString device = c->readEntry( "type", "<select>" ); | ||
260 | #if QT_VERSION < 300 | ||
261 | for ( int i = 0; i < deviceType->count(); ++i ) | ||
262 | { | ||
263 | if ( deviceType->text( i ) == device ) | ||
264 | { | ||
265 | deviceType->setCurrentItem( i ); | ||
266 | break; | ||
267 | } | ||
268 | } | ||
269 | #else | ||
270 | deviceType->setCurrentText( device ); | ||
271 | #endif | ||
272 | } | ||
273 | else | ||
274 | { | ||
275 | performAutodetection(); | ||
276 | } | ||
277 | |||
239 | prismHeader->setChecked( c->readBoolEntry( "prism", false ) ); | 278 | prismHeader->setChecked( c->readBoolEntry( "prism", false ) ); |
240 | hopChannels->setChecked( c->readBoolEntry( "hop", true ) ); | 279 | hopChannels->setChecked( c->readBoolEntry( "hop", true ) ); |
241 | hopInterval->setValue( c->readNumEntry( "interval", 100 ) ); | 280 | hopInterval->setValue( c->readNumEntry( "interval", 100 ) ); |
242 | adaptiveHopping->setChecked( c->readBoolEntry( "adaptive", true ) ); | 281 | adaptiveHopping->setChecked( c->readBoolEntry( "adaptive", true ) ); |
243 | 282 | ||
244 | c->setGroup( "Capture" ); | 283 | c->setGroup( "Capture" ); |
245 | captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); | 284 | captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); |
246 | 285 | ||
247 | c->setGroup( "UI" ); | 286 | c->setGroup( "UI" ); |
248 | lookupVendor->setChecked( c->readBoolEntry( "lookupVendor", true ) ); | 287 | lookupVendor->setChecked( c->readBoolEntry( "lookupVendor", true ) ); |
249 | openTree->setChecked( c->readBoolEntry( "openTree", true ) ); | 288 | openTree->setChecked( c->readBoolEntry( "openTree", true ) ); |
250 | disablePM->setChecked( c->readBoolEntry( "disablePM", true ) ); | 289 | disablePM->setChecked( c->readBoolEntry( "disablePM", true ) ); |
251 | 290 | ||
252 | c->setGroup( "GPS" ); | 291 | c->setGroup( "GPS" ); |
253 | enableGPS->setChecked( c->readBoolEntry( "use", false ) ); | 292 | enableGPS->setChecked( c->readBoolEntry( "use", false ) ); |
254 | #if QT_VERSION < 300 | 293 | #if QT_VERSION < 300 |
255 | gpsdHost->insertItem( c->readEntry( "host", "localhost" ), 0 ); | 294 | gpsdHost->insertItem( c->readEntry( "host", "localhost" ), 0 ); |
256 | gpsdHost->setCurrentItem( 0 ); | 295 | gpsdHost->setCurrentItem( 0 ); |
257 | #else | 296 | #else |
258 | gpsdHost->setCurrentText( c->readEntry( "host", "localhost" ) ); | 297 | gpsdHost->setCurrentText( c->readEntry( "host", "localhost" ) ); |
259 | #endif | 298 | #endif |
260 | gpsdPort->setValue( c->readNumEntry( "port", 2947 ) ); | 299 | gpsdPort->setValue( c->readNumEntry( "port", 2947 ) ); |
261 | startGPS->setChecked( c->readBoolEntry( "start", false ) ); | 300 | startGPS->setChecked( c->readBoolEntry( "start", false ) ); |
262 | commandGPS->setText( c->readEntry( "command", "gpsd -p /dev/ttyS3 -s 57600" ) ); | 301 | commandGPS->setText( c->readEntry( "command", "gpsd -p /dev/ttyS3 -s 57600" ) ); |
263 | 302 | ||
264 | return false; // false = perform autodetection; true = use config settings | ||
265 | #endif | 303 | #endif |
266 | } | 304 | } |
267 | 305 | ||
268 | 306 | ||
269 | void WellenreiterConfigWindow::save() | 307 | void WellenreiterConfigWindow::save() |
270 | { | 308 | { |
271 | #ifdef Q_WS_X11 | 309 | #ifdef Q_WS_X11 |
272 | #warning Persistent Configuration not yet implemented for standalone X11 build | 310 | #warning Persistent Configuration not yet implemented for standalone X11 build |
273 | #else | 311 | #else |
274 | qDebug( "saving configuration settings..." ); | 312 | qDebug( "saving configuration settings..." ); |
275 | 313 | ||
276 | /* This is dumb monkey typing stuff... We _need_ to do this automatically! */ | 314 | /* This is dumb monkey typing stuff... We _need_ to do this automatically! */ |
277 | 315 | ||
278 | OConfig* c = oApp->config(); | 316 | OConfig* c = oApp->config(); |
279 | 317 | ||
280 | c->setGroup( "Interface" ); | 318 | c->setGroup( "Interface" ); |
281 | c->writeEntry( "name", interfaceName->currentText() ); | 319 | c->writeEntry( "name", interfaceName->currentText() ); |
282 | c->writeEntry( "type", deviceType->currentText() ); | 320 | c->writeEntry( "type", deviceType->currentText() ); |
283 | c->writeEntry( "prism", prismHeader->isChecked() ); | 321 | c->writeEntry( "prism", prismHeader->isChecked() ); |
284 | c->writeEntry( "hop", hopChannels->isChecked() ); | 322 | c->writeEntry( "hop", hopChannels->isChecked() ); |
285 | c->writeEntry( "interval", hopInterval->value() ); | 323 | c->writeEntry( "interval", hopInterval->value() ); |
286 | c->writeEntry( "adaptive", adaptiveHopping->isChecked() ); | 324 | c->writeEntry( "adaptive", adaptiveHopping->isChecked() ); |
287 | 325 | ||
288 | c->setGroup( "Capture" ); | 326 | c->setGroup( "Capture" ); |
289 | c->writeEntry( "filename", captureFileName->text() ); | 327 | c->writeEntry( "filename", captureFileName->text() ); |
290 | 328 | ||
291 | c->setGroup( "UI" ); | 329 | c->setGroup( "UI" ); |
292 | c->writeEntry( "lookupVendor", lookupVendor->isChecked() ); | 330 | c->writeEntry( "lookupVendor", lookupVendor->isChecked() ); |
293 | c->writeEntry( "openTree", openTree->isChecked() ); | 331 | c->writeEntry( "openTree", openTree->isChecked() ); |
294 | c->writeEntry( "disablePM", disablePM->isChecked() ); | 332 | c->writeEntry( "disablePM", disablePM->isChecked() ); |
295 | 333 | ||
296 | c->setGroup( "GPS" ); | 334 | c->setGroup( "GPS" ); |
297 | c->writeEntry( "use", enableGPS->isChecked() ); | 335 | c->writeEntry( "use", enableGPS->isChecked() ); |
298 | c->writeEntry( "host", gpsdHost->currentText() ); | 336 | c->writeEntry( "host", gpsdHost->currentText() ); |
299 | c->writeEntry( "port", gpsdPort->value() ); | 337 | c->writeEntry( "port", gpsdPort->value() ); |
300 | c->writeEntry( "start", startGPS->isChecked() ); | 338 | c->writeEntry( "start", startGPS->isChecked() ); |
301 | c->writeEntry( "command", commandGPS->text() ); | 339 | c->writeEntry( "command", commandGPS->text() ); |
302 | 340 | ||
303 | #endif | 341 | #endif |
304 | } | 342 | } |
diff --git a/noncore/net/wellenreiter/gui/configwindow.h b/noncore/net/wellenreiter/gui/configwindow.h index 2986320..80b4d2b 100644 --- a/noncore/net/wellenreiter/gui/configwindow.h +++ b/noncore/net/wellenreiter/gui/configwindow.h | |||
@@ -1,71 +1,71 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #ifndef WELLENREITERCONFIGWINDOW_H | 16 | #ifndef WELLENREITERCONFIGWINDOW_H |
17 | #define WELLENREITERCONFIGWINDOW_H | 17 | #define WELLENREITERCONFIGWINDOW_H |
18 | 18 | ||
19 | #include "configbase.h" | 19 | #include "configbase.h" |
20 | #include <qmap.h> | 20 | #include <qmap.h> |
21 | #include <qcombobox.h> | 21 | #include <qcombobox.h> |
22 | #include <qstring.h> | 22 | #include <qstring.h> |
23 | 23 | ||
24 | const int DEVTYPE_SELECT = 0; | 24 | const int DEVTYPE_SELECT = 0; |
25 | const int DEVTYPE_CISCO = 1; | 25 | const int DEVTYPE_CISCO = 1; |
26 | const int DEVTYPE_WLAN_NG = 2; | 26 | const int DEVTYPE_WLAN_NG = 2; |
27 | const int DEVTYPE_HOSTAP = 3; | 27 | const int DEVTYPE_HOSTAP = 3; |
28 | const int DEVTYPE_ORINOCO = 4; | 28 | const int DEVTYPE_ORINOCO = 4; |
29 | const int DEVTYPE_MANUAL = 5; | 29 | const int DEVTYPE_MANUAL = 5; |
30 | const int DEVTYPE_FILE = 6; | 30 | const int DEVTYPE_FILE = 6; |
31 | 31 | ||
32 | class WellenreiterConfigWindow; | 32 | class WellenreiterConfigWindow; |
33 | 33 | ||
34 | class WellenreiterConfigWindow : public WellenreiterConfigBase | 34 | class WellenreiterConfigWindow : public WellenreiterConfigBase |
35 | { | 35 | { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | 37 | ||
38 | public: | 38 | public: |
39 | WellenreiterConfigWindow( QWidget * parent = 0, const char * name = "WellenreiterConfigWindow", WFlags f = 0 ); | 39 | WellenreiterConfigWindow( QWidget * parent = 0, const char * name = "WellenreiterConfigWindow", WFlags f = 0 ); |
40 | ~WellenreiterConfigWindow(); | 40 | ~WellenreiterConfigWindow(); |
41 | 41 | ||
42 | int driverType() const; | 42 | int driverType() const; |
43 | const QString soundOnNetwork() const { return "";/*netSound->currentText();*/ }; | 43 | const QString soundOnNetwork() const { return "";/*netSound->currentText();*/ }; |
44 | const QString soundOnBeacon() const { return "";/*beaconSound->currentText();*/ }; | 44 | const QString soundOnBeacon() const { return "";/*beaconSound->currentText();*/ }; |
45 | static WellenreiterConfigWindow* instance() { return _instance; }; | 45 | static WellenreiterConfigWindow* instance() { return _instance; }; |
46 | 46 | ||
47 | int hoppingInterval() const; | 47 | int hoppingInterval() const; |
48 | bool usePrismHeader() const; | 48 | bool usePrismHeader() const; |
49 | bool isChannelChecked( int ) const; | 49 | bool isChannelChecked( int ) const; |
50 | 50 | ||
51 | bool useGPS() const; | 51 | bool useGPS() const; |
52 | const QString gpsHost() const; | 52 | const QString gpsHost() const; |
53 | int gpsPort() const; | 53 | int gpsPort() const; |
54 | 54 | ||
55 | void save(); | 55 | void save(); |
56 | bool load(); | 56 | void load(); |
57 | 57 | ||
58 | public slots: | 58 | public slots: |
59 | void changedDeviceType(int); | 59 | void changedDeviceType(int); |
60 | void getCaptureFileNameClicked(); | 60 | void getCaptureFileNameClicked(); |
61 | 61 | void performAutodetection(); | |
62 | void channelAllClicked(int); | 62 | void channelAllClicked(int); |
63 | 63 | ||
64 | protected: | 64 | protected: |
65 | QMap<QString, int> _devicetype; | 65 | QMap<QString, int> _devicetype; |
66 | static WellenreiterConfigWindow* _instance; | 66 | static WellenreiterConfigWindow* _instance; |
67 | int _guess; | 67 | int _guess; |
68 | 68 | ||
69 | }; | 69 | }; |
70 | 70 | ||
71 | #endif | 71 | #endif |