28 files changed, 175 insertions, 53 deletions
diff --git a/noncore/net/wellenreiter/ChangeLog b/noncore/net/wellenreiter/ChangeLog index 6c2e52b..fdc8aa7 100644 --- a/noncore/net/wellenreiter/ChangeLog +++ b/noncore/net/wellenreiter/ChangeLog | |||
@@ -1,36 +1,38 @@ | |||
1 | 2004-??-?? Michael Lauer <mickey@Vanille.de> | 1 | 2004-??-?? Michael Lauer <mickey@Vanille.de> |
2 | 2 | ||
3 | * Added sanity check isPresent(interface) before starting the engine. | ||
4 | * Added a View submenu. Added actions to expand and collapse all items. | ||
3 | * Switched to a (hopefully) more reliable method reading from gpsd. | 5 | * Switched to a (hopefully) more reliable method reading from gpsd. |
4 | * Added parsing of named ProbeRequests. Display only-probed-yet SSIDs in a different network color. | 6 | * Added parsing of named ProbeRequests. Display only-probed-yet SSIDs in a different network color. |
5 | * Rewrote the simple actions on new {Network, Client, Station}. Besides playing a sound or | 7 | * Rewrote the simple actions on new {Network, Client, Station}. Besides playing a sound or |
6 | blinking a LED, a user customizable script can now be executed, if something has been | 8 | blinking a LED, a user customizable script can now be executed, if something has been |
7 | detected. This opens up many possibilities, i.e. a qcop to qpegps or exec'ing flite (speech). | 9 | detected. This opens up many possibilities, i.e. a qcop to qpegps or exec'ing flite (speech). |
8 | * Added decloaking of cloaked ESSIDs (length != 0, but essid[0] == \0). | 10 | * Added decloaking of cloaked ESSIDs (length != 0, but essid[0] == \0). |
9 | * Hided the 'Parse' Tab in the configuration window. Not functional now and may come later | 11 | * Hided the 'Parse' Tab in the configuration window. Not functional now and may come later |
10 | * Added parsing of control frames. Display stations sending them SSID "<unknown>" for now. | 12 | * Added parsing of control frames. Display stations sending them SSID "<unknown>" for now. |
11 | * Added command line option "-nocheck" to skip non-root and dhcp tests. | 13 | * Added command line option "-nocheck" to skip non-root and dhcp tests. |
12 | * Improved the speed reading the manufacturer list. | 14 | * Improved the speed of and user feedback during reading the manufacturer list. |
13 | * GPS coordinates are now presented in the DMS (as opposed to decimal) format. | 15 | * GPS coordinates are now presented in the DMS (as opposed to decimal) format. |
14 | 16 | ||
15 | 2003-12-18 Michael Lauer <mickey@Vanille.de> | 17 | 2003-12-18 Michael Lauer <mickey@Vanille.de> |
16 | 18 | ||
17 | * Released as Version 1.0.2 (Development Snapshot) | 19 | * Released as Version 1.0.2 (Development Snapshot) |
18 | * Added automatic uploading of capture files to "The Capture Dump" site at | 20 | * Added automatic uploading of capture files to "The Capture Dump" site at |
19 | http://www.Vanille.de/projects/capturedump.spy | 21 | http://www.Vanille.de/projects/capturedump.spy |
20 | * Initial reading of the manufacturer database happens now in background | 22 | * Initial reading of the manufacturer database happens now in background |
21 | * Removed deprecated setMonitorMode() API ==> Use setMode( "monitor" ) now. | 23 | * Removed deprecated setMonitorMode() API ==> Use setMode( "monitor" ) now. |
22 | The monitor mode now tries to use the standard IW_MODE_MONITOR first. If that | 24 | The monitor mode now tries to use the standard IW_MODE_MONITOR first. If that |
23 | doesn't work, it falls back to using the proprietary iwpriv commands | 25 | doesn't work, it falls back to using the proprietary iwpriv commands |
24 | 26 | ||
25 | 2003-11-30 Michael Lauer <mickey@Vanille.de> | 27 | 2003-11-30 Michael Lauer <mickey@Vanille.de> |
26 | 28 | ||
27 | * Released as Version 1.0.1 (Development Snapshot) | 29 | * Released as Version 1.0.1 (Development Snapshot) |
28 | * Fixed ARP decoding for wired networks. | 30 | * Fixed ARP decoding for wired networks. |
29 | Interestingly, 802.11 encapsulates these in IP packets, while wired ethernet just tags the type_of_protocol. | 31 | Interestingly, 802.11 encapsulates these in IP packets, while wired ethernet just tags the type_of_protocol. |
30 | * Added reading GPS data from a gps daemon. | 32 | * Added reading GPS data from a gps daemon. |
31 | * Started preparations for utilizing Wellenreiter II in wired networks. | 33 | * Started preparations for utilizing Wellenreiter II in wired networks. |
32 | * Implemented persistant configuration interface and retriggerable auto detection. | 34 | * Implemented persistant configuration interface and retriggerable auto detection. |
33 | * Added QCOP interface for talking to opie-networksettings. | 35 | * Added QCOP interface for talking to opie-networksettings. |
34 | * Added parsing of DHCP packets and detecting DHCP servers. | 36 | * Added parsing of DHCP packets and detecting DHCP servers. |
35 | * Overhauled the configuration window and started with the customizable event system. | 37 | * Overhauled the configuration window and started with the customizable event system. |
36 | * Added disabling the screensaver. | 38 | * Added disabling the screensaver. |
diff --git a/noncore/net/wellenreiter/TODO b/noncore/net/wellenreiter/TODO index 01e731f..f3fd205 100644 --- a/noncore/net/wellenreiter/TODO +++ b/noncore/net/wellenreiter/TODO | |||
@@ -19,44 +19,42 @@ ENGINE | |||
19 | - usb? | 19 | - usb? |
20 | 20 | ||
21 | - define packet structure in a metalanguage and generate | 21 | - define packet structure in a metalanguage and generate |
22 | the actual parsing code (hmmm) | 22 | the actual parsing code (hmmm) |
23 | 23 | ||
24 | - pester the ethereal folks to settle for an application independant | 24 | - pester the ethereal folks to settle for an application independant |
25 | packet dissection framework... (unlikely) | 25 | packet dissection framework... (unlikely) |
26 | 26 | ||
27 | - adaptive hopping scheme ! | 27 | - adaptive hopping scheme ! |
28 | 28 | ||
29 | - gather interface capabilities | 29 | - gather interface capabilities |
30 | 30 | ||
31 | - enable sniffing in wired networks | 31 | - enable sniffing in wired networks |
32 | 32 | ||
33 | - fix autodetection (interface name) | 33 | - fix autodetection (interface name) |
34 | 34 | ||
35 | --------- | 35 | --------- |
36 | UI | 36 | UI |
37 | --------- | 37 | --------- |
38 | 38 | ||
39 | - display interface capabilities (or rewrite networksettings?) | 39 | - display interface capabilities (or rewrite networksettings?) |
40 | 40 | ||
41 | - distinguish wireless bridges (WDS traffic) | 41 | - distinguish wireless bridges (WDS traffic) |
42 | 42 | ||
43 | - expand/collapse all | ||
44 | |||
45 | - add configuration for scrollback buffer in hex window and log window | 43 | - add configuration for scrollback buffer in hex window and log window |
46 | 44 | ||
47 | - revamp hex window, make it more sophisticated than just a QMultiLineEdit | 45 | - revamp hex window, make it more sophisticated than just a QMultiLineEdit |
48 | - tree view | 46 | - tree view |
49 | 47 | ||
50 | - beep over headphone / customizable | 48 | - beep over headphone / customizable |
51 | 49 | ||
52 | - count/display number of wireless networks / APs since last start/stop | 50 | - count/display number of wireless networks / APs since last start/stop |
53 | 51 | ||
54 | --------- | 52 | --------- |
55 | FILES | 53 | FILES |
56 | --------- | 54 | --------- |
57 | 55 | ||
58 | - write kismet-like .network format and format to be importable into AutoRoute | 56 | - write kismet-like .network format and format to be importable into AutoRoute |
59 | 57 | ||
60 | - implement beacon stripping (the first beacon is enough to detect a | 58 | - implement beacon stripping (the first beacon is enough to detect a |
61 | new network - further beacons just blow up the capture file) | 59 | new network - further beacons just blow up the capture file) |
62 | 60 | ||
diff --git a/noncore/net/wellenreiter/gui/configbase.ui b/noncore/net/wellenreiter/gui/configbase.ui index 469effe..113e783 100644 --- a/noncore/net/wellenreiter/gui/configbase.ui +++ b/noncore/net/wellenreiter/gui/configbase.ui | |||
@@ -1,72 +1,76 @@ | |||
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>250</width> | 14 | <width>246</width> |
15 | <height>371</height> | 15 | <height>371</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 | <property> | ||
50 | <name>whatsThis</name> | ||
51 | <string></string> | ||
52 | </property> | ||
49 | <widget> | 53 | <widget> |
50 | <class>QWidget</class> | 54 | <class>QWidget</class> |
51 | <property stdset="1"> | 55 | <property stdset="1"> |
52 | <name>name</name> | 56 | <name>name</name> |
53 | <cstring>tab</cstring> | 57 | <cstring>tab</cstring> |
54 | </property> | 58 | </property> |
55 | <attribute> | 59 | <attribute> |
56 | <name>title</name> | 60 | <name>title</name> |
57 | <string>Interface</string> | 61 | <string>Interface</string> |
58 | </attribute> | 62 | </attribute> |
59 | <vbox> | 63 | <vbox> |
60 | <property stdset="1"> | 64 | <property stdset="1"> |
61 | <name>margin</name> | 65 | <name>margin</name> |
62 | <number>6</number> | 66 | <number>6</number> |
63 | </property> | 67 | </property> |
64 | <property stdset="1"> | 68 | <property stdset="1"> |
65 | <name>spacing</name> | 69 | <name>spacing</name> |
66 | <number>6</number> | 70 | <number>6</number> |
67 | </property> | 71 | </property> |
68 | <widget> | 72 | <widget> |
69 | <class>QLayoutWidget</class> | 73 | <class>QLayoutWidget</class> |
70 | <property stdset="1"> | 74 | <property stdset="1"> |
71 | <name>name</name> | 75 | <name>name</name> |
72 | <cstring>Layout7</cstring> | 76 | <cstring>Layout7</cstring> |
@@ -206,61 +210,69 @@ | |||
206 | <class>QLayoutWidget</class> | 210 | <class>QLayoutWidget</class> |
207 | <property stdset="1"> | 211 | <property stdset="1"> |
208 | <name>name</name> | 212 | <name>name</name> |
209 | <cstring>Layout5</cstring> | 213 | <cstring>Layout5</cstring> |
210 | </property> | 214 | </property> |
211 | <hbox> | 215 | <hbox> |
212 | <property stdset="1"> | 216 | <property stdset="1"> |
213 | <name>margin</name> | 217 | <name>margin</name> |
214 | <number>0</number> | 218 | <number>0</number> |
215 | </property> | 219 | </property> |
216 | <property stdset="1"> | 220 | <property stdset="1"> |
217 | <name>spacing</name> | 221 | <name>spacing</name> |
218 | <number>6</number> | 222 | <number>6</number> |
219 | </property> | 223 | </property> |
220 | <widget> | 224 | <widget> |
221 | <class>QPushButton</class> | 225 | <class>QPushButton</class> |
222 | <property stdset="1"> | 226 | <property stdset="1"> |
223 | <name>name</name> | 227 | <name>name</name> |
224 | <cstring>autodetect</cstring> | 228 | <cstring>autodetect</cstring> |
225 | </property> | 229 | </property> |
226 | <property stdset="1"> | 230 | <property stdset="1"> |
227 | <name>text</name> | 231 | <name>text</name> |
228 | <string>Perform Autodetection</string> | 232 | <string>Perform Autodetection</string> |
229 | </property> | 233 | </property> |
234 | <property> | ||
235 | <name>whatsThis</name> | ||
236 | <string>Retrigger the autodetection algorithm</string> | ||
237 | </property> | ||
230 | </widget> | 238 | </widget> |
231 | </hbox> | 239 | </hbox> |
232 | </widget> | 240 | </widget> |
233 | <widget> | 241 | <widget> |
234 | <class>QCheckBox</class> | 242 | <class>QCheckBox</class> |
235 | <property stdset="1"> | 243 | <property stdset="1"> |
236 | <name>name</name> | 244 | <name>name</name> |
237 | <cstring>prismHeader</cstring> | 245 | <cstring>prismHeader</cstring> |
238 | </property> | 246 | </property> |
239 | <property stdset="1"> | 247 | <property stdset="1"> |
240 | <name>text</name> | 248 | <name>text</name> |
241 | <string>Use additional PRISM header</string> | 249 | <string>Use additional PRISM header</string> |
242 | </property> | 250 | </property> |
251 | <property> | ||
252 | <name>whatsThis</name> | ||
253 | <string>Use additional PRISM headers, if available.</string> | ||
254 | </property> | ||
243 | </widget> | 255 | </widget> |
244 | <spacer> | 256 | <spacer> |
245 | <property> | 257 | <property> |
246 | <name>name</name> | 258 | <name>name</name> |
247 | <cstring>Spacer4</cstring> | 259 | <cstring>Spacer4</cstring> |
248 | </property> | 260 | </property> |
249 | <property stdset="1"> | 261 | <property stdset="1"> |
250 | <name>orientation</name> | 262 | <name>orientation</name> |
251 | <enum>Vertical</enum> | 263 | <enum>Vertical</enum> |
252 | </property> | 264 | </property> |
253 | <property stdset="1"> | 265 | <property stdset="1"> |
254 | <name>sizeType</name> | 266 | <name>sizeType</name> |
255 | <enum>Expanding</enum> | 267 | <enum>Expanding</enum> |
256 | </property> | 268 | </property> |
257 | <property> | 269 | <property> |
258 | <name>sizeHint</name> | 270 | <name>sizeHint</name> |
259 | <size> | 271 | <size> |
260 | <width>20</width> | 272 | <width>20</width> |
261 | <height>20</height> | 273 | <height>20</height> |
262 | </size> | 274 | </size> |
263 | </property> | 275 | </property> |
264 | </spacer> | 276 | </spacer> |
265 | <widget> | 277 | <widget> |
266 | <class>QLayoutWidget</class> | 278 | <class>QLayoutWidget</class> |
@@ -270,48 +282,52 @@ | |||
270 | </property> | 282 | </property> |
271 | <hbox> | 283 | <hbox> |
272 | <property stdset="1"> | 284 | <property stdset="1"> |
273 | <name>margin</name> | 285 | <name>margin</name> |
274 | <number>0</number> | 286 | <number>0</number> |
275 | </property> | 287 | </property> |
276 | <property stdset="1"> | 288 | <property stdset="1"> |
277 | <name>spacing</name> | 289 | <name>spacing</name> |
278 | <number>6</number> | 290 | <number>6</number> |
279 | </property> | 291 | </property> |
280 | <widget> | 292 | <widget> |
281 | <class>QCheckBox</class> | 293 | <class>QCheckBox</class> |
282 | <property stdset="1"> | 294 | <property stdset="1"> |
283 | <name>name</name> | 295 | <name>name</name> |
284 | <cstring>hopChannels</cstring> | 296 | <cstring>hopChannels</cstring> |
285 | </property> | 297 | </property> |
286 | <property stdset="1"> | 298 | <property stdset="1"> |
287 | <name>text</name> | 299 | <name>text</name> |
288 | <string>Hop Channels</string> | 300 | <string>Hop Channels</string> |
289 | </property> | 301 | </property> |
290 | <property stdset="1"> | 302 | <property stdset="1"> |
291 | <name>checked</name> | 303 | <name>checked</name> |
292 | <bool>true</bool> | 304 | <bool>true</bool> |
293 | </property> | 305 | </property> |
306 | <property> | ||
307 | <name>whatsThis</name> | ||
308 | <string>Check this, if you want to start a channel hopper.</string> | ||
309 | </property> | ||
294 | </widget> | 310 | </widget> |
295 | <widget> | 311 | <widget> |
296 | <class>QLabel</class> | 312 | <class>QLabel</class> |
297 | <property stdset="1"> | 313 | <property stdset="1"> |
298 | <name>name</name> | 314 | <name>name</name> |
299 | <cstring>TextLabel1</cstring> | 315 | <cstring>TextLabel1</cstring> |
300 | </property> | 316 | </property> |
301 | <property stdset="1"> | 317 | <property stdset="1"> |
302 | <name>text</name> | 318 | <name>text</name> |
303 | <string>every</string> | 319 | <string>every</string> |
304 | </property> | 320 | </property> |
305 | </widget> | 321 | </widget> |
306 | <widget> | 322 | <widget> |
307 | <class>QSpinBox</class> | 323 | <class>QSpinBox</class> |
308 | <property stdset="1"> | 324 | <property stdset="1"> |
309 | <name>name</name> | 325 | <name>name</name> |
310 | <cstring>hopInterval</cstring> | 326 | <cstring>hopInterval</cstring> |
311 | </property> | 327 | </property> |
312 | <property stdset="1"> | 328 | <property stdset="1"> |
313 | <name>enabled</name> | 329 | <name>enabled</name> |
314 | <bool>true</bool> | 330 | <bool>true</bool> |
315 | </property> | 331 | </property> |
316 | <property stdset="1"> | 332 | <property stdset="1"> |
317 | <name>suffix</name> | 333 | <name>suffix</name> |
@@ -333,69 +349,77 @@ | |||
333 | <name>value</name> | 349 | <name>value</name> |
334 | <number>1000</number> | 350 | <number>1000</number> |
335 | </property> | 351 | </property> |
336 | <property> | 352 | <property> |
337 | <name>whatsThis</name> | 353 | <name>whatsThis</name> |
338 | <string>Choose the channel hop interval.</string> | 354 | <string>Choose the channel hop interval.</string> |
339 | </property> | 355 | </property> |
340 | </widget> | 356 | </widget> |
341 | </hbox> | 357 | </hbox> |
342 | </widget> | 358 | </widget> |
343 | <widget> | 359 | <widget> |
344 | <class>QCheckBox</class> | 360 | <class>QCheckBox</class> |
345 | <property stdset="1"> | 361 | <property stdset="1"> |
346 | <name>name</name> | 362 | <name>name</name> |
347 | <cstring>adaptiveHopping</cstring> | 363 | <cstring>adaptiveHopping</cstring> |
348 | </property> | 364 | </property> |
349 | <property stdset="1"> | 365 | <property stdset="1"> |
350 | <name>enabled</name> | 366 | <name>enabled</name> |
351 | <bool>false</bool> | 367 | <bool>false</bool> |
352 | </property> | 368 | </property> |
353 | <property stdset="1"> | 369 | <property stdset="1"> |
354 | <name>text</name> | 370 | <name>text</name> |
355 | <string>Use Adaptive(TM) Hop Scheme</string> | 371 | <string>Use Adaptive(TM) Hop Scheme</string> |
356 | </property> | 372 | </property> |
373 | <property> | ||
374 | <name>whatsThis</name> | ||
375 | <string>An adaptive hopping interval dynamically changes the channel hopping parameters to listen longer on channels where traffic comes in.</string> | ||
376 | </property> | ||
357 | </widget> | 377 | </widget> |
358 | <widget> | 378 | <widget> |
359 | <class>QGroupBox</class> | 379 | <class>QGroupBox</class> |
360 | <property stdset="1"> | 380 | <property stdset="1"> |
361 | <name>name</name> | 381 | <name>name</name> |
362 | <cstring>GroupBox1</cstring> | 382 | <cstring>GroupBox1</cstring> |
363 | </property> | 383 | </property> |
364 | <property stdset="1"> | 384 | <property stdset="1"> |
365 | <name>enabled</name> | 385 | <name>enabled</name> |
366 | <bool>false</bool> | 386 | <bool>false</bool> |
367 | </property> | 387 | </property> |
368 | <property stdset="1"> | 388 | <property stdset="1"> |
369 | <name>title</name> | 389 | <name>title</name> |
370 | <string>Scan on channel</string> | 390 | <string>Scan on channel</string> |
371 | </property> | 391 | </property> |
372 | <property> | 392 | <property> |
373 | <name>layoutMargin</name> | 393 | <name>layoutMargin</name> |
374 | </property> | 394 | </property> |
375 | <property> | 395 | <property> |
376 | <name>layoutSpacing</name> | 396 | <name>layoutSpacing</name> |
377 | </property> | 397 | </property> |
398 | <property> | ||
399 | <name>whatsThis</name> | ||
400 | <string>Check the channels which should be included in the channel hopping scheme. Note that due to the 802.11 channel overlay scheme you may receive data on neighbour channels of channels, even if they're not checked here.</string> | ||
401 | </property> | ||
378 | <grid> | 402 | <grid> |
379 | <property stdset="1"> | 403 | <property stdset="1"> |
380 | <name>margin</name> | 404 | <name>margin</name> |
381 | <number>4</number> | 405 | <number>4</number> |
382 | </property> | 406 | </property> |
383 | <property stdset="1"> | 407 | <property stdset="1"> |
384 | <name>spacing</name> | 408 | <name>spacing</name> |
385 | <number>2</number> | 409 | <number>2</number> |
386 | </property> | 410 | </property> |
387 | <widget row="1" column="1" > | 411 | <widget row="1" column="1" > |
388 | <class>QCheckBox</class> | 412 | <class>QCheckBox</class> |
389 | <property stdset="1"> | 413 | <property stdset="1"> |
390 | <name>name</name> | 414 | <name>name</name> |
391 | <cstring>channel6</cstring> | 415 | <cstring>channel6</cstring> |
392 | </property> | 416 | </property> |
393 | <property stdset="1"> | 417 | <property stdset="1"> |
394 | <name>text</name> | 418 | <name>text</name> |
395 | <string>6</string> | 419 | <string>6</string> |
396 | </property> | 420 | </property> |
397 | </widget> | 421 | </widget> |
398 | <widget row="1" column="3" > | 422 | <widget row="1" column="3" > |
399 | <class>QCheckBox</class> | 423 | <class>QCheckBox</class> |
400 | <property stdset="1"> | 424 | <property stdset="1"> |
401 | <name>name</name> | 425 | <name>name</name> |
@@ -583,99 +607,111 @@ | |||
583 | <bool>false</bool> | 607 | <bool>false</bool> |
584 | </property> | 608 | </property> |
585 | <property stdset="1"> | 609 | <property stdset="1"> |
586 | <name>sizePolicy</name> | 610 | <name>sizePolicy</name> |
587 | <sizepolicy> | 611 | <sizepolicy> |
588 | <hsizetype>7</hsizetype> | 612 | <hsizetype>7</hsizetype> |
589 | <vsizetype>7</vsizetype> | 613 | <vsizetype>7</vsizetype> |
590 | </sizepolicy> | 614 | </sizepolicy> |
591 | </property> | 615 | </property> |
592 | </widget> | 616 | </widget> |
593 | <widget row="1" column="0" rowspan="1" colspan="3" > | 617 | <widget row="1" column="0" rowspan="1" colspan="3" > |
594 | <class>QLineEdit</class> | 618 | <class>QLineEdit</class> |
595 | <property stdset="1"> | 619 | <property stdset="1"> |
596 | <name>name</name> | 620 | <name>name</name> |
597 | <cstring>captureFileName</cstring> | 621 | <cstring>captureFileName</cstring> |
598 | </property> | 622 | </property> |
599 | <property stdset="1"> | 623 | <property stdset="1"> |
600 | <name>enabled</name> | 624 | <name>enabled</name> |
601 | <bool>false</bool> | 625 | <bool>false</bool> |
602 | </property> | 626 | </property> |
603 | <property stdset="1"> | 627 | <property stdset="1"> |
604 | <name>text</name> | 628 | <name>text</name> |
605 | <string>/tmp/capture</string> | 629 | <string>/tmp/capture</string> |
606 | </property> | 630 | </property> |
631 | <property> | ||
632 | <name>whatsThis</name> | ||
633 | <string>Configure the name of the capture file.</string> | ||
634 | </property> | ||
607 | </widget> | 635 | </widget> |
608 | <widget row="0" column="2" > | 636 | <widget row="0" column="2" > |
609 | <class>QToolButton</class> | 637 | <class>QToolButton</class> |
610 | <property stdset="1"> | 638 | <property stdset="1"> |
611 | <name>name</name> | 639 | <name>name</name> |
612 | <cstring>getCaptureFileName</cstring> | 640 | <cstring>getCaptureFileName</cstring> |
613 | </property> | 641 | </property> |
614 | <property stdset="1"> | 642 | <property stdset="1"> |
615 | <name>enabled</name> | 643 | <name>enabled</name> |
616 | <bool>false</bool> | 644 | <bool>false</bool> |
617 | </property> | 645 | </property> |
618 | <property stdset="1"> | 646 | <property stdset="1"> |
619 | <name>text</name> | 647 | <name>text</name> |
620 | <string>Browse</string> | 648 | <string>Browse</string> |
621 | </property> | 649 | </property> |
650 | <property> | ||
651 | <name>whatsThis</name> | ||
652 | <string>Click to open a file requester to choose a capture file name.</string> | ||
653 | </property> | ||
622 | </widget> | 654 | </widget> |
623 | <spacer row="0" column="1" > | 655 | <spacer row="0" column="1" > |
624 | <property> | 656 | <property> |
625 | <name>name</name> | 657 | <name>name</name> |
626 | <cstring>Spacer2</cstring> | 658 | <cstring>Spacer2</cstring> |
627 | </property> | 659 | </property> |
628 | <property stdset="1"> | 660 | <property stdset="1"> |
629 | <name>orientation</name> | 661 | <name>orientation</name> |
630 | <enum>Horizontal</enum> | 662 | <enum>Horizontal</enum> |
631 | </property> | 663 | </property> |
632 | <property stdset="1"> | 664 | <property stdset="1"> |
633 | <name>sizeType</name> | 665 | <name>sizeType</name> |
634 | <enum>Expanding</enum> | 666 | <enum>Expanding</enum> |
635 | </property> | 667 | </property> |
636 | <property> | 668 | <property> |
637 | <name>sizeHint</name> | 669 | <name>sizeHint</name> |
638 | <size> | 670 | <size> |
639 | <width>20</width> | 671 | <width>20</width> |
640 | <height>20</height> | 672 | <height>20</height> |
641 | </size> | 673 | </size> |
642 | </property> | 674 | </property> |
643 | </spacer> | 675 | </spacer> |
644 | <widget row="0" column="0" > | 676 | <widget row="0" column="0" > |
645 | <class>QCheckBox</class> | 677 | <class>QCheckBox</class> |
646 | <property stdset="1"> | 678 | <property stdset="1"> |
647 | <name>name</name> | 679 | <name>name</name> |
648 | <cstring>writeCaptureFile</cstring> | 680 | <cstring>writeCaptureFile</cstring> |
649 | </property> | 681 | </property> |
650 | <property stdset="1"> | 682 | <property stdset="1"> |
651 | <name>enabled</name> | 683 | <name>enabled</name> |
652 | <bool>true</bool> | 684 | <bool>true</bool> |
653 | </property> | 685 | </property> |
654 | <property stdset="1"> | 686 | <property stdset="1"> |
655 | <name>text</name> | 687 | <name>text</name> |
656 | <string>Write Capture Files To</string> | 688 | <string>Write Capture Files To</string> |
657 | </property> | 689 | </property> |
690 | <property> | ||
691 | <name>whatsThis</name> | ||
692 | <string>Check this to write an ethereal compatible capture file.</string> | ||
693 | </property> | ||
658 | </widget> | 694 | </widget> |
659 | </grid> | 695 | </grid> |
660 | </widget> | 696 | </widget> |
661 | <widget> | 697 | <widget> |
662 | <class>QWidget</class> | 698 | <class>QWidget</class> |
663 | <property stdset="1"> | 699 | <property stdset="1"> |
664 | <name>name</name> | 700 | <name>name</name> |
665 | <cstring>tab</cstring> | 701 | <cstring>tab</cstring> |
666 | </property> | 702 | </property> |
667 | <attribute> | 703 | <attribute> |
668 | <name>title</name> | 704 | <name>title</name> |
669 | <string>Parse</string> | 705 | <string>Parse</string> |
670 | </attribute> | 706 | </attribute> |
671 | <grid> | 707 | <grid> |
672 | <property stdset="1"> | 708 | <property stdset="1"> |
673 | <name>margin</name> | 709 | <name>margin</name> |
674 | <number>5</number> | 710 | <number>5</number> |
675 | </property> | 711 | </property> |
676 | <property stdset="1"> | 712 | <property stdset="1"> |
677 | <name>spacing</name> | 713 | <name>spacing</name> |
678 | <number>3</number> | 714 | <number>3</number> |
679 | </property> | 715 | </property> |
680 | <widget row="0" column="0" > | 716 | <widget row="0" column="0" > |
681 | <class>ProtocolListView</class> | 717 | <class>ProtocolListView</class> |
@@ -701,70 +737,82 @@ | |||
701 | </property> | 737 | </property> |
702 | <attribute> | 738 | <attribute> |
703 | <name>title</name> | 739 | <name>title</name> |
704 | <string>UI</string> | 740 | <string>UI</string> |
705 | </attribute> | 741 | </attribute> |
706 | <vbox> | 742 | <vbox> |
707 | <property stdset="1"> | 743 | <property stdset="1"> |
708 | <name>margin</name> | 744 | <name>margin</name> |
709 | <number>5</number> | 745 | <number>5</number> |
710 | </property> | 746 | </property> |
711 | <property stdset="1"> | 747 | <property stdset="1"> |
712 | <name>spacing</name> | 748 | <name>spacing</name> |
713 | <number>3</number> | 749 | <number>3</number> |
714 | </property> | 750 | </property> |
715 | <widget> | 751 | <widget> |
716 | <class>QCheckBox</class> | 752 | <class>QCheckBox</class> |
717 | <property stdset="1"> | 753 | <property stdset="1"> |
718 | <name>name</name> | 754 | <name>name</name> |
719 | <cstring>lookupVendor</cstring> | 755 | <cstring>lookupVendor</cstring> |
720 | </property> | 756 | </property> |
721 | <property stdset="1"> | 757 | <property stdset="1"> |
722 | <name>text</name> | 758 | <name>text</name> |
723 | <string>Lookup MAC vendor names</string> | 759 | <string>Lookup MAC vendor names</string> |
724 | </property> | 760 | </property> |
761 | <property> | ||
762 | <name>whatsThis</name> | ||
763 | <string>Check this to lookup MAC vendor names.</string> | ||
764 | </property> | ||
725 | </widget> | 765 | </widget> |
726 | <widget> | 766 | <widget> |
727 | <class>QCheckBox</class> | 767 | <class>QCheckBox</class> |
728 | <property stdset="1"> | 768 | <property stdset="1"> |
729 | <name>name</name> | 769 | <name>name</name> |
730 | <cstring>openTree</cstring> | 770 | <cstring>openTree</cstring> |
731 | </property> | 771 | </property> |
732 | <property stdset="1"> | 772 | <property stdset="1"> |
733 | <name>text</name> | 773 | <name>text</name> |
734 | <string>Open Tree On New Station</string> | 774 | <string>Open Tree On New Station</string> |
735 | </property> | 775 | </property> |
776 | <property> | ||
777 | <name>whatsThis</name> | ||
778 | <string>Check this to automatically make a tree visible when a new station is detected.</string> | ||
779 | </property> | ||
736 | </widget> | 780 | </widget> |
737 | <widget> | 781 | <widget> |
738 | <class>QCheckBox</class> | 782 | <class>QCheckBox</class> |
739 | <property stdset="1"> | 783 | <property stdset="1"> |
740 | <name>name</name> | 784 | <name>name</name> |
741 | <cstring>disablePM</cstring> | 785 | <cstring>disablePM</cstring> |
742 | </property> | 786 | </property> |
743 | <property stdset="1"> | 787 | <property stdset="1"> |
744 | <name>text</name> | 788 | <name>text</name> |
745 | <string>Disable Power Management</string> | 789 | <string>Disable Power Management</string> |
746 | </property> | 790 | </property> |
791 | <property> | ||
792 | <name>whatsThis</name> | ||
793 | <string>Check this to disable power management while scanning.</string> | ||
794 | </property> | ||
747 | </widget> | 795 | </widget> |
748 | <spacer> | 796 | <spacer> |
749 | <property> | 797 | <property> |
750 | <name>name</name> | 798 | <name>name</name> |
751 | <cstring>Spacer3</cstring> | 799 | <cstring>Spacer3</cstring> |
752 | </property> | 800 | </property> |
753 | <property stdset="1"> | 801 | <property stdset="1"> |
754 | <name>orientation</name> | 802 | <name>orientation</name> |
755 | <enum>Vertical</enum> | 803 | <enum>Vertical</enum> |
756 | </property> | 804 | </property> |
757 | <property stdset="1"> | 805 | <property stdset="1"> |
758 | <name>sizeType</name> | 806 | <name>sizeType</name> |
759 | <enum>Expanding</enum> | 807 | <enum>Expanding</enum> |
760 | </property> | 808 | </property> |
761 | <property> | 809 | <property> |
762 | <name>sizeHint</name> | 810 | <name>sizeHint</name> |
763 | <size> | 811 | <size> |
764 | <width>20</width> | 812 | <width>20</width> |
765 | <height>20</height> | 813 | <height>20</height> |
766 | </size> | 814 | </size> |
767 | </property> | 815 | </property> |
768 | </spacer> | 816 | </spacer> |
769 | <widget> | 817 | <widget> |
770 | <class>QGroupBox</class> | 818 | <class>QGroupBox</class> |
@@ -860,59 +908,67 @@ | |||
860 | </item> | 908 | </item> |
861 | <item> | 909 | <item> |
862 | <property> | 910 | <property> |
863 | <name>text</name> | 911 | <name>text</name> |
864 | <string>Blink LED</string> | 912 | <string>Blink LED</string> |
865 | </property> | 913 | </property> |
866 | </item> | 914 | </item> |
867 | <item> | 915 | <item> |
868 | <property> | 916 | <property> |
869 | <name>text</name> | 917 | <name>text</name> |
870 | <string>Run Script</string> | 918 | <string>Run Script</string> |
871 | </property> | 919 | </property> |
872 | </item> | 920 | </item> |
873 | <property stdset="1"> | 921 | <property stdset="1"> |
874 | <name>name</name> | 922 | <name>name</name> |
875 | <cstring>newClientAction</cstring> | 923 | <cstring>newClientAction</cstring> |
876 | </property> | 924 | </property> |
877 | <property stdset="1"> | 925 | <property stdset="1"> |
878 | <name>sizePolicy</name> | 926 | <name>sizePolicy</name> |
879 | <sizepolicy> | 927 | <sizepolicy> |
880 | <hsizetype>7</hsizetype> | 928 | <hsizetype>7</hsizetype> |
881 | <vsizetype>0</vsizetype> | 929 | <vsizetype>0</vsizetype> |
882 | </sizepolicy> | 930 | </sizepolicy> |
883 | </property> | 931 | </property> |
932 | <property> | ||
933 | <name>whatsThis</name> | ||
934 | <string>Choose an action to perform when a new wireless station is detected.</string> | ||
935 | </property> | ||
884 | </widget> | 936 | </widget> |
885 | <widget row="3" column="0" rowspan="1" colspan="2" > | 937 | <widget row="3" column="0" rowspan="1" colspan="2" > |
886 | <class>QLineEdit</class> | 938 | <class>QLineEdit</class> |
887 | <property stdset="1"> | 939 | <property stdset="1"> |
888 | <name>name</name> | 940 | <name>name</name> |
889 | <cstring>newClientScript</cstring> | 941 | <cstring>newClientScript</cstring> |
890 | </property> | 942 | </property> |
891 | <property stdset="1"> | 943 | <property stdset="1"> |
892 | <name>enabled</name> | 944 | <name>enabled</name> |
893 | <bool>true</bool> | 945 | <bool>true</bool> |
894 | </property> | 946 | </property> |
947 | <property> | ||
948 | <name>whatsThis</name> | ||
949 | <string>The command line to execute when a script action is performed.</string> | ||
950 | </property> | ||
895 | </widget> | 951 | </widget> |
896 | <widget row="2" column="0" > | 952 | <widget row="2" column="0" > |
897 | <class>QLabel</class> | 953 | <class>QLabel</class> |
898 | <property stdset="1"> | 954 | <property stdset="1"> |
899 | <name>name</name> | 955 | <name>name</name> |
900 | <cstring>TextLabel2</cstring> | 956 | <cstring>TextLabel2</cstring> |
901 | </property> | 957 | </property> |
902 | <property stdset="1"> | 958 | <property stdset="1"> |
903 | <name>text</name> | 959 | <name>text</name> |
904 | <string>Wireless Station:</string> | 960 | <string>Wireless Station:</string> |
905 | </property> | 961 | </property> |
906 | </widget> | 962 | </widget> |
907 | <widget row="4" column="1" > | 963 | <widget row="4" column="1" > |
908 | <class>QComboBox</class> | 964 | <class>QComboBox</class> |
909 | <item> | 965 | <item> |
910 | <property> | 966 | <property> |
911 | <name>text</name> | 967 | <name>text</name> |
912 | <string><Ignore></string> | 968 | <string><Ignore></string> |
913 | </property> | 969 | </property> |
914 | </item> | 970 | </item> |
915 | <item> | 971 | <item> |
916 | <property> | 972 | <property> |
917 | <name>text</name> | 973 | <name>text</name> |
918 | <string>Play Alarm</string> | 974 | <string>Play Alarm</string> |
@@ -926,118 +982,134 @@ | |||
926 | </item> | 982 | </item> |
927 | <item> | 983 | <item> |
928 | <property> | 984 | <property> |
929 | <name>text</name> | 985 | <name>text</name> |
930 | <string>Blink LED</string> | 986 | <string>Blink LED</string> |
931 | </property> | 987 | </property> |
932 | </item> | 988 | </item> |
933 | <item> | 989 | <item> |
934 | <property> | 990 | <property> |
935 | <name>text</name> | 991 | <name>text</name> |
936 | <string>Run Script</string> | 992 | <string>Run Script</string> |
937 | </property> | 993 | </property> |
938 | </item> | 994 | </item> |
939 | <property stdset="1"> | 995 | <property stdset="1"> |
940 | <name>name</name> | 996 | <name>name</name> |
941 | <cstring>newStationAction</cstring> | 997 | <cstring>newStationAction</cstring> |
942 | </property> | 998 | </property> |
943 | <property stdset="1"> | 999 | <property stdset="1"> |
944 | <name>sizePolicy</name> | 1000 | <name>sizePolicy</name> |
945 | <sizepolicy> | 1001 | <sizepolicy> |
946 | <hsizetype>7</hsizetype> | 1002 | <hsizetype>7</hsizetype> |
947 | <vsizetype>0</vsizetype> | 1003 | <vsizetype>0</vsizetype> |
948 | </sizepolicy> | 1004 | </sizepolicy> |
949 | </property> | 1005 | </property> |
1006 | <property> | ||
1007 | <name>whatsThis</name> | ||
1008 | <string>Choose the action to perform when a new wired station is detected.</string> | ||
1009 | </property> | ||
950 | </widget> | 1010 | </widget> |
951 | <widget row="0" column="1" > | 1011 | <widget row="0" column="1" > |
952 | <class>QComboBox</class> | 1012 | <class>QComboBox</class> |
953 | <item> | 1013 | <item> |
954 | <property> | 1014 | <property> |
955 | <name>text</name> | 1015 | <name>text</name> |
956 | <string><Ignore></string> | 1016 | <string><Ignore></string> |
957 | </property> | 1017 | </property> |
958 | </item> | 1018 | </item> |
959 | <item> | 1019 | <item> |
960 | <property> | 1020 | <property> |
961 | <name>text</name> | 1021 | <name>text</name> |
962 | <string>Play Alarm</string> | 1022 | <string>Play Alarm</string> |
963 | </property> | 1023 | </property> |
964 | </item> | 1024 | </item> |
965 | <item> | 1025 | <item> |
966 | <property> | 1026 | <property> |
967 | <name>text</name> | 1027 | <name>text</name> |
968 | <string>Play Click</string> | 1028 | <string>Play Click</string> |
969 | </property> | 1029 | </property> |
970 | </item> | 1030 | </item> |
971 | <item> | 1031 | <item> |
972 | <property> | 1032 | <property> |
973 | <name>text</name> | 1033 | <name>text</name> |
974 | <string>Blink LED</string> | 1034 | <string>Blink LED</string> |
975 | </property> | 1035 | </property> |
976 | </item> | 1036 | </item> |
977 | <item> | 1037 | <item> |
978 | <property> | 1038 | <property> |
979 | <name>text</name> | 1039 | <name>text</name> |
980 | <string>Run Script</string> | 1040 | <string>Run Script</string> |
981 | </property> | 1041 | </property> |
982 | </item> | 1042 | </item> |
983 | <property stdset="1"> | 1043 | <property stdset="1"> |
984 | <name>name</name> | 1044 | <name>name</name> |
985 | <cstring>newNetworkAction</cstring> | 1045 | <cstring>newNetworkAction</cstring> |
986 | </property> | 1046 | </property> |
987 | <property stdset="1"> | 1047 | <property stdset="1"> |
988 | <name>sizePolicy</name> | 1048 | <name>sizePolicy</name> |
989 | <sizepolicy> | 1049 | <sizepolicy> |
990 | <hsizetype>7</hsizetype> | 1050 | <hsizetype>7</hsizetype> |
991 | <vsizetype>0</vsizetype> | 1051 | <vsizetype>0</vsizetype> |
992 | </sizepolicy> | 1052 | </sizepolicy> |
993 | </property> | 1053 | </property> |
994 | <property stdset="1"> | 1054 | <property stdset="1"> |
995 | <name>editable</name> | 1055 | <name>editable</name> |
996 | <bool>false</bool> | 1056 | <bool>false</bool> |
997 | </property> | 1057 | </property> |
1058 | <property> | ||
1059 | <name>whatsThis</name> | ||
1060 | <string>Choose an action to perform when a new network is detected.</string> | ||
1061 | </property> | ||
998 | </widget> | 1062 | </widget> |
999 | <widget row="1" column="0" rowspan="1" colspan="2" > | 1063 | <widget row="1" column="0" rowspan="1" colspan="2" > |
1000 | <class>QLineEdit</class> | 1064 | <class>QLineEdit</class> |
1001 | <property stdset="1"> | 1065 | <property stdset="1"> |
1002 | <name>name</name> | 1066 | <name>name</name> |
1003 | <cstring>newNetworkScript</cstring> | 1067 | <cstring>newNetworkScript</cstring> |
1004 | </property> | 1068 | </property> |
1005 | <property stdset="1"> | 1069 | <property stdset="1"> |
1006 | <name>enabled</name> | 1070 | <name>enabled</name> |
1007 | <bool>true</bool> | 1071 | <bool>true</bool> |
1008 | </property> | 1072 | </property> |
1073 | <property> | ||
1074 | <name>whatsThis</name> | ||
1075 | <string>The command line to execute when a script action is performed.</string> | ||
1076 | </property> | ||
1009 | </widget> | 1077 | </widget> |
1010 | <widget row="5" column="0" rowspan="1" colspan="2" > | 1078 | <widget row="5" column="0" rowspan="1" colspan="2" > |
1011 | <class>QLineEdit</class> | 1079 | <class>QLineEdit</class> |
1012 | <property stdset="1"> | 1080 | <property stdset="1"> |
1013 | <name>name</name> | 1081 | <name>name</name> |
1014 | <cstring>newStationScript</cstring> | 1082 | <cstring>newStationScript</cstring> |
1015 | </property> | 1083 | </property> |
1016 | <property stdset="1"> | 1084 | <property stdset="1"> |
1017 | <name>enabled</name> | 1085 | <name>enabled</name> |
1018 | <bool>true</bool> | 1086 | <bool>true</bool> |
1019 | </property> | 1087 | </property> |
1088 | <property> | ||
1089 | <name>whatsThis</name> | ||
1090 | <string>Choose an action to perform when a new wireless station is detected.</string> | ||
1091 | </property> | ||
1020 | </widget> | 1092 | </widget> |
1021 | </grid> | 1093 | </grid> |
1022 | </widget> | 1094 | </widget> |
1023 | </grid> | 1095 | </grid> |
1024 | </widget> | 1096 | </widget> |
1025 | </vbox> | 1097 | </vbox> |
1026 | </widget> | 1098 | </widget> |
1027 | <widget> | 1099 | <widget> |
1028 | <class>QWidget</class> | 1100 | <class>QWidget</class> |
1029 | <property stdset="1"> | 1101 | <property stdset="1"> |
1030 | <name>name</name> | 1102 | <name>name</name> |
1031 | <cstring>tab</cstring> | 1103 | <cstring>tab</cstring> |
1032 | </property> | 1104 | </property> |
1033 | <attribute> | 1105 | <attribute> |
1034 | <name>title</name> | 1106 | <name>title</name> |
1035 | <string>Intrusion</string> | 1107 | <string>Intrusion</string> |
1036 | </attribute> | 1108 | </attribute> |
1037 | <grid> | 1109 | <grid> |
1038 | <property stdset="1"> | 1110 | <property stdset="1"> |
1039 | <name>margin</name> | 1111 | <name>margin</name> |
1040 | <number>6</number> | 1112 | <number>6</number> |
1041 | </property> | 1113 | </property> |
1042 | <property stdset="1"> | 1114 | <property stdset="1"> |
1043 | <name>spacing</name> | 1115 | <name>spacing</name> |
@@ -1260,48 +1332,52 @@ | |||
1260 | <class>QLayoutWidget</class> | 1332 | <class>QLayoutWidget</class> |
1261 | <property stdset="1"> | 1333 | <property stdset="1"> |
1262 | <name>name</name> | 1334 | <name>name</name> |
1263 | <cstring>Layout6</cstring> | 1335 | <cstring>Layout6</cstring> |
1264 | </property> | 1336 | </property> |
1265 | <vbox> | 1337 | <vbox> |
1266 | <property stdset="1"> | 1338 | <property stdset="1"> |
1267 | <name>margin</name> | 1339 | <name>margin</name> |
1268 | <number>0</number> | 1340 | <number>0</number> |
1269 | </property> | 1341 | </property> |
1270 | <property stdset="1"> | 1342 | <property stdset="1"> |
1271 | <name>spacing</name> | 1343 | <name>spacing</name> |
1272 | <number>6</number> | 1344 | <number>6</number> |
1273 | </property> | 1345 | </property> |
1274 | <widget> | 1346 | <widget> |
1275 | <class>QCheckBox</class> | 1347 | <class>QCheckBox</class> |
1276 | <property stdset="1"> | 1348 | <property stdset="1"> |
1277 | <name>name</name> | 1349 | <name>name</name> |
1278 | <cstring>enableGPS</cstring> | 1350 | <cstring>enableGPS</cstring> |
1279 | </property> | 1351 | </property> |
1280 | <property stdset="1"> | 1352 | <property stdset="1"> |
1281 | <name>text</name> | 1353 | <name>text</name> |
1282 | <string>Enable GPS logging w/ gpsd</string> | 1354 | <string>Enable GPS logging w/ gpsd</string> |
1283 | </property> | 1355 | </property> |
1356 | <property> | ||
1357 | <name>whatsThis</name> | ||
1358 | <string>Check this to log GPS coordinates.</string> | ||
1359 | </property> | ||
1284 | </widget> | 1360 | </widget> |
1285 | <widget> | 1361 | <widget> |
1286 | <class>QLayoutWidget</class> | 1362 | <class>QLayoutWidget</class> |
1287 | <property stdset="1"> | 1363 | <property stdset="1"> |
1288 | <name>name</name> | 1364 | <name>name</name> |
1289 | <cstring>Layout1</cstring> | 1365 | <cstring>Layout1</cstring> |
1290 | </property> | 1366 | </property> |
1291 | <hbox> | 1367 | <hbox> |
1292 | <property stdset="1"> | 1368 | <property stdset="1"> |
1293 | <name>margin</name> | 1369 | <name>margin</name> |
1294 | <number>0</number> | 1370 | <number>0</number> |
1295 | </property> | 1371 | </property> |
1296 | <property stdset="1"> | 1372 | <property stdset="1"> |
1297 | <name>spacing</name> | 1373 | <name>spacing</name> |
1298 | <number>6</number> | 1374 | <number>6</number> |
1299 | </property> | 1375 | </property> |
1300 | <widget> | 1376 | <widget> |
1301 | <class>QLabel</class> | 1377 | <class>QLabel</class> |
1302 | <property stdset="1"> | 1378 | <property stdset="1"> |
1303 | <name>name</name> | 1379 | <name>name</name> |
1304 | <cstring>TextLabel1_4</cstring> | 1380 | <cstring>TextLabel1_4</cstring> |
1305 | </property> | 1381 | </property> |
1306 | <property stdset="1"> | 1382 | <property stdset="1"> |
1307 | <name>text</name> | 1383 | <name>text</name> |
@@ -1311,110 +1387,126 @@ | |||
1311 | <widget> | 1387 | <widget> |
1312 | <class>QComboBox</class> | 1388 | <class>QComboBox</class> |
1313 | <item> | 1389 | <item> |
1314 | <property> | 1390 | <property> |
1315 | <name>text</name> | 1391 | <name>text</name> |
1316 | <string>localhost</string> | 1392 | <string>localhost</string> |
1317 | </property> | 1393 | </property> |
1318 | </item> | 1394 | </item> |
1319 | <property stdset="1"> | 1395 | <property stdset="1"> |
1320 | <name>name</name> | 1396 | <name>name</name> |
1321 | <cstring>gpsdHost</cstring> | 1397 | <cstring>gpsdHost</cstring> |
1322 | </property> | 1398 | </property> |
1323 | <property stdset="1"> | 1399 | <property stdset="1"> |
1324 | <name>enabled</name> | 1400 | <name>enabled</name> |
1325 | <bool>false</bool> | 1401 | <bool>false</bool> |
1326 | </property> | 1402 | </property> |
1327 | <property stdset="1"> | 1403 | <property stdset="1"> |
1328 | <name>editable</name> | 1404 | <name>editable</name> |
1329 | <bool>true</bool> | 1405 | <bool>true</bool> |
1330 | </property> | 1406 | </property> |
1331 | <property stdset="1"> | 1407 | <property stdset="1"> |
1332 | <name>currentItem</name> | 1408 | <name>currentItem</name> |
1333 | <number>0</number> | 1409 | <number>0</number> |
1334 | </property> | 1410 | </property> |
1411 | <property> | ||
1412 | <name>whatsThis</name> | ||
1413 | <string>Hostadress where the gps daemon listens on.</string> | ||
1414 | </property> | ||
1335 | </widget> | 1415 | </widget> |
1336 | <widget> | 1416 | <widget> |
1337 | <class>QLabel</class> | 1417 | <class>QLabel</class> |
1338 | <property stdset="1"> | 1418 | <property stdset="1"> |
1339 | <name>name</name> | 1419 | <name>name</name> |
1340 | <cstring>TextLabel2_2</cstring> | 1420 | <cstring>TextLabel2_2</cstring> |
1341 | </property> | 1421 | </property> |
1342 | <property stdset="1"> | 1422 | <property stdset="1"> |
1343 | <name>text</name> | 1423 | <name>text</name> |
1344 | <string>:</string> | 1424 | <string>:</string> |
1345 | </property> | 1425 | </property> |
1346 | </widget> | 1426 | </widget> |
1347 | <widget> | 1427 | <widget> |
1348 | <class>QSpinBox</class> | 1428 | <class>QSpinBox</class> |
1349 | <property stdset="1"> | 1429 | <property stdset="1"> |
1350 | <name>name</name> | 1430 | <name>name</name> |
1351 | <cstring>gpsdPort</cstring> | 1431 | <cstring>gpsdPort</cstring> |
1352 | </property> | 1432 | </property> |
1353 | <property stdset="1"> | 1433 | <property stdset="1"> |
1354 | <name>enabled</name> | 1434 | <name>enabled</name> |
1355 | <bool>false</bool> | 1435 | <bool>false</bool> |
1356 | </property> | 1436 | </property> |
1357 | <property stdset="1"> | 1437 | <property stdset="1"> |
1358 | <name>maxValue</name> | 1438 | <name>maxValue</name> |
1359 | <number>65535</number> | 1439 | <number>65535</number> |
1360 | </property> | 1440 | </property> |
1361 | <property stdset="1"> | 1441 | <property stdset="1"> |
1362 | <name>minValue</name> | 1442 | <name>minValue</name> |
1363 | <number>1024</number> | 1443 | <number>1024</number> |
1364 | </property> | 1444 | </property> |
1365 | <property stdset="1"> | 1445 | <property stdset="1"> |
1366 | <name>value</name> | 1446 | <name>value</name> |
1367 | <number>2947</number> | 1447 | <number>2947</number> |
1368 | </property> | 1448 | </property> |
1449 | <property> | ||
1450 | <name>whatsThis</name> | ||
1451 | <string>Port number where the gps daemon listens on.</string> | ||
1452 | </property> | ||
1369 | </widget> | 1453 | </widget> |
1370 | </hbox> | 1454 | </hbox> |
1371 | </widget> | 1455 | </widget> |
1372 | <widget> | 1456 | <widget> |
1373 | <class>QCheckBox</class> | 1457 | <class>QCheckBox</class> |
1374 | <property stdset="1"> | 1458 | <property stdset="1"> |
1375 | <name>name</name> | 1459 | <name>name</name> |
1376 | <cstring>startGPS</cstring> | 1460 | <cstring>startGPS</cstring> |
1377 | </property> | 1461 | </property> |
1378 | <property stdset="1"> | 1462 | <property stdset="1"> |
1379 | <name>text</name> | 1463 | <name>text</name> |
1380 | <string>Start gpsd on localhost</string> | 1464 | <string>Start gpsd on localhost</string> |
1381 | </property> | 1465 | </property> |
1466 | <property> | ||
1467 | <name>whatsThis</name> | ||
1468 | <string>Check to start the GPS daemon on localhost.</string> | ||
1469 | </property> | ||
1382 | </widget> | 1470 | </widget> |
1383 | <widget> | 1471 | <widget> |
1384 | <class>QLineEdit</class> | 1472 | <class>QLineEdit</class> |
1385 | <property stdset="1"> | 1473 | <property stdset="1"> |
1386 | <name>name</name> | 1474 | <name>name</name> |
1387 | <cstring>commandGPS</cstring> | 1475 | <cstring>commandGPS</cstring> |
1388 | </property> | 1476 | </property> |
1389 | <property stdset="1"> | 1477 | <property stdset="1"> |
1390 | <name>enabled</name> | 1478 | <name>enabled</name> |
1391 | <bool>false</bool> | 1479 | <bool>false</bool> |
1392 | </property> | 1480 | </property> |
1393 | <property stdset="1"> | 1481 | <property stdset="1"> |
1394 | <name>text</name> | 1482 | <name>text</name> |
1395 | <string>gpsd -p /dev/ttyS3 -s 4800</string> | 1483 | <string>gpsd -p /dev/ttyS3 -s 4800</string> |
1396 | </property> | 1484 | </property> |
1485 | <property> | ||
1486 | <name>whatsThis</name> | ||
1487 | <string>Command line to start the gps daemon.</string> | ||
1488 | </property> | ||
1397 | </widget> | 1489 | </widget> |
1398 | <spacer> | 1490 | <spacer> |
1399 | <property> | 1491 | <property> |
1400 | <name>name</name> | 1492 | <name>name</name> |
1401 | <cstring>Spacer4_2</cstring> | 1493 | <cstring>Spacer4_2</cstring> |
1402 | </property> | 1494 | </property> |
1403 | <property stdset="1"> | 1495 | <property stdset="1"> |
1404 | <name>orientation</name> | 1496 | <name>orientation</name> |
1405 | <enum>Vertical</enum> | 1497 | <enum>Vertical</enum> |
1406 | </property> | 1498 | </property> |
1407 | <property stdset="1"> | 1499 | <property stdset="1"> |
1408 | <name>sizeType</name> | 1500 | <name>sizeType</name> |
1409 | <enum>Expanding</enum> | 1501 | <enum>Expanding</enum> |
1410 | </property> | 1502 | </property> |
1411 | <property> | 1503 | <property> |
1412 | <name>sizeHint</name> | 1504 | <name>sizeHint</name> |
1413 | <size> | 1505 | <size> |
1414 | <width>20</width> | 1506 | <width>20</width> |
1415 | <height>20</height> | 1507 | <height>20</height> |
1416 | </size> | 1508 | </size> |
1417 | </property> | 1509 | </property> |
1418 | </spacer> | 1510 | </spacer> |
1419 | </vbox> | 1511 | </vbox> |
1420 | </widget> | 1512 | </widget> |
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 48fe89c..95b03d0 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 | /* OPIE */ | 20 | /* OPIE */ |
21 | #include <opie2/onetwork.h> | 21 | #include <opie2/onetwork.h> |
22 | #ifdef QWS | 22 | #ifdef QWS |
23 | #include <opie2/oapplication.h> | 23 | #include <opie2/oapplication.h> |
24 | #include <opie2/oconfig.h> | 24 | #include <opie2/oconfig.h> |
25 | #include <opie2/odevice.h> | 25 | #include <opie2/odevice.h> |
26 | using namespace Opie; | 26 | using namespace Opie; |
27 | #endif | 27 | #endif |
28 | 28 | ||
diff --git a/noncore/net/wellenreiter/gui/configwindow.h b/noncore/net/wellenreiter/gui/configwindow.h index d31d1e8..0a5b3bd 100644 --- a/noncore/net/wellenreiter/gui/configwindow.h +++ b/noncore/net/wellenreiter/gui/configwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "gps.h" | 20 | #include "gps.h" |
21 | 21 | ||
22 | /* QT */ | 22 | /* QT */ |
23 | #include <qmap.h> | 23 | #include <qmap.h> |
24 | #include <qcombobox.h> | 24 | #include <qcombobox.h> |
25 | #include <qstring.h> | 25 | #include <qstring.h> |
26 | 26 | ||
27 | const int DEVTYPE_SELECT = 0; | 27 | const int DEVTYPE_SELECT = 0; |
28 | const int DEVTYPE_CISCO = 1; | 28 | const int DEVTYPE_CISCO = 1; |
diff --git a/noncore/net/wellenreiter/gui/gps.cpp b/noncore/net/wellenreiter/gui/gps.cpp index b845aa1..a47b4ec 100644 --- a/noncore/net/wellenreiter/gui/gps.cpp +++ b/noncore/net/wellenreiter/gui/gps.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "gps.h" | 16 | #include "gps.h" |
17 | 17 | ||
18 | /* QT */ | 18 | /* QT */ |
19 | #include <qtextstream.h> | 19 | #include <qtextstream.h> |
20 | 20 | ||
21 | /* STD */ | 21 | /* STD */ |
22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
23 | #include <unistd.h> | 23 | #include <unistd.h> |
24 | 24 | ||
25 | GPS::GPS( QObject* parent, const char * name ) | 25 | GPS::GPS( QObject* parent, const char * name ) |
26 | :QObject( parent, name ) | 26 | :QObject( parent, name ) |
27 | { | 27 | { |
28 | qDebug( "GPS::GPS()" ); | 28 | qDebug( "GPS::GPS()" ); |
diff --git a/noncore/net/wellenreiter/gui/gps.h b/noncore/net/wellenreiter/gui/gps.h index cfe1cdb..5629fec 100644 --- a/noncore/net/wellenreiter/gui/gps.h +++ b/noncore/net/wellenreiter/gui/gps.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 GPS_H | 16 | #ifndef GPS_H |
17 | #define GPS_H | 17 | #define GPS_H |
18 | 18 | ||
19 | #include <qobject.h> | 19 | #include <qobject.h> |
20 | #include <qsocket.h> | 20 | #include <qsocket.h> |
21 | 21 | ||
22 | class GpsLocation | 22 | class GpsLocation |
23 | { | 23 | { |
24 | public: | 24 | public: |
25 | GpsLocation( const float& lat, const float& lon ) : _latitude(lat), _longitude(lon) {}; | 25 | GpsLocation( const float& lat, const float& lon ) : _latitude(lat), _longitude(lon) {}; |
26 | ~GpsLocation() {}; | 26 | ~GpsLocation() {}; |
27 | float latitude() const { return _latitude; }; | 27 | float latitude() const { return _latitude; }; |
28 | float longitude() const { return _longitude; }; | 28 | float longitude() const { return _longitude; }; |
diff --git a/noncore/net/wellenreiter/gui/graphwindow.cpp b/noncore/net/wellenreiter/gui/graphwindow.cpp index b116b91..b4174d3 100644 --- a/noncore/net/wellenreiter/gui/graphwindow.cpp +++ b/noncore/net/wellenreiter/gui/graphwindow.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "graphwindow.h" | 16 | #include "graphwindow.h" |
17 | 17 | ||
18 | #include <qpainter.h> | 18 | #include <qpainter.h> |
19 | #include <qpixmap.h> | 19 | #include <qpixmap.h> |
20 | #include <qtimer.h> | 20 | #include <qtimer.h> |
21 | 21 | ||
22 | MFrequencySpectrum::MFrequencySpectrum( int channels, QWidget* parent, const char* name, WFlags f) | 22 | MFrequencySpectrum::MFrequencySpectrum( int channels, QWidget* parent, const char* name, WFlags f) |
23 | :QWidget( parent, name,f ), _channels( channels ) | 23 | :QWidget( parent, name,f ), _channels( channels ) |
24 | { | 24 | { |
25 | _values = new int[_channels]; | 25 | _values = new int[_channels]; |
26 | _dirty = new bool[_channels]; | 26 | _dirty = new bool[_channels]; |
27 | for ( int i = 0; i < channels; ++i ) | 27 | for ( int i = 0; i < channels; ++i ) |
28 | { _values[i] = 0; | 28 | { _values[i] = 0; |
diff --git a/noncore/net/wellenreiter/gui/graphwindow.h b/noncore/net/wellenreiter/gui/graphwindow.h index 1e00ae7..fafcab1 100644 --- a/noncore/net/wellenreiter/gui/graphwindow.h +++ b/noncore/net/wellenreiter/gui/graphwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 GRAPHWINDOW_H | 16 | #ifndef GRAPHWINDOW_H |
17 | #define GRAPHWINDOW_H | 17 | #define GRAPHWINDOW_H |
18 | 18 | ||
19 | #include <qwidget.h> | 19 | #include <qwidget.h> |
20 | #include <qvbox.h> | 20 | #include <qvbox.h> |
21 | 21 | ||
22 | class MFrequencySpectrum : public QWidget | 22 | class MFrequencySpectrum : public QWidget |
23 | { | 23 | { |
24 | public: | 24 | public: |
25 | MFrequencySpectrum( int channels, QWidget* parent = 0, const char* name = "MFrequencySpectrum", WFlags f = 0 ); | 25 | MFrequencySpectrum( int channels, QWidget* parent = 0, const char* name = "MFrequencySpectrum", WFlags f = 0 ); |
26 | int value( int channel ) const { return _values[channel]; }; | 26 | int value( int channel ) const { return _values[channel]; }; |
27 | void setValue( int channel, int value ) | 27 | void setValue( int channel, int value ) |
28 | { | 28 | { |
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro index 7957d4c..cfb9873 100644 --- a/noncore/net/wellenreiter/gui/gui.pro +++ b/noncore/net/wellenreiter/gui/gui.pro | |||
@@ -1,47 +1,49 @@ | |||
1 | DESTDIR = $(OPIEDIR)/bin | 1 | DESTDIR = $(OPIEDIR)/bin |
2 | TEMPLATE = app | 2 | TEMPLATE = app |
3 | CONFIG = qt warn_on debug | 3 | CONFIG = qt warn_on debug |
4 | 4 | ||
5 | HEADERS = wellenreiterbase.h \ | 5 | HEADERS = wellenreiterbase.h \ |
6 | mainwindow.h \ | 6 | mainwindow.h \ |
7 | wellenreiter.h \ | 7 | wellenreiter.h \ |
8 | scanlist.h \ | 8 | scanlist.h \ |
9 | logwindow.h \ | 9 | logwindow.h \ |
10 | hexwindow.h \ | 10 | hexwindow.h \ |
11 | statwindow.h \ | 11 | statwindow.h \ |
12 | configwindow.h \ | 12 | configwindow.h \ |
13 | graphwindow.h \ | 13 | graphwindow.h \ |
14 | packetview.h \ | ||
14 | protolistview.h \ | 15 | protolistview.h \ |
15 | gps.h | 16 | gps.h |
16 | 17 | ||
17 | SOURCES = main.cpp \ | 18 | SOURCES = main.cpp \ |
18 | mainwindow.cpp \ | 19 | mainwindow.cpp \ |
19 | wellenreiterbase.cpp \ | 20 | wellenreiterbase.cpp \ |
20 | wellenreiter.cpp \ | 21 | wellenreiter.cpp \ |
21 | scanlist.cpp \ | 22 | scanlist.cpp \ |
22 | logwindow.cpp \ | 23 | logwindow.cpp \ |
23 | hexwindow.cpp \ | 24 | hexwindow.cpp \ |
24 | statwindow.cpp \ | 25 | statwindow.cpp \ |
25 | configwindow.cpp \ | 26 | configwindow.cpp \ |
26 | graphwindow.cpp \ | 27 | graphwindow.cpp \ |
28 | packetview.cpp \ | ||
27 | protolistview.cpp \ | 29 | protolistview.cpp \ |
28 | gps.cpp | 30 | gps.cpp |
29 | 31 | ||
30 | INCLUDEPATH += $(OPIEDIR)/include | 32 | INCLUDEPATH += $(OPIEDIR)/include |
31 | DEPENDPATH += $(OPIEDIR)/include | 33 | DEPENDPATH += $(OPIEDIR)/include |
32 | INTERFACES = configbase.ui | 34 | INTERFACES = configbase.ui |
33 | TARGET = wellenreiter | 35 | TARGET = wellenreiter |
34 | 36 | ||
35 | !contains( platform, x11 ) { | 37 | !contains( platform, x11 ) { |
36 | message( qws ) | 38 | message( qws ) |
37 | include ( $(OPIEDIR)/include.pro ) | 39 | include ( $(OPIEDIR)/include.pro ) |
38 | LIBS += -lqpe -lopiecore2 -lopieui2 -lopienet2 | 40 | LIBS += -lqpe -lopiecore2 -lopieui2 -lopienet2 |
39 | } | 41 | } |
40 | 42 | ||
41 | contains( platform, x11 ) { | 43 | contains( platform, x11 ) { |
42 | LIBS += -L$(OPIEDIR)/output/lib -Wl,-rpath,$(OPIEDIR)/output/lib -Wl,-rpath,/usr/local/lib -lwellenreiter | 44 | LIBS += -L$(OPIEDIR)/output/lib -Wl,-rpath,$(OPIEDIR)/output/lib -Wl,-rpath,/usr/local/lib -lwellenreiter |
43 | SOURCES += resource.cpp | 45 | SOURCES += resource.cpp |
44 | HEADERS += resource.h | 46 | HEADERS += resource.h |
45 | DESTDIR = $(OPIEDIR)/output/bin | 47 | DESTDIR = $(OPIEDIR)/output/bin |
46 | } | 48 | } |
47 | 49 | ||
diff --git a/noncore/net/wellenreiter/gui/hexwindow.cpp b/noncore/net/wellenreiter/gui/hexwindow.cpp index 2f011ca..cbf3217 100644 --- a/noncore/net/wellenreiter/gui/hexwindow.cpp +++ b/noncore/net/wellenreiter/gui/hexwindow.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "hexwindow.h" | 16 | #include "hexwindow.h" |
17 | #include <qmultilineedit.h> | 17 | #include <qmultilineedit.h> |
18 | 18 | ||
19 | MHexWindow::MHexWindow( QWidget * parent, const char * name, WFlags f ) | 19 | MHexWindow::MHexWindow( QWidget * parent, const char * name, WFlags f ) |
20 | :QVBox( parent, name, f ) | 20 | :QVBox( parent, name, f ) |
21 | { | 21 | { |
22 | ledit = new QMultiLineEdit( this ); | 22 | ledit = new QMultiLineEdit( this ); |
23 | ledit->setFont( QFont( "fixed", 10 ) ); | 23 | ledit->setFont( QFont( "fixed", 10 ) ); |
24 | ledit->setReadOnly( true ); | 24 | ledit->setReadOnly( true ); |
25 | }; | 25 | }; |
26 | 26 | ||
27 | void MHexWindow::log( const QString& text ) | 27 | void MHexWindow::log( const QString& text ) |
28 | { | 28 | { |
diff --git a/noncore/net/wellenreiter/gui/hexwindow.h b/noncore/net/wellenreiter/gui/hexwindow.h index 3d4ec0f..71c6f25 100644 --- a/noncore/net/wellenreiter/gui/hexwindow.h +++ b/noncore/net/wellenreiter/gui/hexwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 HEXWINDOW_H | 16 | #ifndef HEXWINDOW_H |
17 | #define HEXWINDOW_H | 17 | #define HEXWINDOW_H |
18 | 18 | ||
19 | #include <qvbox.h> | 19 | #include <qvbox.h> |
20 | 20 | ||
21 | class QString; | 21 | class QString; |
22 | class QMultiLineEdit; | 22 | class QMultiLineEdit; |
23 | 23 | ||
24 | class MHexWindow: public QVBox | 24 | class MHexWindow: public QVBox |
25 | { | 25 | { |
26 | 26 | ||
27 | public: | 27 | public: |
28 | MHexWindow( QWidget * parent = 0, const char * name = "MHexWindow", WFlags f = 0 ); | 28 | MHexWindow( QWidget * parent = 0, const char * name = "MHexWindow", WFlags f = 0 ); |
diff --git a/noncore/net/wellenreiter/gui/logwindow.cpp b/noncore/net/wellenreiter/gui/logwindow.cpp index 6078fa2..1c72cf4 100644 --- a/noncore/net/wellenreiter/gui/logwindow.cpp +++ b/noncore/net/wellenreiter/gui/logwindow.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "logwindow.h" | 16 | #include "logwindow.h" |
17 | #include <qmultilineedit.h> | 17 | #include <qmultilineedit.h> |
18 | #include <qdatetime.h> | 18 | #include <qdatetime.h> |
19 | 19 | ||
20 | MLogWindow* MLogWindow::_instance; | 20 | MLogWindow* MLogWindow::_instance; |
21 | 21 | ||
22 | MLogWindow::MLogWindow( QWidget * parent, const char * name, WFlags f ) | 22 | MLogWindow::MLogWindow( QWidget * parent, const char * name, WFlags f ) |
23 | :QVBox( parent, name, f ) | 23 | :QVBox( parent, name, f ) |
24 | { | 24 | { |
25 | ledit = new QMultiLineEdit( this ); | 25 | ledit = new QMultiLineEdit( this ); |
26 | ledit->setReadOnly( true ); | 26 | ledit->setReadOnly( true ); |
27 | 27 | ||
28 | MLogWindow::_instance = this; | 28 | MLogWindow::_instance = this; |
diff --git a/noncore/net/wellenreiter/gui/logwindow.h b/noncore/net/wellenreiter/gui/logwindow.h index da8c274..7877003 100644 --- a/noncore/net/wellenreiter/gui/logwindow.h +++ b/noncore/net/wellenreiter/gui/logwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 LOGWINDOW_H | 16 | #ifndef LOGWINDOW_H |
17 | #define LOGWINDOW_H | 17 | #define LOGWINDOW_H |
18 | 18 | ||
19 | #include <qvbox.h> | 19 | #include <qvbox.h> |
20 | 20 | ||
21 | class QString; | 21 | class QString; |
22 | class QMultiLineEdit; | 22 | class QMultiLineEdit; |
23 | 23 | ||
24 | class MLogWindow: public QVBox | 24 | class MLogWindow: public QVBox |
25 | { | 25 | { |
26 | 26 | ||
27 | public: | 27 | public: |
28 | MLogWindow( QWidget * parent = 0, const char * name = "MLogWindow", WFlags f = 0 ); | 28 | MLogWindow( QWidget * parent = 0, const char * name = "MLogWindow", WFlags f = 0 ); |
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp index 8ef62e9..be7a528 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "mainwindow.h" | 16 | #include "mainwindow.h" |
17 | #ifdef QWS | 17 | #ifdef QWS |
18 | #include <opie2/oapplication.h> | 18 | #include <opie2/oapplication.h> |
19 | #include <opie2/oprocess.h> | 19 | #include <opie2/oprocess.h> |
20 | #else | 20 | #else |
21 | #include <qapplication.h> | 21 | #include <qapplication.h> |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #include <qmessagebox.h> | 24 | #include <qmessagebox.h> |
25 | #include <qstringlist.h> | 25 | #include <qstringlist.h> |
26 | 26 | ||
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | #include <signal.h> | 28 | #include <signal.h> |
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index 95a8294..6f57a7f 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp | |||
@@ -1,167 +1,175 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "gps.h" | 17 | #include "gps.h" |
18 | #include "logwindow.h" | 18 | #include "logwindow.h" |
19 | #include "hexwindow.h" | 19 | #include "hexwindow.h" |
20 | #include "mainwindow.h" | 20 | #include "mainwindow.h" |
21 | #include "wellenreiter.h" | 21 | #include "wellenreiter.h" |
22 | #include "scanlist.h" | 22 | #include "scanlist.h" |
23 | 23 | ||
24 | #include <qcombobox.h> | 24 | #include <qcombobox.h> |
25 | #include <qdatastream.h> | 25 | #include <qdatastream.h> |
26 | #include <qfile.h> | 26 | #include <qfile.h> |
27 | #include <qfileinfo.h> | 27 | #include <qfileinfo.h> |
28 | #include <qlabel.h> | 28 | #include <qlabel.h> |
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qlineedit.h> | 30 | #include <qlineedit.h> |
31 | #include <qiconset.h> | 31 | #include <qiconset.h> |
32 | #include <qmenubar.h> | 32 | #include <qmenubar.h> |
33 | #include <qmessagebox.h> | 33 | #include <qmessagebox.h> |
34 | #include <qpopupmenu.h> | 34 | #include <qpopupmenu.h> |
35 | #include <qpushbutton.h> | 35 | #include <qpushbutton.h> |
36 | #include <qstatusbar.h> | 36 | #include <qstatusbar.h> |
37 | #include <qspinbox.h> | 37 | #include <qspinbox.h> |
38 | #include <qtextstream.h> | 38 | #include <qtextstream.h> |
39 | #include <qtoolbutton.h> | 39 | #include <qtoolbutton.h> |
40 | #include <qwhatsthis.h> | ||
40 | 41 | ||
41 | #ifdef QWS | 42 | #ifdef QWS |
42 | #include <qpe/resource.h> | 43 | #include <qpe/resource.h> |
43 | #include <opie2/ofiledialog.h> | 44 | #include <opie2/ofiledialog.h> |
44 | using namespace Opie; | 45 | using namespace Opie; |
45 | #else | 46 | #else |
46 | #include "resource.h" | 47 | #include "resource.h" |
47 | #include <qapplication.h> | 48 | #include <qapplication.h> |
48 | #include <qfiledialog.h> | 49 | #include <qfiledialog.h> |
49 | #endif | 50 | #endif |
50 | 51 | ||
51 | #include <unistd.h> | 52 | #include <unistd.h> |
52 | 53 | ||
53 | WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * name, WFlags f ) | 54 | WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * name, WFlags f ) |
54 | :QMainWindow( parent, name, f ) | 55 | :QMainWindow( parent, name, f ) |
55 | { | 56 | { |
56 | cw = new WellenreiterConfigWindow( this ); | 57 | cw = new WellenreiterConfigWindow( this ); |
57 | mw = new Wellenreiter( this ); | 58 | mw = new Wellenreiter( this ); |
58 | mw->setConfigWindow( cw ); | 59 | mw->setConfigWindow( cw ); |
59 | setCentralWidget( mw ); | 60 | setCentralWidget( mw ); |
60 | 61 | ||
61 | // setup application icon | 62 | // setup application icon |
62 | 63 | ||
63 | #ifndef QWS | ||
64 | setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) ); | 64 | setIcon( Resource::loadPixmap( "wellenreiter/appicon-trans" ) ); |
65 | #ifndef QWS | ||
65 | setIconText( "Wellenreiter/X11" ); | 66 | setIconText( "Wellenreiter/X11" ); |
66 | #endif | 67 | #endif |
67 | 68 | ||
68 | // setup tool buttons | 69 | // setup tool buttons |
69 | 70 | ||
70 | startButton = new QToolButton( 0 ); | 71 | startButton = new QToolButton( 0 ); |
72 | QWhatsThis::add( startButton, tr( "Click here to start scanning." ) ); | ||
71 | #ifdef QWS | 73 | #ifdef QWS |
72 | startButton->setAutoRaise( true ); | 74 | startButton->setAutoRaise( true ); |
73 | #endif | 75 | #endif |
74 | startButton->setIconSet( Resource::loadIconSet( "wellenreiter/SearchIcon" ) ); | 76 | startButton->setIconSet( Resource::loadIconSet( "wellenreiter/SearchIcon" ) ); |
75 | startButton->setEnabled( false ); | 77 | startButton->setEnabled( false ); |
76 | connect( startButton, SIGNAL( clicked() ), mw, SLOT( startClicked() ) ); | 78 | connect( startButton, SIGNAL( clicked() ), mw, SLOT( startClicked() ) ); |
77 | 79 | ||
78 | stopButton = new QToolButton( 0 ); | 80 | stopButton = new QToolButton( 0 ); |
81 | QWhatsThis::add( stopButton, tr( "Click here to stop scanning." ) ); | ||
79 | #ifdef QWS | 82 | #ifdef QWS |
80 | stopButton->setAutoRaise( true ); | 83 | stopButton->setAutoRaise( true ); |
81 | #endif | 84 | #endif |
82 | stopButton->setIconSet( Resource::loadIconSet( "wellenreiter/CancelIcon" ) ); | 85 | stopButton->setIconSet( Resource::loadIconSet( "wellenreiter/CancelIcon" ) ); |
83 | stopButton->setEnabled( false ); | 86 | stopButton->setEnabled( false ); |
84 | connect( stopButton, SIGNAL( clicked() ), mw, SLOT( stopClicked() ) ); | 87 | connect( stopButton, SIGNAL( clicked() ), mw, SLOT( stopClicked() ) ); |
85 | 88 | ||
86 | QToolButton* d = new QToolButton( 0 ); | 89 | QToolButton* d = new QToolButton( 0 ); |
90 | QWhatsThis::add( d, tr( "Click here to open the configure dialog." ) ), | ||
87 | #ifdef QWS | 91 | #ifdef QWS |
88 | d->setAutoRaise( true ); | 92 | d->setAutoRaise( true ); |
89 | #endif | 93 | #endif |
90 | d->setIconSet( Resource::loadIconSet( "wellenreiter/SettingsIcon" ) ); | 94 | d->setIconSet( Resource::loadIconSet( "wellenreiter/SettingsIcon" ) ); |
91 | connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) ); | 95 | connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) ); |
92 | 96 | ||
93 | uploadButton = new QToolButton( 0 ); | 97 | uploadButton = new QToolButton( 0 ); |
98 | QWhatsThis::add( uploadButton, tr( "Click here to upload a capture session." ) ); | ||
94 | #ifdef QWS | 99 | #ifdef QWS |
95 | uploadButton->setAutoRaise( true ); | 100 | uploadButton->setAutoRaise( true ); |
96 | #endif | 101 | #endif |
97 | uploadButton->setIconSet( Resource::loadIconSet( "up" ) ); | 102 | uploadButton->setIconSet( Resource::loadIconSet( "up" ) ); |
98 | uploadButton->setEnabled( false ); | 103 | uploadButton->setEnabled( false ); |
99 | //uploadButton->setEnabled( true ); // DEBUGGING | 104 | //uploadButton->setEnabled( true ); // DEBUGGING |
100 | connect( uploadButton, SIGNAL( clicked() ), this, SLOT( uploadSession() ) ); | 105 | connect( uploadButton, SIGNAL( clicked() ), this, SLOT( uploadSession() ) ); |
101 | 106 | ||
102 | // setup menu bar | 107 | // setup menu bar |
103 | 108 | ||
104 | int id; | 109 | int id; |
105 | 110 | ||
106 | QMenuBar* mb = menuBar(); | 111 | QMenuBar* mb = menuBar(); |
107 | 112 | ||
108 | QPopupMenu* fileSave = new QPopupMenu( mb ); | 113 | QPopupMenu* fileSave = new QPopupMenu( mb ); |
109 | fileSave->insertItem( tr( "&Session..." ), this, SLOT( fileSaveSession() ) ); | 114 | fileSave->insertItem( tr( "&Session..." ), this, SLOT( fileSaveSession() ) ); |
110 | fileSave->insertItem( tr( "&Text Log..." ), this, SLOT( fileSaveLog() ) ); | 115 | fileSave->insertItem( tr( "&Text Log..." ), this, SLOT( fileSaveLog() ) ); |
111 | fileSave->insertItem( tr( "&Hex Log..." ), this, SLOT( fileSaveHex() ) ); | 116 | fileSave->insertItem( tr( "&Hex Log..." ), this, SLOT( fileSaveHex() ) ); |
112 | 117 | ||
113 | QPopupMenu* fileLoad = new QPopupMenu( mb ); | 118 | QPopupMenu* fileLoad = new QPopupMenu( mb ); |
114 | fileLoad->insertItem( tr( "&Session..." ), this, SLOT( fileLoadSession() ) ); | 119 | fileLoad->insertItem( tr( "&Session..." ), this, SLOT( fileLoadSession() ) ); |
115 | //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); | 120 | //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); |
116 | 121 | ||
117 | QPopupMenu* file = new QPopupMenu( mb ); | 122 | QPopupMenu* file = new QPopupMenu( mb ); |
118 | file->insertItem( tr( "&New" ), this, SLOT( fileNew() ) ); | 123 | file->insertItem( tr( "&New" ), this, SLOT( fileNew() ) ); |
119 | id = file->insertItem( tr( "&Load" ), fileLoad ); | 124 | id = file->insertItem( tr( "&Load" ), fileLoad ); |
120 | file->insertItem( tr( "&Save" ), fileSave ); | 125 | file->insertItem( tr( "&Save" ), fileSave ); |
121 | file->insertSeparator(); | 126 | file->insertSeparator(); |
122 | uploadID = file->insertItem( tr( "&Upload Session" ), this, SLOT( uploadSession() ) ); | 127 | uploadID = file->insertItem( tr( "&Upload Session" ), this, SLOT( uploadSession() ) ); |
123 | file->insertSeparator(); | 128 | file->insertSeparator(); |
124 | file->insertItem( tr( "&Exit" ), qApp, SLOT( quit() ) ); | 129 | file->insertItem( tr( "&Exit" ), qApp, SLOT( quit() ) ); |
125 | 130 | ||
126 | QPopupMenu* view = new QPopupMenu( mb ); | ||
127 | view->insertItem( tr( "&Configure..." ) ); | ||
128 | |||
129 | QPopupMenu* sniffer = new QPopupMenu( mb ); | 131 | QPopupMenu* sniffer = new QPopupMenu( mb ); |
130 | sniffer->insertItem( tr( "&Configure..." ), this, SLOT( showConfigure() ) ); | 132 | sniffer->insertItem( tr( "&Configure..." ), this, SLOT( showConfigure() ) ); |
131 | sniffer->insertSeparator(); | 133 | sniffer->insertSeparator(); |
132 | startID = sniffer->insertItem( tr( "&Start" ), mw, SLOT( startClicked() ) ); | 134 | startID = sniffer->insertItem( tr( "&Start" ), mw, SLOT( startClicked() ) ); |
133 | sniffer->setItemEnabled( startID, false ); | 135 | sniffer->setItemEnabled( startID, false ); |
134 | stopID = sniffer->insertItem( tr( "Sto&p" ), mw, SLOT( stopClicked() ) ); | 136 | stopID = sniffer->insertItem( tr( "Sto&p" ), mw, SLOT( stopClicked() ) ); |
135 | sniffer->setItemEnabled( stopID, false ); | 137 | sniffer->setItemEnabled( stopID, false ); |
136 | 138 | ||
139 | QPopupMenu* view = new QPopupMenu( mb ); | ||
140 | view->insertItem( tr( "&Expand All" ), this, SLOT( viewExpandAll() ) ); | ||
141 | view->insertItem( tr( "&Collapse All" ), this, SLOT( viewCollapseAll() ) ); | ||
142 | |||
137 | QPopupMenu* demo = new QPopupMenu( mb ); | 143 | QPopupMenu* demo = new QPopupMenu( mb ); |
138 | demo->insertItem( tr( "&Add something" ), this, SLOT( demoAddStations() ) ); | 144 | demo->insertItem( tr( "&Add something" ), this, SLOT( demoAddStations() ) ); |
139 | //demo->insertItem( tr( "&Read from GPSd" ), this, SLOT( demoReadFromGps() ) ); | 145 | //demo->insertItem( tr( "&Read from GPSd" ), this, SLOT( demoReadFromGps() ) ); |
140 | 146 | ||
141 | id = mb->insertItem( tr( "&File" ), file ); | 147 | id = mb->insertItem( tr( "&File" ), file ); |
142 | //id = mb->insertItem( tr( "&View" ), view ); | 148 | |
149 | id = mb->insertItem( tr( "&View" ), view ); | ||
143 | //mb->setItemEnabled( id, false ); | 150 | //mb->setItemEnabled( id, false ); |
151 | |||
144 | id = mb->insertItem( tr( "&Sniffer" ), sniffer ); | 152 | id = mb->insertItem( tr( "&Sniffer" ), sniffer ); |
145 | 153 | ||
146 | id = mb->insertItem( tr( "&Demo" ), demo ); | 154 | id = mb->insertItem( tr( "&Demo" ), demo ); |
147 | mb->setItemEnabled( id, true ); | 155 | mb->setItemEnabled( id, true ); |
148 | mb->setItemEnabled( uploadID, false ); | 156 | mb->setItemEnabled( uploadID, false ); |
149 | 157 | ||
150 | #ifdef QWS | 158 | #ifdef QWS |
151 | mb->insertItem( startButton ); | 159 | mb->insertItem( startButton ); |
152 | mb->insertItem( stopButton ); | 160 | mb->insertItem( stopButton ); |
153 | mb->insertItem( uploadButton ); | 161 | mb->insertItem( uploadButton ); |
154 | mb->insertItem( d ); | 162 | mb->insertItem( d ); |
155 | #else // Qt3 changed the insertion order. It's now totally random :( | 163 | #else // Qt3 changed the insertion order. It's now totally random :( |
156 | mb->insertItem( d ); | 164 | mb->insertItem( d ); |
157 | mb->insertItem( uploadButton ); | 165 | mb->insertItem( uploadButton ); |
158 | mb->insertItem( stopButton ); | 166 | mb->insertItem( stopButton ); |
159 | mb->insertItem( startButton ); | 167 | mb->insertItem( startButton ); |
160 | #endif | 168 | #endif |
161 | 169 | ||
162 | updateToolButtonState(); | 170 | updateToolButtonState(); |
163 | 171 | ||
164 | // setup status bar (for now only on X11) | 172 | // setup status bar (for now only on X11) |
165 | 173 | ||
166 | #ifndef QWS | 174 | #ifndef QWS |
167 | statusBar()->message( tr( "Ready." ) ); | 175 | statusBar()->message( tr( "Ready." ) ); |
@@ -532,24 +540,34 @@ void WellenreiterMainWindow::uploadSession() | |||
532 | ::write ( sock, &ch, 1 ); | 540 | ::write ( sock, &ch, 1 ); |
533 | } | 541 | } |
534 | 542 | ||
535 | // write preambel | 543 | // write preambel |
536 | 544 | ||
537 | ascii = preambel.latin1(); | 545 | ascii = preambel.latin1(); |
538 | ascii_len = ::strlen( ascii ); | 546 | ascii_len = ::strlen( ascii ); |
539 | ::write ( sock, ascii, ascii_len ); | 547 | ::write ( sock, ascii, ascii_len ); |
540 | 548 | ||
541 | // done! | 549 | // done! |
542 | 550 | ||
543 | ok = true; | 551 | ok = true; |
544 | } | 552 | } |
545 | } | 553 | } |
546 | ::close ( sock ); | 554 | ::close ( sock ); |
547 | } | 555 | } |
548 | if ( ok ) | 556 | if ( ok ) |
549 | QMessageBox::information( 0, tr( "Success" ), | 557 | QMessageBox::information( 0, tr( "Success" ), |
550 | QString ( "<p>%1</p>" ).arg( tr( "Capture Dump was uploaded to %1" ) ).arg( CAP_hostname ) ); | 558 | QString ( "<p>%1</p>" ).arg( tr( "Capture Dump was uploaded to %1" ) ).arg( CAP_hostname ) ); |
551 | else | 559 | else |
552 | QMessageBox::warning( 0, tr( "Error" ), | 560 | QMessageBox::warning( 0, tr( "Error" ), |
553 | QString ( "<p>%1</p>" ).arg ( tr( "Connection to %1 failed" ) ).arg( CAP_hostname ) ); | 561 | QString ( "<p>%1</p>" ).arg ( tr( "Connection to %1 failed" ) ).arg( CAP_hostname ) ); |
554 | } | 562 | } |
555 | 563 | ||
564 | |||
565 | void WellenreiterMainWindow::viewExpandAll() | ||
566 | { | ||
567 | mw->netView()->expand(); | ||
568 | } | ||
569 | |||
570 | void WellenreiterMainWindow::viewCollapseAll() | ||
571 | { | ||
572 | mw->netView()->collapse(); | ||
573 | } | ||
diff --git a/noncore/net/wellenreiter/gui/mainwindow.h b/noncore/net/wellenreiter/gui/mainwindow.h index a5cb7a5..9593241 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.h +++ b/noncore/net/wellenreiter/gui/mainwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 MAINWINDOW_H | 16 | #ifndef MAINWINDOW_H |
17 | #define MAINWINDOW_H | 17 | #define MAINWINDOW_H |
18 | 18 | ||
19 | #include <qmainwindow.h> | 19 | #include <qmainwindow.h> |
20 | 20 | ||
21 | class Wellenreiter; | 21 | class Wellenreiter; |
22 | class WellenreiterConfigWindow; | 22 | class WellenreiterConfigWindow; |
23 | class QIconSet; | 23 | class QIconSet; |
24 | class QToolButton; | 24 | class QToolButton; |
25 | 25 | ||
26 | class WellenreiterMainWindow: public QMainWindow | 26 | class WellenreiterMainWindow: public QMainWindow |
27 | { | 27 | { |
28 | Q_OBJECT | 28 | Q_OBJECT |
@@ -37,27 +37,30 @@ class WellenreiterMainWindow: public QMainWindow | |||
37 | WellenreiterConfigWindow* cw; | 37 | WellenreiterConfigWindow* cw; |
38 | 38 | ||
39 | QToolButton* startButton; | 39 | QToolButton* startButton; |
40 | QToolButton* stopButton; | 40 | QToolButton* stopButton; |
41 | QToolButton* uploadButton; | 41 | QToolButton* uploadButton; |
42 | int startID; | 42 | int startID; |
43 | int stopID; | 43 | int stopID; |
44 | int uploadID; | 44 | int uploadID; |
45 | 45 | ||
46 | protected: | 46 | protected: |
47 | virtual void closeEvent( QCloseEvent* ); | 47 | virtual void closeEvent( QCloseEvent* ); |
48 | void updateToolButtonState(); | 48 | void updateToolButtonState(); |
49 | 49 | ||
50 | public slots: | 50 | public slots: |
51 | void showConfigure(); | 51 | void showConfigure(); |
52 | void demoAddStations(); | 52 | void demoAddStations(); |
53 | void demoReadFromGps(); | 53 | void demoReadFromGps(); |
54 | void fileSaveLog(); | 54 | void fileSaveLog(); |
55 | void fileSaveHex(); | 55 | void fileSaveHex(); |
56 | void fileSaveSession(); | 56 | void fileSaveSession(); |
57 | void fileLoadSession(); | 57 | void fileLoadSession(); |
58 | void fileNew(); | 58 | void fileNew(); |
59 | void uploadSession(); | 59 | void uploadSession(); |
60 | void changedSniffingState(); | 60 | void changedSniffingState(); |
61 | |||
62 | void viewExpandAll(); | ||
63 | void viewCollapseAll(); | ||
61 | }; | 64 | }; |
62 | 65 | ||
63 | #endif | 66 | #endif |
diff --git a/noncore/net/wellenreiter/gui/protolistview.cpp b/noncore/net/wellenreiter/gui/protolistview.cpp index ed22bdd..635e174 100644 --- a/noncore/net/wellenreiter/gui/protolistview.cpp +++ b/noncore/net/wellenreiter/gui/protolistview.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "protolistview.h" | 17 | #include "protolistview.h" |
18 | 18 | ||
19 | #include <qcheckbox.h> | 19 | #include <qcheckbox.h> |
20 | #include <qcombobox.h> | 20 | #include <qcombobox.h> |
21 | #include <qvbox.h> | 21 | #include <qvbox.h> |
22 | #include <qlabel.h> | 22 | #include <qlabel.h> |
23 | 23 | ||
24 | ProtocolListView::ProtocolListView( QWidget* parent, const char* name, WFlags f ) | 24 | ProtocolListView::ProtocolListView( QWidget* parent, const char* name, WFlags f ) |
25 | :QScrollView( parent, name, f ) | 25 | :QScrollView( parent, name, f ) |
26 | { | 26 | { |
27 | parse = ( QString( "parsePackets" ) == QString( name ) ); | 27 | parse = ( QString( "parsePackets" ) == QString( name ) ); |
28 | 28 | ||
diff --git a/noncore/net/wellenreiter/gui/protolistview.h b/noncore/net/wellenreiter/gui/protolistview.h index 8b460cb..11f4375 100644 --- a/noncore/net/wellenreiter/gui/protolistview.h +++ b/noncore/net/wellenreiter/gui/protolistview.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 PROTOLISTVIEW_H | 16 | #ifndef PROTOLISTVIEW_H |
17 | #define PROTOLISTVIEW_H | 17 | #define PROTOLISTVIEW_H |
18 | 18 | ||
19 | #include <qscrollview.h> | 19 | #include <qscrollview.h> |
20 | #include <qdict.h> | 20 | #include <qdict.h> |
21 | class QCheckBox; | 21 | class QCheckBox; |
22 | class QComboBox; | 22 | class QComboBox; |
23 | 23 | ||
24 | class QVBox; | 24 | class QVBox; |
25 | 25 | ||
26 | class ProtocolListView : public QScrollView | 26 | class ProtocolListView : public QScrollView |
27 | { | 27 | { |
28 | public: | 28 | public: |
diff --git a/noncore/net/wellenreiter/gui/resource.cpp b/noncore/net/wellenreiter/gui/resource.cpp index 5e5ddc6..d98ef0b 100644 --- a/noncore/net/wellenreiter/gui/resource.cpp +++ b/noncore/net/wellenreiter/gui/resource.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "resource.h" | 16 | #include "resource.h" |
17 | 17 | ||
18 | #define PIXMAPPATH "/usr/local/share" | 18 | #define PIXMAPPATH "/usr/local/share" |
19 | 19 | ||
20 | #include <qiconset.h> | 20 | #include <qiconset.h> |
21 | 21 | ||
22 | namespace Resource | 22 | namespace Resource |
23 | { | 23 | { |
24 | 24 | ||
25 | QPixmap loadPixmap( const QString& pix ) | 25 | QPixmap loadPixmap( const QString& pix ) |
26 | { | 26 | { |
27 | QString filename; | 27 | QString filename; |
28 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | 28 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); |
diff --git a/noncore/net/wellenreiter/gui/resource.h b/noncore/net/wellenreiter/gui/resource.h index 8788c6e..85490b3 100644 --- a/noncore/net/wellenreiter/gui/resource.h +++ b/noncore/net/wellenreiter/gui/resource.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 RESOURCE_H | 16 | #ifndef RESOURCE_H |
17 | #define RESOURCE_H | 17 | #define RESOURCE_H |
18 | 18 | ||
19 | #include <qstring.h> | 19 | #include <qstring.h> |
20 | 20 | ||
21 | class QPixmap; | 21 | class QPixmap; |
22 | class QIconSet; | 22 | class QIconSet; |
23 | 23 | ||
24 | namespace Resource | 24 | namespace Resource |
25 | { | 25 | { |
26 | QPixmap loadPixmap( const QString& ); | 26 | QPixmap loadPixmap( const QString& ); |
27 | QIconSet loadIconSet( const QString& ); | 27 | QIconSet loadIconSet( const QString& ); |
28 | } | 28 | } |
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index c75f9b1..6005818 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp | |||
@@ -1,76 +1,75 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "scanlist.h" | 16 | #include "scanlist.h" |
17 | #include "configwindow.h" | 17 | #include "configwindow.h" |
18 | #include "logwindow.h" | 18 | #include "logwindow.h" |
19 | 19 | ||
20 | #include <assert.h> | 20 | #include <assert.h> |
21 | #include <qcursor.h> | 21 | #include <qcursor.h> |
22 | #include <qdatetime.h> | 22 | #include <qdatetime.h> |
23 | #include <qpopupmenu.h> | 23 | #include <qpopupmenu.h> |
24 | #include <qcheckbox.h> | 24 | #include <qcheckbox.h> |
25 | 25 | ||
26 | #ifdef QWS | 26 | #ifdef QWS |
27 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #ifdef QWS | 30 | #ifdef QWS |
31 | #include <qpe/resource.h> | 31 | #include <qpe/resource.h> |
32 | #else | 32 | #else |
33 | #include "resource.h" | 33 | #include "resource.h" |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | const int col_type = 0; | 36 | const int col_type = 0; |
37 | const int col_essid = 0; | 37 | const int col_essid = 0; |
38 | const int col_sig = 1; | 38 | const int col_sig = 1; |
39 | const int col_ap = 2; | 39 | const int col_ap = 2; |
40 | const int col_channel = 3; | 40 | const int col_channel = 3; |
41 | const int col_wep = 4; | 41 | const int col_wep = 4; |
42 | const int col_traffic = 5; | 42 | const int col_traffic = 5; |
43 | const int col_ip = 6; | 43 | const int col_ip = 6; |
44 | const int col_manuf = 7; | 44 | const int col_manuf = 7; |
45 | const int col_firstseen = 8; | 45 | const int col_firstseen = 8; |
46 | const int col_lastseen = 9; | 46 | const int col_lastseen = 9; |
47 | const int col_location = 10; | 47 | const int col_location = 10; |
48 | 48 | ||
49 | MScanListView::MScanListView( QWidget* parent, const char* name ) | 49 | MScanListView::MScanListView( QWidget* parent, const char* name ) |
50 | :OListView( parent, name ) | 50 | :OListView( parent, name ) |
51 | { | 51 | { |
52 | |||
53 | setFrameShape( QListView::StyledPanel ); | 52 | setFrameShape( QListView::StyledPanel ); |
54 | setFrameShadow( QListView::Sunken ); | 53 | setFrameShadow( QListView::Sunken ); |
55 | 54 | ||
56 | addColumn( tr( "Net/Station" ) ); | 55 | addColumn( tr( "Net/Station" ) ); |
57 | setColumnAlignment( col_essid, AlignLeft || AlignVCenter ); | 56 | setColumnAlignment( col_essid, AlignLeft || AlignVCenter ); |
58 | addColumn( tr( "#" ) ); | 57 | addColumn( tr( "#" ) ); |
59 | setColumnAlignment( col_sig, AlignCenter ); | 58 | setColumnAlignment( col_sig, AlignCenter ); |
60 | addColumn( tr( "MAC" ) ); | 59 | addColumn( tr( "MAC" ) ); |
61 | setColumnAlignment( col_ap, AlignCenter ); | 60 | setColumnAlignment( col_ap, AlignCenter ); |
62 | addColumn( tr( "Chn" ) ); | 61 | addColumn( tr( "Chn" ) ); |
63 | setColumnAlignment( col_channel, AlignCenter ); | 62 | setColumnAlignment( col_channel, AlignCenter ); |
64 | addColumn( tr( "W" ) ); | 63 | addColumn( tr( "W" ) ); |
65 | setColumnAlignment( col_wep, AlignCenter ); | 64 | setColumnAlignment( col_wep, AlignCenter ); |
66 | addColumn( tr( "T" ) ); | 65 | addColumn( tr( "T" ) ); |
67 | setColumnAlignment( col_traffic, AlignCenter ); | 66 | setColumnAlignment( col_traffic, AlignCenter ); |
68 | addColumn( tr( "IP" ) ); | 67 | addColumn( tr( "IP" ) ); |
69 | setColumnAlignment( col_ip, AlignCenter ); | 68 | setColumnAlignment( col_ip, AlignCenter ); |
70 | addColumn( tr( "Manufacturer" ) ); | 69 | addColumn( tr( "Manufacturer" ) ); |
71 | setColumnAlignment( col_manuf, AlignCenter ); | 70 | setColumnAlignment( col_manuf, AlignCenter ); |
72 | addColumn( tr( "First Seen" ) ); | 71 | addColumn( tr( "First Seen" ) ); |
73 | setColumnAlignment( col_firstseen, AlignCenter ); | 72 | setColumnAlignment( col_firstseen, AlignCenter ); |
74 | addColumn( tr( "Last Seen" ) ); | 73 | addColumn( tr( "Last Seen" ) ); |
75 | setColumnAlignment( col_lastseen, AlignCenter ); | 74 | setColumnAlignment( col_lastseen, AlignCenter ); |
76 | addColumn( tr( "Location" ) ); | 75 | addColumn( tr( "Location" ) ); |
diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h index cbacdee..ab870c2 100644 --- a/noncore/net/wellenreiter/gui/scanlist.h +++ b/noncore/net/wellenreiter/gui/scanlist.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 SCANLIST_H | 16 | #ifndef SCANLIST_H |
17 | #define SCANLIST_H | 17 | #define SCANLIST_H |
18 | 18 | ||
19 | #include "gps.h" | 19 | #include "gps.h" |
20 | 20 | ||
21 | /* OPIE */ | 21 | /* OPIE */ |
22 | #include <opie2/olistview.h> | 22 | #include <opie2/olistview.h> |
23 | #include <opie2/onetutils.h> | 23 | #include <opie2/onetutils.h> |
24 | 24 | ||
25 | /* QT */ | 25 | /* QT */ |
26 | #include <qtextstream.h> | 26 | #include <qtextstream.h> |
27 | 27 | ||
28 | class QString; | 28 | class QString; |
diff --git a/noncore/net/wellenreiter/gui/statwindow.cpp b/noncore/net/wellenreiter/gui/statwindow.cpp index a9ae661..48e4847 100644 --- a/noncore/net/wellenreiter/gui/statwindow.cpp +++ b/noncore/net/wellenreiter/gui/statwindow.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "statwindow.h" | 16 | #include "statwindow.h" |
17 | #include <opie2/olistview.h> | 17 | #include <opie2/olistview.h> |
18 | 18 | ||
19 | MStatWindow::MStatWindow( QWidget * parent, const char * name, WFlags f ) | 19 | MStatWindow::MStatWindow( QWidget * parent, const char * name, WFlags f ) |
20 | :QVBox( parent, name, f ) | 20 | :QVBox( parent, name, f ) |
21 | { | 21 | { |
22 | table = new OListView( this ); | 22 | table = new OListView( this ); |
23 | table->addColumn( tr( "Protocol" ) ); | 23 | table->addColumn( tr( "Protocol" ) ); |
24 | table->addColumn( tr( "Count" ) ); | 24 | table->addColumn( tr( "Count" ) ); |
25 | table->setItemMargin( 2 ); | 25 | table->setItemMargin( 2 ); |
26 | }; | 26 | }; |
27 | 27 | ||
28 | 28 | ||
diff --git a/noncore/net/wellenreiter/gui/statwindow.h b/noncore/net/wellenreiter/gui/statwindow.h index 0ab4b50..b9057e7 100644 --- a/noncore/net/wellenreiter/gui/statwindow.h +++ b/noncore/net/wellenreiter/gui/statwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 STATWINDOW_H | 16 | #ifndef STATWINDOW_H |
17 | #define STATWINDOW_H | 17 | #define STATWINDOW_H |
18 | 18 | ||
19 | #include <qvbox.h> | 19 | #include <qvbox.h> |
20 | 20 | ||
21 | class QString; | 21 | class QString; |
22 | class OListView; | 22 | class OListView; |
23 | 23 | ||
24 | class MStatWindow: public QVBox | 24 | class MStatWindow: public QVBox |
25 | { | 25 | { |
26 | Q_OBJECT | 26 | Q_OBJECT |
27 | 27 | ||
28 | public: | 28 | public: |
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index db68e5b..67e3940 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp | |||
@@ -491,49 +491,57 @@ void Wellenreiter::stopClicked() | |||
491 | statwindow->updateCounter( it.key(), it.data() ); | 491 | statwindow->updateCounter( it.key(), it.data() ); |
492 | } | 492 | } |
493 | 493 | ||
494 | 494 | ||
495 | void Wellenreiter::startClicked() | 495 | void Wellenreiter::startClicked() |
496 | { | 496 | { |
497 | // get configuration from config window | 497 | // get configuration from config window |
498 | 498 | ||
499 | const QString& interface = configwindow->interfaceName->currentText(); | 499 | const QString& interface = configwindow->interfaceName->currentText(); |
500 | const int cardtype = configwindow->driverType(); | 500 | const int cardtype = configwindow->driverType(); |
501 | const int interval = configwindow->hoppingInterval(); | 501 | const int interval = configwindow->hoppingInterval(); |
502 | 502 | ||
503 | if ( ( interface == "" ) || ( cardtype == 0 ) ) | 503 | if ( ( interface == "" ) || ( cardtype == 0 ) ) |
504 | { | 504 | { |
505 | QMessageBox::information( this, "Wellenreiter II", | 505 | QMessageBox::information( this, "Wellenreiter II", |
506 | tr( "Your device is not\nproperly configured. Please reconfigure!" ) ); | 506 | tr( "Your device is not\nproperly configured. Please reconfigure!" ) ); |
507 | return; | 507 | return; |
508 | } | 508 | } |
509 | 509 | ||
510 | // configure device | 510 | // configure device |
511 | ONetwork* net = ONetwork::instance(); | 511 | ONetwork* net = ONetwork::instance(); |
512 | 512 | ||
513 | // TODO: check if interface is wireless and support sniffing for non-wireless interfaces | 513 | // TODO: check if interface is wireless and support sniffing for non-wireless interfaces |
514 | 514 | ||
515 | if ( !net->isPresent( interface ) ) | ||
516 | { | ||
517 | QMessageBox::information( this, "Wellenreiter II", | ||
518 | tr( "The configured device (%1)\nis not available on this system\n. Please reconfigure!" ).arg( interface ) ); | ||
519 | return; | ||
520 | } | ||
521 | |||
515 | iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless! | 522 | iface = static_cast<OWirelessNetworkInterface*>(net->interface( interface )); // fails if network is not wireless! |
523 | assert( iface ); | ||
516 | 524 | ||
517 | // bring device UP | 525 | // bring device UP |
518 | if ( cardtype != DEVTYPE_FILE ) | 526 | if ( cardtype != DEVTYPE_FILE ) |
519 | { | 527 | { |
520 | iface->setUp( true ); | 528 | iface->setUp( true ); |
521 | if ( !iface->isUp() ) | 529 | if ( !iface->isUp() ) |
522 | { | 530 | { |
523 | QMessageBox::warning( this, "Wellenreiter II", | 531 | QMessageBox::warning( this, "Wellenreiter II", |
524 | tr( "Can't bring interface '%1' up:\n" ).arg( iface->name() ) + strerror( errno ) ); | 532 | tr( "Can't bring interface '%1' up:\n" ).arg( iface->name() ) + strerror( errno ) ); |
525 | return; | 533 | return; |
526 | } | 534 | } |
527 | } | 535 | } |
528 | // set monitor mode | 536 | // set monitor mode |
529 | bool usePrism = configwindow->usePrismHeader(); | 537 | bool usePrism = configwindow->usePrismHeader(); |
530 | 538 | ||
531 | switch ( cardtype ) | 539 | switch ( cardtype ) |
532 | { | 540 | { |
533 | case DEVTYPE_CISCO: iface->setMonitoring( new OCiscoMonitoringInterface( iface, usePrism ) ); break; | 541 | case DEVTYPE_CISCO: iface->setMonitoring( new OCiscoMonitoringInterface( iface, usePrism ) ); break; |
534 | case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface, usePrism ) ); break; | 542 | case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface, usePrism ) ); break; |
535 | case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface, usePrism ) ); break; | 543 | case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface, usePrism ) ); break; |
536 | case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface, usePrism ) ); break; | 544 | case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface, usePrism ) ); break; |
537 | case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; | 545 | case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; |
538 | case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break; | 546 | case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break; |
539 | default: assert( 0 ); // shouldn't reach this | 547 | default: assert( 0 ); // shouldn't reach this |
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index b8b6730..f57dba2 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 "wellenreiterbase.h" | 16 | #include "wellenreiterbase.h" |
17 | 17 | ||
18 | #include <qlabel.h> | 18 | #include <qlabel.h> |
19 | #include <qlayout.h> | 19 | #include <qlayout.h> |
20 | 20 | ||
21 | #include "logwindow.h" | 21 | #include "logwindow.h" |
22 | #include "hexwindow.h" | 22 | #include "hexwindow.h" |
23 | #include "scanlist.h" | 23 | #include "scanlist.h" |
24 | #include "statwindow.h" | 24 | #include "statwindow.h" |
25 | #include "graphwindow.h" | 25 | #include "graphwindow.h" |
26 | 26 | ||
27 | #ifdef QWS | 27 | #ifdef QWS |
28 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.h b/noncore/net/wellenreiter/gui/wellenreiterbase.h index 2cc273e..5e00ddc 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.h +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Wellenreiter II. |
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 WELLENREITERBASE_H | 16 | #ifndef WELLENREITERBASE_H |
17 | #define WELLENREITERBASE_H | 17 | #define WELLENREITERBASE_H |
18 | 18 | ||
19 | #include <qvariant.h> | 19 | #include <qvariant.h> |
20 | #include <qwidget.h> | 20 | #include <qwidget.h> |
21 | class QVBoxLayout; | 21 | class QVBoxLayout; |
22 | class QHBoxLayout; | 22 | class QHBoxLayout; |
23 | class QGridLayout; | 23 | class QGridLayout; |
24 | class QLabel; | 24 | class QLabel; |
25 | class MScanListView; | 25 | class MScanListView; |
26 | class MScanListItem; | 26 | class MScanListItem; |
27 | class QPushButton; | 27 | class QPushButton; |
28 | class MLogWindow; | 28 | class MLogWindow; |