summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-05-06 23:00:41 (UTC)
committer mickeyl <mickeyl>2003-05-06 23:00:41 (UTC)
commit9490e91d3876a8280f3f9a3839fddf95b957b879 (patch) (unidiff)
treeec1fdb2a2713d26785110918ce9a8d2fb47fcb20
parent1a194aafffe37127758036e80ff55ead0c0e118d (diff)
downloadopie-9490e91d3876a8280f3f9a3839fddf95b957b879.zip
opie-9490e91d3876a8280f3f9a3839fddf95b957b879.tar.gz
opie-9490e91d3876a8280f3f9a3839fddf95b957b879.tar.bz2
fix config dialog in respect to specify writing capture files
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configbase.ui16
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp2
2 files changed, 17 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/configbase.ui b/noncore/net/wellenreiter/gui/configbase.ui
index d85956e..7504ebc 100644
--- a/noncore/net/wellenreiter/gui/configbase.ui
+++ b/noncore/net/wellenreiter/gui/configbase.ui
@@ -1,853 +1,869 @@
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>209</width> 14 <width>209</width>
15 <height>287</height> 15 <height>287</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 <grid>
60 <property stdset="1"> 60 <property stdset="1">
61 <name>margin</name> 61 <name>margin</name>
62 <number>5</number> 62 <number>5</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>3</number>
67 </property> 67 </property>
68 <widget row="0" column="0" > 68 <widget row="0" column="0" >
69 <class>QLabel</class> 69 <class>QLabel</class>
70 <property stdset="1"> 70 <property stdset="1">
71 <name>name</name> 71 <name>name</name>
72 <cstring>TextLabel1_2</cstring> 72 <cstring>TextLabel1_2</cstring>
73 </property> 73 </property>
74 <property stdset="1"> 74 <property stdset="1">
75 <name>enabled</name> 75 <name>enabled</name>
76 <bool>true</bool> 76 <bool>true</bool>
77 </property> 77 </property>
78 <property stdset="1"> 78 <property stdset="1">
79 <name>text</name> 79 <name>text</name>
80 <string>Name:</string> 80 <string>Name:</string>
81 </property> 81 </property>
82 </widget> 82 </widget>
83 <widget row="1" column="0" > 83 <widget row="1" column="0" >
84 <class>QLabel</class> 84 <class>QLabel</class>
85 <property stdset="1"> 85 <property stdset="1">
86 <name>name</name> 86 <name>name</name>
87 <cstring>TextLabel2_3</cstring> 87 <cstring>TextLabel2_3</cstring>
88 </property> 88 </property>
89 <property stdset="1"> 89 <property stdset="1">
90 <name>enabled</name> 90 <name>enabled</name>
91 <bool>true</bool> 91 <bool>true</bool>
92 </property> 92 </property>
93 <property stdset="1"> 93 <property stdset="1">
94 <name>text</name> 94 <name>text</name>
95 <string>Driver:</string> 95 <string>Driver:</string>
96 </property> 96 </property>
97 </widget> 97 </widget>
98 <widget row="4" column="0" rowspan="1" colspan="2" > 98 <widget row="4" column="0" rowspan="1" colspan="2" >
99 <class>QCheckBox</class> 99 <class>QCheckBox</class>
100 <property stdset="1"> 100 <property stdset="1">
101 <name>name</name> 101 <name>name</name>
102 <cstring>hopChannels</cstring> 102 <cstring>hopChannels</cstring>
103 </property> 103 </property>
104 <property stdset="1"> 104 <property stdset="1">
105 <name>text</name> 105 <name>text</name>
106 <string>Hop Channels</string> 106 <string>Hop Channels</string>
107 </property> 107 </property>
108 <property stdset="1"> 108 <property stdset="1">
109 <name>checked</name> 109 <name>checked</name>
110 <bool>true</bool> 110 <bool>true</bool>
111 </property> 111 </property>
112 </widget> 112 </widget>
113 <widget row="2" column="0" rowspan="1" colspan="4" > 113 <widget row="2" column="0" rowspan="1" colspan="4" >
114 <class>QCheckBox</class> 114 <class>QCheckBox</class>
115 <property stdset="1"> 115 <property stdset="1">
116 <name>name</name> 116 <name>name</name>
117 <cstring>prismHeader</cstring> 117 <cstring>prismHeader</cstring>
118 </property> 118 </property>
119 <property stdset="1"> 119 <property stdset="1">
120 <name>text</name> 120 <name>text</name>
121 <string>Use additional PRISM header</string> 121 <string>Use additional PRISM header</string>
122 </property> 122 </property>
123 </widget> 123 </widget>
124 <widget row="4" column="3" > 124 <widget row="4" column="3" >
125 <class>QSpinBox</class> 125 <class>QSpinBox</class>
126 <property stdset="1"> 126 <property stdset="1">
127 <name>name</name> 127 <name>name</name>
128 <cstring>hopInterval</cstring> 128 <cstring>hopInterval</cstring>
129 </property> 129 </property>
130 <property stdset="1"> 130 <property stdset="1">
131 <name>enabled</name> 131 <name>enabled</name>
132 <bool>true</bool> 132 <bool>true</bool>
133 </property> 133 </property>
134 <property stdset="1"> 134 <property stdset="1">
135 <name>suffix</name> 135 <name>suffix</name>
136 <string> ms</string> 136 <string> ms</string>
137 </property> 137 </property>
138 <property stdset="1"> 138 <property stdset="1">
139 <name>maxValue</name> 139 <name>maxValue</name>
140 <number>2000</number> 140 <number>2000</number>
141 </property> 141 </property>
142 <property stdset="1"> 142 <property stdset="1">
143 <name>minValue</name> 143 <name>minValue</name>
144 <number>100</number> 144 <number>100</number>
145 </property> 145 </property>
146 <property stdset="1"> 146 <property stdset="1">
147 <name>lineStep</name> 147 <name>lineStep</name>
148 <number>100</number> 148 <number>100</number>
149 </property> 149 </property>
150 <property stdset="1"> 150 <property stdset="1">
151 <name>value</name> 151 <name>value</name>
152 <number>1000</number> 152 <number>1000</number>
153 </property> 153 </property>
154 <property> 154 <property>
155 <name>whatsThis</name> 155 <name>whatsThis</name>
156 <string>Choose the channel hop interval.</string> 156 <string>Choose the channel hop interval.</string>
157 </property> 157 </property>
158 </widget> 158 </widget>
159 <widget row="5" column="0" rowspan="1" colspan="4" > 159 <widget row="5" column="0" rowspan="1" colspan="4" >
160 <class>QGroupBox</class> 160 <class>QGroupBox</class>
161 <property stdset="1"> 161 <property stdset="1">
162 <name>name</name> 162 <name>name</name>
163 <cstring>GroupBox1</cstring> 163 <cstring>GroupBox1</cstring>
164 </property> 164 </property>
165 <property stdset="1"> 165 <property stdset="1">
166 <name>title</name> 166 <name>title</name>
167 <string>Scan on channel</string> 167 <string>Scan on channel</string>
168 </property> 168 </property>
169 <property> 169 <property>
170 <name>layoutMargin</name> 170 <name>layoutMargin</name>
171 </property> 171 </property>
172 <property> 172 <property>
173 <name>layoutSpacing</name> 173 <name>layoutSpacing</name>
174 </property> 174 </property>
175 <grid> 175 <grid>
176 <property stdset="1"> 176 <property stdset="1">
177 <name>margin</name> 177 <name>margin</name>
178 <number>4</number> 178 <number>4</number>
179 </property> 179 </property>
180 <property stdset="1"> 180 <property stdset="1">
181 <name>spacing</name> 181 <name>spacing</name>
182 <number>2</number> 182 <number>2</number>
183 </property> 183 </property>
184 <widget row="1" column="1" > 184 <widget row="1" column="1" >
185 <class>QCheckBox</class> 185 <class>QCheckBox</class>
186 <property stdset="1"> 186 <property stdset="1">
187 <name>name</name> 187 <name>name</name>
188 <cstring>channel6</cstring> 188 <cstring>channel6</cstring>
189 </property> 189 </property>
190 <property stdset="1"> 190 <property stdset="1">
191 <name>text</name> 191 <name>text</name>
192 <string>6</string> 192 <string>6</string>
193 </property> 193 </property>
194 </widget> 194 </widget>
195 <widget row="1" column="3" > 195 <widget row="1" column="3" >
196 <class>QCheckBox</class> 196 <class>QCheckBox</class>
197 <property stdset="1"> 197 <property stdset="1">
198 <name>name</name> 198 <name>name</name>
199 <cstring>channel8</cstring> 199 <cstring>channel8</cstring>
200 </property> 200 </property>
201 <property stdset="1"> 201 <property stdset="1">
202 <name>text</name> 202 <name>text</name>
203 <string>8</string> 203 <string>8</string>
204 </property> 204 </property>
205 </widget> 205 </widget>
206 <widget row="0" column="2" > 206 <widget row="0" column="2" >
207 <class>QCheckBox</class> 207 <class>QCheckBox</class>
208 <property stdset="1"> 208 <property stdset="1">
209 <name>name</name> 209 <name>name</name>
210 <cstring>channel2</cstring> 210 <cstring>channel2</cstring>
211 </property> 211 </property>
212 <property stdset="1"> 212 <property stdset="1">
213 <name>text</name> 213 <name>text</name>
214 <string>2</string> 214 <string>2</string>
215 </property> 215 </property>
216 </widget> 216 </widget>
217 <widget row="1" column="4" > 217 <widget row="1" column="4" >
218 <class>QCheckBox</class> 218 <class>QCheckBox</class>
219 <property stdset="1"> 219 <property stdset="1">
220 <name>name</name> 220 <name>name</name>
221 <cstring>channel9</cstring> 221 <cstring>channel9</cstring>
222 </property> 222 </property>
223 <property stdset="1"> 223 <property stdset="1">
224 <name>text</name> 224 <name>text</name>
225 <string>9</string> 225 <string>9</string>
226 </property> 226 </property>
227 </widget> 227 </widget>
228 <widget row="0" column="1" > 228 <widget row="0" column="1" >
229 <class>QCheckBox</class> 229 <class>QCheckBox</class>
230 <property stdset="1"> 230 <property stdset="1">
231 <name>name</name> 231 <name>name</name>
232 <cstring>channel1</cstring> 232 <cstring>channel1</cstring>
233 </property> 233 </property>
234 <property stdset="1"> 234 <property stdset="1">
235 <name>text</name> 235 <name>text</name>
236 <string>1</string> 236 <string>1</string>
237 </property> 237 </property>
238 </widget> 238 </widget>
239 <widget row="0" column="0" > 239 <widget row="0" column="0" >
240 <class>QCheckBox</class> 240 <class>QCheckBox</class>
241 <property stdset="1"> 241 <property stdset="1">
242 <name>name</name> 242 <name>name</name>
243 <cstring>channelAll</cstring> 243 <cstring>channelAll</cstring>
244 </property> 244 </property>
245 <property stdset="1"> 245 <property stdset="1">
246 <name>text</name> 246 <name>text</name>
247 <string>All</string> 247 <string>All</string>
248 </property> 248 </property>
249 </widget> 249 </widget>
250 <widget row="2" column="1" > 250 <widget row="2" column="1" >
251 <class>QCheckBox</class> 251 <class>QCheckBox</class>
252 <property stdset="1"> 252 <property stdset="1">
253 <name>name</name> 253 <name>name</name>
254 <cstring>channel11</cstring> 254 <cstring>channel11</cstring>
255 </property> 255 </property>
256 <property stdset="1"> 256 <property stdset="1">
257 <name>text</name> 257 <name>text</name>
258 <string>11</string> 258 <string>11</string>
259 </property> 259 </property>
260 </widget> 260 </widget>
261 <widget row="2" column="0" > 261 <widget row="2" column="0" >
262 <class>QCheckBox</class> 262 <class>QCheckBox</class>
263 <property stdset="1"> 263 <property stdset="1">
264 <name>name</name> 264 <name>name</name>
265 <cstring>channel10</cstring> 265 <cstring>channel10</cstring>
266 </property> 266 </property>
267 <property stdset="1"> 267 <property stdset="1">
268 <name>text</name> 268 <name>text</name>
269 <string>10</string> 269 <string>10</string>
270 </property> 270 </property>
271 </widget> 271 </widget>
272 <widget row="1" column="2" > 272 <widget row="1" column="2" >
273 <class>QCheckBox</class> 273 <class>QCheckBox</class>
274 <property stdset="1"> 274 <property stdset="1">
275 <name>name</name> 275 <name>name</name>
276 <cstring>channel7</cstring> 276 <cstring>channel7</cstring>
277 </property> 277 </property>
278 <property stdset="1"> 278 <property stdset="1">
279 <name>text</name> 279 <name>text</name>
280 <string>7</string> 280 <string>7</string>
281 </property> 281 </property>
282 </widget> 282 </widget>
283 <widget row="0" column="3" > 283 <widget row="0" column="3" >
284 <class>QCheckBox</class> 284 <class>QCheckBox</class>
285 <property stdset="1"> 285 <property stdset="1">
286 <name>name</name> 286 <name>name</name>
287 <cstring>channel3</cstring> 287 <cstring>channel3</cstring>
288 </property> 288 </property>
289 <property stdset="1"> 289 <property stdset="1">
290 <name>text</name> 290 <name>text</name>
291 <string>3</string> 291 <string>3</string>
292 </property> 292 </property>
293 </widget> 293 </widget>
294 <widget row="1" column="0" > 294 <widget row="1" column="0" >
295 <class>QCheckBox</class> 295 <class>QCheckBox</class>
296 <property stdset="1"> 296 <property stdset="1">
297 <name>name</name> 297 <name>name</name>
298 <cstring>channel5</cstring> 298 <cstring>channel5</cstring>
299 </property> 299 </property>
300 <property stdset="1"> 300 <property stdset="1">
301 <name>text</name> 301 <name>text</name>
302 <string>5</string> 302 <string>5</string>
303 </property> 303 </property>
304 </widget> 304 </widget>
305 <widget row="0" column="4" > 305 <widget row="0" column="4" >
306 <class>QCheckBox</class> 306 <class>QCheckBox</class>
307 <property stdset="1"> 307 <property stdset="1">
308 <name>name</name> 308 <name>name</name>
309 <cstring>channel4</cstring> 309 <cstring>channel4</cstring>
310 </property> 310 </property>
311 <property stdset="1"> 311 <property stdset="1">
312 <name>text</name> 312 <name>text</name>
313 <string>4</string> 313 <string>4</string>
314 </property> 314 </property>
315 </widget> 315 </widget>
316 <widget row="2" column="2" > 316 <widget row="2" column="2" >
317 <class>QCheckBox</class> 317 <class>QCheckBox</class>
318 <property stdset="1"> 318 <property stdset="1">
319 <name>name</name> 319 <name>name</name>
320 <cstring>channel12</cstring> 320 <cstring>channel12</cstring>
321 </property> 321 </property>
322 <property stdset="1"> 322 <property stdset="1">
323 <name>text</name> 323 <name>text</name>
324 <string>12</string> 324 <string>12</string>
325 </property> 325 </property>
326 </widget> 326 </widget>
327 <widget row="2" column="3" > 327 <widget row="2" column="3" >
328 <class>QCheckBox</class> 328 <class>QCheckBox</class>
329 <property stdset="1"> 329 <property stdset="1">
330 <name>name</name> 330 <name>name</name>
331 <cstring>channel13</cstring> 331 <cstring>channel13</cstring>
332 </property> 332 </property>
333 <property stdset="1"> 333 <property stdset="1">
334 <name>text</name> 334 <name>text</name>
335 <string>13</string> 335 <string>13</string>
336 </property> 336 </property>
337 </widget> 337 </widget>
338 <widget row="2" column="4" > 338 <widget row="2" column="4" >
339 <class>QCheckBox</class> 339 <class>QCheckBox</class>
340 <property stdset="1"> 340 <property stdset="1">
341 <name>name</name> 341 <name>name</name>
342 <cstring>channel14</cstring> 342 <cstring>channel14</cstring>
343 </property> 343 </property>
344 <property stdset="1"> 344 <property stdset="1">
345 <name>text</name> 345 <name>text</name>
346 <string>14</string> 346 <string>14</string>
347 </property> 347 </property>
348 </widget> 348 </widget>
349 </grid> 349 </grid>
350 </widget> 350 </widget>
351 <widget row="0" column="1" rowspan="1" colspan="3" > 351 <widget row="0" column="1" rowspan="1" colspan="3" >
352 <class>QComboBox</class> 352 <class>QComboBox</class>
353 <property stdset="1"> 353 <property stdset="1">
354 <name>name</name> 354 <name>name</name>
355 <cstring>interfaceName</cstring> 355 <cstring>interfaceName</cstring>
356 </property> 356 </property>
357 <property stdset="1"> 357 <property stdset="1">
358 <name>enabled</name> 358 <name>enabled</name>
359 <bool>true</bool> 359 <bool>true</bool>
360 </property> 360 </property>
361 <property> 361 <property>
362 <name>whatsThis</name> 362 <name>whatsThis</name>
363 <string>Choose the interface used for sniffing.</string> 363 <string>Choose the interface used for sniffing.</string>
364 </property> 364 </property>
365 </widget> 365 </widget>
366 <widget row="1" column="1" rowspan="1" colspan="3" > 366 <widget row="1" column="1" rowspan="1" colspan="3" >
367 <class>QComboBox</class> 367 <class>QComboBox</class>
368 <item> 368 <item>
369 <property> 369 <property>
370 <name>text</name> 370 <name>text</name>
371 <string>&lt;select&gt;</string> 371 <string>&lt;select&gt;</string>
372 </property> 372 </property>
373 </item> 373 </item>
374 <item> 374 <item>
375 <property> 375 <property>
376 <name>text</name> 376 <name>text</name>
377 <string>cisco</string> 377 <string>cisco</string>
378 </property> 378 </property>
379 </item> 379 </item>
380 <item> 380 <item>
381 <property> 381 <property>
382 <name>text</name> 382 <name>text</name>
383 <string>wlan-ng</string> 383 <string>wlan-ng</string>
384 </property> 384 </property>
385 </item> 385 </item>
386 <item> 386 <item>
387 <property> 387 <property>
388 <name>text</name> 388 <name>text</name>
389 <string>hostap</string> 389 <string>hostap</string>
390 </property> 390 </property>
391 </item> 391 </item>
392 <item> 392 <item>
393 <property> 393 <property>
394 <name>text</name> 394 <name>text</name>
395 <string>orinoco</string> 395 <string>orinoco</string>
396 </property> 396 </property>
397 </item> 397 </item>
398 <item> 398 <item>
399 <property> 399 <property>
400 <name>text</name> 400 <name>text</name>
401 <string>&lt;manual&gt;</string> 401 <string>&lt;manual&gt;</string>
402 </property> 402 </property>
403 </item> 403 </item>
404 <item> 404 <item>
405 <property> 405 <property>
406 <name>text</name> 406 <name>text</name>
407 <string>&lt;file&gt;</string> 407 <string>&lt;file&gt;</string>
408 </property> 408 </property>
409 </item> 409 </item>
410 <property stdset="1"> 410 <property stdset="1">
411 <name>name</name> 411 <name>name</name>
412 <cstring>deviceType</cstring> 412 <cstring>deviceType</cstring>
413 </property> 413 </property>
414 <property stdset="1"> 414 <property stdset="1">
415 <name>enabled</name> 415 <name>enabled</name>
416 <bool>true</bool> 416 <bool>true</bool>
417 </property> 417 </property>
418 <property> 418 <property>
419 <name>whatsThis</name> 419 <name>whatsThis</name>
420 <string>Choose the type of driver used for sniffing.</string> 420 <string>Choose the type of driver used for sniffing.</string>
421 </property> 421 </property>
422 </widget> 422 </widget>
423 <widget row="4" column="2" > 423 <widget row="4" column="2" >
424 <class>QLabel</class> 424 <class>QLabel</class>
425 <property stdset="1"> 425 <property stdset="1">
426 <name>name</name> 426 <name>name</name>
427 <cstring>TextLabel1</cstring> 427 <cstring>TextLabel1</cstring>
428 </property> 428 </property>
429 <property stdset="1"> 429 <property stdset="1">
430 <name>text</name> 430 <name>text</name>
431 <string>every</string> 431 <string>every</string>
432 </property> 432 </property>
433 </widget> 433 </widget>
434 <spacer row="3" column="0" > 434 <spacer row="3" column="0" >
435 <property> 435 <property>
436 <name>name</name> 436 <name>name</name>
437 <cstring>Spacer4</cstring> 437 <cstring>Spacer4</cstring>
438 </property> 438 </property>
439 <property stdset="1"> 439 <property stdset="1">
440 <name>orientation</name> 440 <name>orientation</name>
441 <enum>Vertical</enum> 441 <enum>Vertical</enum>
442 </property> 442 </property>
443 <property stdset="1"> 443 <property stdset="1">
444 <name>sizeType</name> 444 <name>sizeType</name>
445 <enum>Expanding</enum> 445 <enum>Expanding</enum>
446 </property> 446 </property>
447 <property> 447 <property>
448 <name>sizeHint</name> 448 <name>sizeHint</name>
449 <size> 449 <size>
450 <width>20</width> 450 <width>20</width>
451 <height>20</height> 451 <height>20</height>
452 </size> 452 </size>
453 </property> 453 </property>
454 </spacer> 454 </spacer>
455 </grid> 455 </grid>
456 </widget> 456 </widget>
457 <widget> 457 <widget>
458 <class>QWidget</class> 458 <class>QWidget</class>
459 <property stdset="1"> 459 <property stdset="1">
460 <name>name</name> 460 <name>name</name>
461 <cstring>tab</cstring> 461 <cstring>tab</cstring>
462 </property> 462 </property>
463 <attribute> 463 <attribute>
464 <name>title</name> 464 <name>title</name>
465 <string>Capture</string> 465 <string>Capture</string>
466 </attribute> 466 </attribute>
467 <grid> 467 <grid>
468 <property stdset="1"> 468 <property stdset="1">
469 <name>margin</name> 469 <name>margin</name>
470 <number>5</number> 470 <number>5</number>
471 </property> 471 </property>
472 <property stdset="1"> 472 <property stdset="1">
473 <name>spacing</name> 473 <name>spacing</name>
474 <number>3</number> 474 <number>3</number>
475 </property> 475 </property>
476 <widget row="2" column="0" rowspan="1" colspan="3" > 476 <widget row="2" column="0" rowspan="1" colspan="3" >
477 <class>ProtocolListView</class> 477 <class>ProtocolListView</class>
478 <property stdset="1"> 478 <property stdset="1">
479 <name>name</name> 479 <name>name</name>
480 <cstring>capturePackets</cstring> 480 <cstring>capturePackets</cstring>
481 </property> 481 </property>
482 <property stdset="1"> 482 <property stdset="1">
483 <name>sizePolicy</name> 483 <name>sizePolicy</name>
484 <sizepolicy> 484 <sizepolicy>
485 <hsizetype>7</hsizetype> 485 <hsizetype>7</hsizetype>
486 <vsizetype>7</vsizetype> 486 <vsizetype>7</vsizetype>
487 </sizepolicy> 487 </sizepolicy>
488 </property> 488 </property>
489 </widget> 489 </widget>
490 <widget row="1" column="0" rowspan="1" colspan="3" > 490 <widget row="1" column="0" rowspan="1" colspan="3" >
491 <class>QLineEdit</class> 491 <class>QLineEdit</class>
492 <property stdset="1"> 492 <property stdset="1">
493 <name>name</name> 493 <name>name</name>
494 <cstring>captureFileName</cstring> 494 <cstring>captureFileName</cstring>
495 </property> 495 </property>
496 <property stdset="1"> 496 <property stdset="1">
497 <name>enabled</name> 497 <name>enabled</name>
498 <bool>false</bool> 498 <bool>false</bool>
499 </property> 499 </property>
500 <property stdset="1">
501 <name>text</name>
502 <string>/tmp/capture</string>
503 </property>
500 </widget> 504 </widget>
501 <widget row="0" column="2" > 505 <widget row="0" column="2" >
502 <class>QToolButton</class> 506 <class>QToolButton</class>
503 <property stdset="1"> 507 <property stdset="1">
504 <name>name</name> 508 <name>name</name>
505 <cstring>getCaptureFileName</cstring> 509 <cstring>getCaptureFileName</cstring>
506 </property> 510 </property>
507 <property stdset="1"> 511 <property stdset="1">
508 <name>enabled</name> 512 <name>enabled</name>
509 <bool>false</bool> 513 <bool>false</bool>
510 </property> 514 </property>
511 <property stdset="1"> 515 <property stdset="1">
512 <name>text</name> 516 <name>text</name>
513 <string>Browse</string> 517 <string>Browse</string>
514 </property> 518 </property>
515 </widget> 519 </widget>
516 <spacer row="0" column="1" > 520 <spacer row="0" column="1" >
517 <property> 521 <property>
518 <name>name</name> 522 <name>name</name>
519 <cstring>Spacer2</cstring> 523 <cstring>Spacer2</cstring>
520 </property> 524 </property>
521 <property stdset="1"> 525 <property stdset="1">
522 <name>orientation</name> 526 <name>orientation</name>
523 <enum>Horizontal</enum> 527 <enum>Horizontal</enum>
524 </property> 528 </property>
525 <property stdset="1"> 529 <property stdset="1">
526 <name>sizeType</name> 530 <name>sizeType</name>
527 <enum>Expanding</enum> 531 <enum>Expanding</enum>
528 </property> 532 </property>
529 <property> 533 <property>
530 <name>sizeHint</name> 534 <name>sizeHint</name>
531 <size> 535 <size>
532 <width>20</width> 536 <width>20</width>
533 <height>20</height> 537 <height>20</height>
534 </size> 538 </size>
535 </property> 539 </property>
536 </spacer> 540 </spacer>
537 <widget row="0" column="0" > 541 <widget row="0" column="0" >
538 <class>QCheckBox</class> 542 <class>QCheckBox</class>
539 <property stdset="1"> 543 <property stdset="1">
540 <name>name</name> 544 <name>name</name>
541 <cstring>writeCaptureFile</cstring> 545 <cstring>writeCaptureFile</cstring>
542 </property> 546 </property>
543 <property stdset="1"> 547 <property stdset="1">
544 <name>enabled</name> 548 <name>enabled</name>
545 <bool>true</bool> 549 <bool>true</bool>
546 </property> 550 </property>
547 <property stdset="1"> 551 <property stdset="1">
548 <name>text</name> 552 <name>text</name>
549 <string>Write Capture Files To</string> 553 <string>Write Capture Files To</string>
550 </property> 554 </property>
551 </widget> 555 </widget>
552 </grid> 556 </grid>
553 </widget> 557 </widget>
554 <widget> 558 <widget>
555 <class>QWidget</class> 559 <class>QWidget</class>
556 <property stdset="1"> 560 <property stdset="1">
557 <name>name</name> 561 <name>name</name>
558 <cstring>tab</cstring> 562 <cstring>tab</cstring>
559 </property> 563 </property>
560 <attribute> 564 <attribute>
561 <name>title</name> 565 <name>title</name>
562 <string>Parse</string> 566 <string>Parse</string>
563 </attribute> 567 </attribute>
564 <grid> 568 <grid>
565 <property stdset="1"> 569 <property stdset="1">
566 <name>margin</name> 570 <name>margin</name>
567 <number>5</number> 571 <number>5</number>
568 </property> 572 </property>
569 <property stdset="1"> 573 <property stdset="1">
570 <name>spacing</name> 574 <name>spacing</name>
571 <number>3</number> 575 <number>3</number>
572 </property> 576 </property>
573 <widget row="0" column="0" > 577 <widget row="0" column="0" >
574 <class>ProtocolListView</class> 578 <class>ProtocolListView</class>
575 <property stdset="1"> 579 <property stdset="1">
576 <name>name</name> 580 <name>name</name>
577 <cstring>parsePackets</cstring> 581 <cstring>parsePackets</cstring>
578 </property> 582 </property>
579 <property stdset="1"> 583 <property stdset="1">
580 <name>sizePolicy</name> 584 <name>sizePolicy</name>
581 <sizepolicy> 585 <sizepolicy>
582 <hsizetype>7</hsizetype> 586 <hsizetype>7</hsizetype>
583 <vsizetype>7</vsizetype> 587 <vsizetype>7</vsizetype>
584 </sizepolicy> 588 </sizepolicy>
585 </property> 589 </property>
586 </widget> 590 </widget>
587 </grid> 591 </grid>
588 </widget> 592 </widget>
589 <widget> 593 <widget>
590 <class>QWidget</class> 594 <class>QWidget</class>
591 <property stdset="1"> 595 <property stdset="1">
592 <name>name</name> 596 <name>name</name>
593 <cstring>tab</cstring> 597 <cstring>tab</cstring>
594 </property> 598 </property>
595 <attribute> 599 <attribute>
596 <name>title</name> 600 <name>title</name>
597 <string>Intrusion</string> 601 <string>Intrusion</string>
598 </attribute> 602 </attribute>
599 <grid> 603 <grid>
600 <property stdset="1"> 604 <property stdset="1">
601 <name>margin</name> 605 <name>margin</name>
602 <number>11</number> 606 <number>11</number>
603 </property> 607 </property>
604 <property stdset="1"> 608 <property stdset="1">
605 <name>spacing</name> 609 <name>spacing</name>
606 <number>6</number> 610 <number>6</number>
607 </property> 611 </property>
608 <widget row="1" column="0" > 612 <widget row="1" column="0" >
609 <class>QGroupBox</class> 613 <class>QGroupBox</class>
610 <property stdset="1"> 614 <property stdset="1">
611 <name>name</name> 615 <name>name</name>
612 <cstring>GroupBox3</cstring> 616 <cstring>GroupBox3</cstring>
613 </property> 617 </property>
614 <property stdset="1"> 618 <property stdset="1">
615 <name>enabled</name> 619 <name>enabled</name>
616 <bool>false</bool> 620 <bool>false</bool>
617 </property> 621 </property>
618 <property stdset="1"> 622 <property stdset="1">
619 <name>title</name> 623 <name>title</name>
620 <string>Link Level</string> 624 <string>Link Level</string>
621 </property> 625 </property>
622 <grid> 626 <grid>
623 <property stdset="1"> 627 <property stdset="1">
624 <name>margin</name> 628 <name>margin</name>
625 <number>11</number> 629 <number>11</number>
626 </property> 630 </property>
627 <property stdset="1"> 631 <property stdset="1">
628 <name>spacing</name> 632 <name>spacing</name>
629 <number>6</number> 633 <number>6</number>
630 </property> 634 </property>
631 <widget row="0" column="0" > 635 <widget row="0" column="0" >
632 <class>QLabel</class> 636 <class>QLabel</class>
633 <property stdset="1"> 637 <property stdset="1">
634 <name>name</name> 638 <name>name</name>
635 <cstring>TextLabel1_5</cstring> 639 <cstring>TextLabel1_5</cstring>
636 </property> 640 </property>
637 <property stdset="1"> 641 <property stdset="1">
638 <name>text</name> 642 <name>text</name>
639 <string>Fake Mac:</string> 643 <string>Fake Mac:</string>
640 </property> 644 </property>
641 </widget> 645 </widget>
642 <widget row="1" column="0" rowspan="1" colspan="2" > 646 <widget row="1" column="0" rowspan="1" colspan="2" >
643 <class>QCheckBox</class> 647 <class>QCheckBox</class>
644 <property stdset="1"> 648 <property stdset="1">
645 <name>name</name> 649 <name>name</name>
646 <cstring>sendProbeRequests</cstring> 650 <cstring>sendProbeRequests</cstring>
647 </property> 651 </property>
648 <property stdset="1"> 652 <property stdset="1">
649 <name>text</name> 653 <name>text</name>
650 <string>Send proble requests</string> 654 <string>Send proble requests</string>
651 </property> 655 </property>
652 </widget> 656 </widget>
653 <widget row="0" column="1" > 657 <widget row="0" column="1" >
654 <class>QComboBox</class> 658 <class>QComboBox</class>
655 <item> 659 <item>
656 <property> 660 <property>
657 <name>text</name> 661 <name>text</name>
658 <string>&lt;automatic&gt;</string> 662 <string>&lt;automatic&gt;</string>
659 </property> 663 </property>
660 </item> 664 </item>
661 <item> 665 <item>
662 <property> 666 <property>
663 <name>text</name> 667 <name>text</name>
664 <string>44:44:44:44:44:44</string> 668 <string>44:44:44:44:44:44</string>
665 </property> 669 </property>
666 </item> 670 </item>
667 <property stdset="1"> 671 <property stdset="1">
668 <name>name</name> 672 <name>name</name>
669 <cstring>fakeMac</cstring> 673 <cstring>fakeMac</cstring>
670 </property> 674 </property>
671 <property stdset="1"> 675 <property stdset="1">
672 <name>sizePolicy</name> 676 <name>sizePolicy</name>
673 <sizepolicy> 677 <sizepolicy>
674 <hsizetype>7</hsizetype> 678 <hsizetype>7</hsizetype>
675 <vsizetype>0</vsizetype> 679 <vsizetype>0</vsizetype>
676 </sizepolicy> 680 </sizepolicy>
677 </property> 681 </property>
678 <property stdset="1"> 682 <property stdset="1">
679 <name>editable</name> 683 <name>editable</name>
680 <bool>true</bool> 684 <bool>true</bool>
681 </property> 685 </property>
682 <property stdset="1"> 686 <property stdset="1">
683 <name>currentItem</name> 687 <name>currentItem</name>
684 <number>1</number> 688 <number>1</number>
685 </property> 689 </property>
686 <property stdset="1"> 690 <property stdset="1">
687 <name>autoCompletion</name> 691 <name>autoCompletion</name>
688 <bool>true</bool> 692 <bool>true</bool>
689 </property> 693 </property>
690 </widget> 694 </widget>
691 <widget row="2" column="0" rowspan="1" colspan="2" > 695 <widget row="2" column="0" rowspan="1" colspan="2" >
692 <class>QCheckBox</class> 696 <class>QCheckBox</class>
693 <property stdset="1"> 697 <property stdset="1">
694 <name>name</name> 698 <name>name</name>
695 <cstring>tryToAuthenticate</cstring> 699 <cstring>tryToAuthenticate</cstring>
696 </property> 700 </property>
697 <property stdset="1"> 701 <property stdset="1">
698 <name>text</name> 702 <name>text</name>
699 <string>Try to authenticate</string> 703 <string>Try to authenticate</string>
700 </property> 704 </property>
701 </widget> 705 </widget>
702 </grid> 706 </grid>
703 </widget> 707 </widget>
704 <widget row="0" column="0" > 708 <widget row="0" column="0" >
705 <class>QCheckBox</class> 709 <class>QCheckBox</class>
706 <property stdset="1"> 710 <property stdset="1">
707 <name>name</name> 711 <name>name</name>
708 <cstring>enableActiveScanning</cstring> 712 <cstring>enableActiveScanning</cstring>
709 </property> 713 </property>
710 <property stdset="1"> 714 <property stdset="1">
711 <name>enabled</name> 715 <name>enabled</name>
712 <bool>false</bool> 716 <bool>false</bool>
713 </property> 717 </property>
714 <property stdset="1"> 718 <property stdset="1">
715 <name>text</name> 719 <name>text</name>
716 <string>Enable active scanning</string> 720 <string>Enable active scanning</string>
717 </property> 721 </property>
718 </widget> 722 </widget>
719 <widget row="2" column="0" > 723 <widget row="2" column="0" >
720 <class>QGroupBox</class> 724 <class>QGroupBox</class>
721 <property stdset="1"> 725 <property stdset="1">
722 <name>name</name> 726 <name>name</name>
723 <cstring>GroupBox4</cstring> 727 <cstring>GroupBox4</cstring>
724 </property> 728 </property>
725 <property stdset="1"> 729 <property stdset="1">
726 <name>enabled</name> 730 <name>enabled</name>
727 <bool>false</bool> 731 <bool>false</bool>
728 </property> 732 </property>
729 <property stdset="1"> 733 <property stdset="1">
730 <name>title</name> 734 <name>title</name>
731 <string>IP Level</string> 735 <string>IP Level</string>
732 </property> 736 </property>
733 <grid> 737 <grid>
734 <property stdset="1"> 738 <property stdset="1">
735 <name>margin</name> 739 <name>margin</name>
736 <number>11</number> 740 <number>11</number>
737 </property> 741 </property>
738 <property stdset="1"> 742 <property stdset="1">
739 <name>spacing</name> 743 <name>spacing</name>
740 <number>6</number> 744 <number>6</number>
741 </property> 745 </property>
742 <widget row="1" column="0" rowspan="1" colspan="2" > 746 <widget row="1" column="0" rowspan="1" colspan="2" >
743 <class>QCheckBox</class> 747 <class>QCheckBox</class>
744 <property stdset="1"> 748 <property stdset="1">
745 <name>name</name> 749 <name>name</name>
746 <cstring>CheckBox24</cstring> 750 <cstring>CheckBox24</cstring>
747 </property> 751 </property>
748 <property stdset="1"> 752 <property stdset="1">
749 <name>text</name> 753 <name>text</name>
750 <string>Request DHCP Address</string> 754 <string>Request DHCP Address</string>
751 </property> 755 </property>
752 </widget> 756 </widget>
753 <widget row="0" column="0" > 757 <widget row="0" column="0" >
754 <class>QLabel</class> 758 <class>QLabel</class>
755 <property stdset="1"> 759 <property stdset="1">
756 <name>name</name> 760 <name>name</name>
757 <cstring>TextLabel1_5_2</cstring> 761 <cstring>TextLabel1_5_2</cstring>
758 </property> 762 </property>
759 <property stdset="1"> 763 <property stdset="1">
760 <name>text</name> 764 <name>text</name>
761 <string>Fake IP:</string> 765 <string>Fake IP:</string>
762 </property> 766 </property>
763 </widget> 767 </widget>
764 <widget row="0" column="1" > 768 <widget row="0" column="1" >
765 <class>QComboBox</class> 769 <class>QComboBox</class>
766 <item> 770 <item>
767 <property> 771 <property>
768 <name>text</name> 772 <name>text</name>
769 <string>192.168.125.1</string> 773 <string>192.168.125.1</string>
770 </property> 774 </property>
771 </item> 775 </item>
772 <item> 776 <item>
773 <property> 777 <property>
774 <name>text</name> 778 <name>text</name>
775 <string>&lt;automatic&gt;</string> 779 <string>&lt;automatic&gt;</string>
776 </property> 780 </property>
777 </item> 781 </item>
778 <property stdset="1"> 782 <property stdset="1">
779 <name>name</name> 783 <name>name</name>
780 <cstring>fakeIP</cstring> 784 <cstring>fakeIP</cstring>
781 </property> 785 </property>
782 <property stdset="1"> 786 <property stdset="1">
783 <name>sizePolicy</name> 787 <name>sizePolicy</name>
784 <sizepolicy> 788 <sizepolicy>
785 <hsizetype>7</hsizetype> 789 <hsizetype>7</hsizetype>
786 <vsizetype>0</vsizetype> 790 <vsizetype>0</vsizetype>
787 </sizepolicy> 791 </sizepolicy>
788 </property> 792 </property>
789 <property stdset="1"> 793 <property stdset="1">
790 <name>editable</name> 794 <name>editable</name>
791 <bool>true</bool> 795 <bool>true</bool>
792 </property> 796 </property>
793 <property stdset="1"> 797 <property stdset="1">
794 <name>currentItem</name> 798 <name>currentItem</name>
795 <number>0</number> 799 <number>0</number>
796 </property> 800 </property>
797 </widget> 801 </widget>
798 </grid> 802 </grid>
799 </widget> 803 </widget>
800 </grid> 804 </grid>
801 </widget> 805 </widget>
802 </widget> 806 </widget>
803 </grid> 807 </grid>
804</widget> 808</widget>
805<customwidgets> 809<customwidgets>
806 <customwidget> 810 <customwidget>
807 <class>ProtocolListView</class> 811 <class>ProtocolListView</class>
808 <header location="local">protolistview.h</header> 812 <header location="local">protolistview.h</header>
809 <sizehint> 813 <sizehint>
810 <width>100</width> 814 <width>100</width>
811 <height>100</height> 815 <height>100</height>
812 </sizehint> 816 </sizehint>
813 <container>0</container> 817 <container>0</container>
814 <sizepolicy> 818 <sizepolicy>
815 <hordata>3</hordata> 819 <hordata>3</hordata>
816 <verdata>3</verdata> 820 <verdata>3</verdata>
817 </sizepolicy> 821 </sizepolicy>
818 <pixmap>image0</pixmap> 822 <pixmap>image0</pixmap>
819 </customwidget> 823 </customwidget>
820</customwidgets> 824</customwidgets>
821<images> 825<images>
822 <image> 826 <image>
823 <name>image0</name> 827 <name>image0</name>
824 <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> 828 <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
825 </image> 829 </image>
826</images> 830</images>
827<connections> 831<connections>
828 <connection> 832 <connection>
829 <sender>hopChannels</sender> 833 <sender>hopChannels</sender>
830 <signal>toggled(bool)</signal> 834 <signal>toggled(bool)</signal>
831 <receiver>hopInterval</receiver> 835 <receiver>hopInterval</receiver>
832 <slot>setEnabled(bool)</slot> 836 <slot>setEnabled(bool)</slot>
833 </connection> 837 </connection>
834 <connection> 838 <connection>
835 <sender>hopChannels</sender> 839 <sender>hopChannels</sender>
836 <signal>toggled(bool)</signal> 840 <signal>toggled(bool)</signal>
837 <receiver>TextLabel1</receiver> 841 <receiver>TextLabel1</receiver>
838 <slot>setEnabled(bool)</slot> 842 <slot>setEnabled(bool)</slot>
839 </connection> 843 </connection>
840 <connection> 844 <connection>
841 <sender>enableActiveScanning</sender> 845 <sender>enableActiveScanning</sender>
842 <signal>toggled(bool)</signal> 846 <signal>toggled(bool)</signal>
843 <receiver>GroupBox3</receiver> 847 <receiver>GroupBox3</receiver>
844 <slot>setEnabled(bool)</slot> 848 <slot>setEnabled(bool)</slot>
845 </connection> 849 </connection>
846 <connection> 850 <connection>
847 <sender>enableActiveScanning</sender> 851 <sender>enableActiveScanning</sender>
848 <signal>toggled(bool)</signal> 852 <signal>toggled(bool)</signal>
849 <receiver>GroupBox4</receiver> 853 <receiver>GroupBox4</receiver>
850 <slot>setEnabled(bool)</slot> 854 <slot>setEnabled(bool)</slot>
851 </connection> 855 </connection>
856 <connection>
857 <sender>writeCaptureFile</sender>
858 <signal>toggled(bool)</signal>
859 <receiver>getCaptureFileName</receiver>
860 <slot>setEnabled(bool)</slot>
861 </connection>
862 <connection>
863 <sender>writeCaptureFile</sender>
864 <signal>toggled(bool)</signal>
865 <receiver>captureFileName</receiver>
866 <slot>setEnabled(bool)</slot>
867 </connection>
852</connections> 868</connections>
853</UI> 869</UI>
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index 39f5978..7241f7a 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -1,361 +1,361 @@
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#include "configwindow.h" 16#include "configwindow.h"
17#include "logwindow.h" 17#include "logwindow.h"
18#include "hexwindow.h" 18#include "hexwindow.h"
19#include "mainwindow.h" 19#include "mainwindow.h"
20#include "wellenreiter.h" 20#include "wellenreiter.h"
21#include "scanlist.h" 21#include "scanlist.h"
22 22
23#include <qcombobox.h> 23#include <qcombobox.h>
24#include <qdatastream.h> 24#include <qdatastream.h>
25#include <qfile.h> 25#include <qfile.h>
26#include <qfileinfo.h> 26#include <qfileinfo.h>
27#include <qiconset.h> 27#include <qiconset.h>
28#include <qmenubar.h> 28#include <qmenubar.h>
29#include <qmessagebox.h> 29#include <qmessagebox.h>
30#include <qpopupmenu.h> 30#include <qpopupmenu.h>
31#include <qstatusbar.h> 31#include <qstatusbar.h>
32#include <qtextstream.h> 32#include <qtextstream.h>
33#include <qtoolbutton.h> 33#include <qtoolbutton.h>
34 34
35#ifdef QWS 35#ifdef QWS
36#include <qpe/resource.h> 36#include <qpe/resource.h>
37#include <opie/ofiledialog.h> 37#include <opie/ofiledialog.h>
38#else 38#else
39#include "resource.h" 39#include "resource.h"
40#include <qapplication.h> 40#include <qapplication.h>
41#include <qfiledialog.h> 41#include <qfiledialog.h>
42#endif 42#endif
43 43
44WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * name, WFlags f ) 44WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * name, WFlags f )
45 :QMainWindow( parent, name, f ) 45 :QMainWindow( parent, name, f )
46{ 46{
47 cw = new WellenreiterConfigWindow( this ); 47 cw = new WellenreiterConfigWindow( this );
48 mw = new Wellenreiter( this ); 48 mw = new Wellenreiter( this );
49 mw->setConfigWindow( cw ); 49 mw->setConfigWindow( cw );
50 setCentralWidget( mw ); 50 setCentralWidget( mw );
51 51
52 // setup application icon 52 // setup application icon
53 53
54 #ifndef QWS 54 #ifndef QWS
55 setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) ); 55 setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) );
56 setIconText( "Wellenreiter/X11" ); 56 setIconText( "Wellenreiter/X11" );
57 #endif 57 #endif
58 58
59 // setup icon sets 59 // setup icon sets
60 60
61 infoIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/InfoIcon" ) ); 61 infoIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/InfoIcon" ) );
62 settingsIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/SettingsIcon" ) ); 62 settingsIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/SettingsIcon" ) );
63 startIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/SearchIcon" ) ); 63 startIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/SearchIcon" ) );
64 stopIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/CancelIcon" ) ); 64 stopIconSet = new QIconSet( Resource::loadPixmap( "wellenreiter/CancelIcon" ) );
65 65
66 // setup tool buttons 66 // setup tool buttons
67 67
68 startButton = new QToolButton( 0 ); 68 startButton = new QToolButton( 0 );
69 #ifdef QWS 69 #ifdef QWS
70 startButton->setAutoRaise( true ); 70 startButton->setAutoRaise( true );
71 #endif 71 #endif
72 startButton->setIconSet( *startIconSet ); 72 startButton->setIconSet( *startIconSet );
73 startButton->setEnabled( false ); 73 startButton->setEnabled( false );
74 connect( startButton, SIGNAL( clicked() ), mw, SLOT( startClicked() ) ); 74 connect( startButton, SIGNAL( clicked() ), mw, SLOT( startClicked() ) );
75 75
76 stopButton = new QToolButton( 0 ); 76 stopButton = new QToolButton( 0 );
77 #ifdef QWS 77 #ifdef QWS
78 stopButton->setAutoRaise( true ); 78 stopButton->setAutoRaise( true );
79 #endif 79 #endif
80 stopButton->setIconSet( *stopIconSet ); 80 stopButton->setIconSet( *stopIconSet );
81 stopButton->setEnabled( false ); 81 stopButton->setEnabled( false );
82 connect( stopButton, SIGNAL( clicked() ), mw, SLOT( stopClicked() ) ); 82 connect( stopButton, SIGNAL( clicked() ), mw, SLOT( stopClicked() ) );
83 83
84 QToolButton* c = new QToolButton( 0 ); 84 QToolButton* c = new QToolButton( 0 );
85 #ifdef QWS 85 #ifdef QWS
86 c->setAutoRaise( true ); 86 c->setAutoRaise( true );
87 #endif 87 #endif
88 c->setIconSet( *infoIconSet ); 88 c->setIconSet( *infoIconSet );
89 c->setEnabled( false ); 89 c->setEnabled( false );
90 90
91 QToolButton* d = new QToolButton( 0 ); 91 QToolButton* d = new QToolButton( 0 );
92 #ifdef QWS 92 #ifdef QWS
93 d->setAutoRaise( true ); 93 d->setAutoRaise( true );
94 #endif 94 #endif
95 d->setIconSet( *settingsIconSet ); 95 d->setIconSet( *settingsIconSet );
96 connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) ); 96 connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) );
97 97
98 // setup menu bar 98 // setup menu bar
99 99
100 int id; 100 int id;
101 101
102 QMenuBar* mb = menuBar(); 102 QMenuBar* mb = menuBar();
103 103
104 QPopupMenu* fileSave = new QPopupMenu( mb ); 104 QPopupMenu* fileSave = new QPopupMenu( mb );
105 fileSave->insertItem( tr( "&Session..." ), this, SLOT( fileSaveSession() ) ); 105 fileSave->insertItem( tr( "&Session..." ), this, SLOT( fileSaveSession() ) );
106 fileSave->insertItem( tr( "&Text Log..." ), this, SLOT( fileSaveLog() ) ); 106 fileSave->insertItem( tr( "&Text Log..." ), this, SLOT( fileSaveLog() ) );
107 fileSave->insertItem( tr( "&Hex Log..." ), this, SLOT( fileSaveHex() ) ); 107 fileSave->insertItem( tr( "&Hex Log..." ), this, SLOT( fileSaveHex() ) );
108 108
109 QPopupMenu* fileLoad = new QPopupMenu( mb ); 109 QPopupMenu* fileLoad = new QPopupMenu( mb );
110 fileLoad->insertItem( tr( "&Session..." ), this, SLOT( fileLoadSession() ) ); 110 fileLoad->insertItem( tr( "&Session..." ), this, SLOT( fileLoadSession() ) );
111 //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); 111 //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) );
112 112
113 QPopupMenu* file = new QPopupMenu( mb ); 113 QPopupMenu* file = new QPopupMenu( mb );
114 file->insertItem( tr( "&New" ), this, SLOT( fileNew() ) ); 114 file->insertItem( tr( "&New" ), this, SLOT( fileNew() ) );
115 id = file->insertItem( tr( "&Load" ), fileLoad ); 115 id = file->insertItem( tr( "&Load" ), fileLoad );
116 file->insertItem( tr( "&Save" ), fileSave ); 116 file->insertItem( tr( "&Save" ), fileSave );
117 file->insertSeparator(); 117 file->insertSeparator();
118 file->insertItem( tr( "&Exit" ), qApp, SLOT( quit() ) ); 118 file->insertItem( tr( "&Exit" ), qApp, SLOT( quit() ) );
119 119
120 QPopupMenu* view = new QPopupMenu( mb ); 120 QPopupMenu* view = new QPopupMenu( mb );
121 view->insertItem( tr( "&Configure..." ) ); 121 view->insertItem( tr( "&Configure..." ) );
122 122
123 QPopupMenu* sniffer = new QPopupMenu( mb ); 123 QPopupMenu* sniffer = new QPopupMenu( mb );
124 sniffer->insertItem( tr( "&Configure..." ), this, SLOT( showConfigure() ) ); 124 sniffer->insertItem( tr( "&Configure..." ), this, SLOT( showConfigure() ) );
125 sniffer->insertSeparator(); 125 sniffer->insertSeparator();
126 startID = sniffer->insertItem( tr( "&Start" ), mw, SLOT( startClicked() ) ); 126 startID = sniffer->insertItem( tr( "&Start" ), mw, SLOT( startClicked() ) );
127 sniffer->setItemEnabled( startID, false ); 127 sniffer->setItemEnabled( startID, false );
128 stopID = sniffer->insertItem( tr( "Sto&p" ), mw, SLOT( stopClicked() ) ); 128 stopID = sniffer->insertItem( tr( "Sto&p" ), mw, SLOT( stopClicked() ) );
129 sniffer->setItemEnabled( stopID, false ); 129 sniffer->setItemEnabled( stopID, false );
130 130
131 QPopupMenu* demo = new QPopupMenu( mb ); 131 QPopupMenu* demo = new QPopupMenu( mb );
132 demo->insertItem( tr( "&Add something" ), this, SLOT( demoAddStations() ) ); 132 demo->insertItem( tr( "&Add something" ), this, SLOT( demoAddStations() ) );
133 133
134 id = mb->insertItem( tr( "&File" ), file ); 134 id = mb->insertItem( tr( "&File" ), file );
135 //id = mb->insertItem( tr( "&View" ), view ); 135 //id = mb->insertItem( tr( "&View" ), view );
136 //mb->setItemEnabled( id, false ); 136 //mb->setItemEnabled( id, false );
137 id = mb->insertItem( tr( "&Sniffer" ), sniffer ); 137 id = mb->insertItem( tr( "&Sniffer" ), sniffer );
138 //id = mb->insertItem( tr( "&Demo" ), demo ); 138 //id = mb->insertItem( tr( "&Demo" ), demo );
139 //mb->setItemEnabled( id, true ); 139 //mb->setItemEnabled( id, true );
140 140
141 #ifdef QWS 141 #ifdef QWS
142 mb->insertItem( startButton ); 142 mb->insertItem( startButton );
143 mb->insertItem( stopButton ); 143 mb->insertItem( stopButton );
144 mb->insertItem( c ); 144 mb->insertItem( c );
145 mb->insertItem( d ); 145 mb->insertItem( d );
146 #else // Qt3 changed the insertion order. It's now totally random :( 146 #else // Qt3 changed the insertion order. It's now totally random :(
147 mb->insertItem( d ); 147 mb->insertItem( d );
148 mb->insertItem( c ); 148 mb->insertItem( c );
149 mb->insertItem( stopButton ); 149 mb->insertItem( stopButton );
150 mb->insertItem( startButton ); 150 mb->insertItem( startButton );
151 #endif 151 #endif
152 152
153 updateToolButtonState(); 153 updateToolButtonState();
154 154
155 // setup status bar (for now only on X11) 155 // setup status bar (for now only on X11)
156 156
157 #ifndef QWS 157 #ifndef QWS
158 statusBar()->message( tr( "Ready." ) ); 158 statusBar()->message( tr( "Ready." ) );
159 #endif 159 #endif
160 160
161 connect( mw, SIGNAL( startedSniffing() ), this, SLOT( changedSniffingState() ) ); 161 connect( mw, SIGNAL( startedSniffing() ), this, SLOT( changedSniffingState() ) );
162 connect( mw, SIGNAL( stoppedSniffing() ), this, SLOT( changedSniffingState() ) ); 162 connect( mw, SIGNAL( stoppedSniffing() ), this, SLOT( changedSniffingState() ) );
163}; 163};
164 164
165 165
166 166
167void WellenreiterMainWindow::showConfigure() 167void WellenreiterMainWindow::showConfigure()
168{ 168{
169 qDebug( "show configure..." ); 169 qDebug( "show configure..." );
170 cw->setCaption( tr( "Configure" ) ); 170 cw->setCaption( tr( "Configure" ) );
171 #ifdef QWS 171 #ifdef QWS
172 cw->showMaximized(); 172 cw->showMaximized();
173 #endif 173 #endif
174 int result = cw->exec(); 174 int result = cw->exec();
175 175
176 if ( result ) updateToolButtonState(); 176 if ( result ) updateToolButtonState();
177} 177}
178 178
179 179
180 180
181void WellenreiterMainWindow::updateToolButtonState() 181void WellenreiterMainWindow::updateToolButtonState()
182{ 182{
183 const QString& interface = cw->interfaceName->currentText(); 183 const QString& interface = cw->interfaceName->currentText();
184 const int cardtype = cw->driverType(); 184 const int cardtype = cw->driverType();
185 185
186 if ( ( interface != "<select>" ) && ( cardtype != 0 ) ) 186 if ( ( interface != "<select>" ) && ( cardtype != 0 ) )
187 { 187 {
188 startButton->setEnabled( true ); 188 startButton->setEnabled( true );
189 menuBar()->setItemEnabled( startID, true ); 189 menuBar()->setItemEnabled( startID, true );
190 } 190 }
191 else 191 else
192 { 192 {
193 startButton->setEnabled( false ); 193 startButton->setEnabled( false );
194 menuBar()->setItemEnabled( startID, false ); 194 menuBar()->setItemEnabled( startID, false );
195 } 195 }
196} 196}
197 197
198 198
199void WellenreiterMainWindow::changedSniffingState() 199void WellenreiterMainWindow::changedSniffingState()
200{ 200{
201 startButton->setEnabled( !mw->sniffing ); 201 startButton->setEnabled( !mw->sniffing );
202 menuBar()->setItemEnabled( startID, !mw->sniffing ); 202 menuBar()->setItemEnabled( startID, !mw->sniffing );
203 stopButton->setEnabled( mw->sniffing ); 203 stopButton->setEnabled( mw->sniffing );
204 menuBar()->setItemEnabled( stopID, mw->sniffing ); 204 menuBar()->setItemEnabled( stopID, mw->sniffing );
205} 205}
206 206
207 207
208WellenreiterMainWindow::~WellenreiterMainWindow() 208WellenreiterMainWindow::~WellenreiterMainWindow()
209{ 209{
210 delete infoIconSet; 210 delete infoIconSet;
211 delete settingsIconSet; 211 delete settingsIconSet;
212 delete startIconSet; 212 delete startIconSet;
213 delete stopIconSet; 213 delete stopIconSet;
214}; 214};
215 215
216void WellenreiterMainWindow::demoAddStations() 216void WellenreiterMainWindow::demoAddStations()
217{ 217{
218 mw->netView()->addNewItem( "managed", "Vanille", "00:00:20:EF:A6:43", true, 6, 80 ); 218 mw->netView()->addNewItem( "managed", "Vanille", "00:00:20:EF:A6:43", true, 6, 80 );
219 mw->netView()->addNewItem( "managed", "Vanille", "00:30:6D:EF:A6:23", true, 11, 10 ); 219 mw->netView()->addNewItem( "managed", "Vanille", "00:30:6D:EF:A6:23", true, 11, 10 );
220 mw->netView()->addNewItem( "adhoc", "ELAN", "00:A0:F8:E7:16:22", false, 3, 10 ); 220 mw->netView()->addNewItem( "adhoc", "ELAN", "00:A0:F8:E7:16:22", false, 3, 10 );
221 mw->netView()->addNewItem( "adhoc", "ELAN", "00:AA:01:E7:56:62", false, 3, 15 ); 221 mw->netView()->addNewItem( "adhoc", "ELAN", "00:AA:01:E7:56:62", false, 3, 15 );
222 mw->netView()->addNewItem( "adhoc", "ELAN", "00:B0:8E:E7:56:E2", false, 3, 20 ); 222 mw->netView()->addNewItem( "adhoc", "ELAN", "00:B0:8E:E7:56:E2", false, 3, 20 );
223} 223}
224 224
225 225
226QString WellenreiterMainWindow::getFileName( bool save ) 226QString WellenreiterMainWindow::getFileName( bool save )
227{ 227{
228 QMap<QString, QStringList> map; 228 QMap<QString, QStringList> map;
229 map.insert( tr("All"), QStringList() ); 229 map.insert( tr("All"), QStringList() );
230 QStringList text; 230 QStringList text;
231 text << "text/*"; 231 text << "text/*";
232 map.insert( tr("Text"), text ); 232 map.insert( tr("Text"), text );
233 text << "*"; 233 text << "*";
234 map.insert( tr("All"), text ); 234 map.insert( tr("All"), text );
235 235
236 QString str; 236 QString str;
237 if ( save ) 237 if ( save )
238 { 238 {
239 #ifdef QWS 239 #ifdef QWS
240 str = OFileDialog::getSaveFileName( 2, "/", QString::null, map ); 240 str = OFileDialog::getSaveFileName( 2, "/", QString::null, map );
241 #else 241 #else
242 str = QFileDialog::getSaveFileName(); 242 str = QFileDialog::getSaveFileName();
243 #endif 243 #endif
244 if ( str.isEmpty() || QFileInfo(str).isDir() ) 244 if ( str.isEmpty() /*|| QFileInfo(str).isDir()*/ )
245 return ""; 245 return "";
246 } 246 }
247 else 247 else
248 { 248 {
249 #ifdef QWS 249 #ifdef QWS
250 str = OFileDialog::getOpenFileName( 2, "/", QString::null, map ); 250 str = OFileDialog::getOpenFileName( 2, "/", QString::null, map );
251 #else 251 #else
252 str = QFileDialog::getOpenFileName(); 252 str = QFileDialog::getOpenFileName();
253 #endif 253 #endif
254 if ( str.isEmpty() || !QFile(str).exists() || QFileInfo(str).isDir() ) 254 if ( str.isEmpty() || !QFile(str).exists() || QFileInfo(str).isDir() )
255 return ""; 255 return "";
256 } 256 }
257 return str; 257 return str;
258} 258}
259 259
260 260
261void WellenreiterMainWindow::fileSaveLog() 261void WellenreiterMainWindow::fileSaveLog()
262{ 262{
263 QString fname = getFileName( true ); 263 QString fname = getFileName( true );
264 if ( !fname.isEmpty() ) 264 if ( !fname.isEmpty() )
265 { 265 {
266 QFile f( fname ); 266 QFile f( fname );
267 if ( f.open(IO_WriteOnly) ) 267 if ( f.open(IO_WriteOnly) )
268 { 268 {
269 QTextStream t( &f ); 269 QTextStream t( &f );
270 t << mw->logWindow()->getLog(); 270 t << mw->logWindow()->getLog();
271 f.close(); 271 f.close();
272 qDebug( "Saved log to file '%s'", (const char*) fname ); 272 qDebug( "Saved log to file '%s'", (const char*) fname );
273 } 273 }
274 else 274 else
275 { 275 {
276 qDebug( "Problem saving log to file '%s'", (const char*) fname ); 276 qDebug( "Problem saving log to file '%s'", (const char*) fname );
277 } 277 }
278 } 278 }
279} 279}
280 280
281void WellenreiterMainWindow::fileSaveSession() 281void WellenreiterMainWindow::fileSaveSession()
282{ 282{
283 QString fname = getFileName( true ); 283 QString fname = getFileName( true );
284 if ( !fname.isEmpty() ) 284 if ( !fname.isEmpty() )
285 { 285 {
286 286
287 QFile f( fname ); 287 QFile f( fname );
288 if ( f.open(IO_WriteOnly) ) 288 if ( f.open(IO_WriteOnly) )
289 { 289 {
290 QDataStream t( &f ); 290 QDataStream t( &f );
291 t << *mw->netView(); 291 t << *mw->netView();
292 f.close(); 292 f.close();
293 qDebug( "Saved session to file '%s'", (const char*) fname ); 293 qDebug( "Saved session to file '%s'", (const char*) fname );
294 } 294 }
295 else 295 else
296 { 296 {
297 qDebug( "Problem saving session to file '%s'", (const char*) fname ); 297 qDebug( "Problem saving session to file '%s'", (const char*) fname );
298 } 298 }
299 } 299 }
300} 300}
301 301
302void WellenreiterMainWindow::fileSaveHex() 302void WellenreiterMainWindow::fileSaveHex()
303{ 303{
304 QString fname = getFileName( true ); 304 QString fname = getFileName( true );
305 if ( !fname.isEmpty() ) 305 if ( !fname.isEmpty() )
306 { 306 {
307 QFile f( fname ); 307 QFile f( fname );
308 if ( f.open(IO_WriteOnly) ) 308 if ( f.open(IO_WriteOnly) )
309 { 309 {
310 QTextStream t( &f ); 310 QTextStream t( &f );
311 t << mw->hexWindow()->getLog(); 311 t << mw->hexWindow()->getLog();
312 f.close(); 312 f.close();
313 qDebug( "Saved hex log to file '%s'", (const char*) fname ); 313 qDebug( "Saved hex log to file '%s'", (const char*) fname );
314 } 314 }
315 else 315 else
316 { 316 {
317 qDebug( "Problem saving hex log to file '%s'", (const char*) fname ); 317 qDebug( "Problem saving hex log to file '%s'", (const char*) fname );
318 } 318 }
319 } 319 }
320} 320}
321 321
322void WellenreiterMainWindow::fileLoadSession() 322void WellenreiterMainWindow::fileLoadSession()
323{ 323{
324 QString fname = getFileName( false ); 324 QString fname = getFileName( false );
325 if ( !fname.isEmpty() ) 325 if ( !fname.isEmpty() )
326 { 326 {
327 QFile f( fname ); 327 QFile f( fname );
328 if ( f.open(IO_ReadOnly) ) 328 if ( f.open(IO_ReadOnly) )
329 { 329 {
330 QDataStream t( &f ); 330 QDataStream t( &f );
331 t >> *mw->netView(); 331 t >> *mw->netView();
332 f.close(); 332 f.close();
333 qDebug( "Loaded session from file '%s'", (const char*) fname ); 333 qDebug( "Loaded session from file '%s'", (const char*) fname );
334 } 334 }
335 else 335 else
336 { 336 {
337 qDebug( "Problem loading session from file '%s'", (const char*) fname ); 337 qDebug( "Problem loading session from file '%s'", (const char*) fname );
338 } 338 }
339 } 339 }
340} 340}
341 341
342void WellenreiterMainWindow::fileNew() 342void WellenreiterMainWindow::fileNew()
343{ 343{
344 mw->netView()->clear(); 344 mw->netView()->clear();
345 mw->logWindow()->clear(); 345 mw->logWindow()->clear();
346 mw->hexWindow()->clear(); 346 mw->hexWindow()->clear();
347} 347}
348 348
349void WellenreiterMainWindow::closeEvent( QCloseEvent* e ) 349void WellenreiterMainWindow::closeEvent( QCloseEvent* e )
350{ 350{
351 if ( mw->isDaemonRunning() ) 351 if ( mw->isDaemonRunning() )
352 { 352 {
353 QMessageBox::warning( this, "Wellenreiter/Opie", 353 QMessageBox::warning( this, "Wellenreiter/Opie",
354 tr( "Sniffing in progress!\nPlease stop sniffing before closing." ) ); 354 tr( "Sniffing in progress!\nPlease stop sniffing before closing." ) );
355 e->ignore(); 355 e->ignore();
356 } 356 }
357 else 357 else
358 { 358 {
359 QMainWindow::closeEvent( e ); 359 QMainWindow::closeEvent( e );
360 } 360 }
361} 361}