-rw-r--r-- | noncore/net/wellenreiter/gui/configbase.ui | 498 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/gui.pro | 4 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.cpp | 5 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiterbase.h | 4 |
4 files changed, 296 insertions, 215 deletions
diff --git a/noncore/net/wellenreiter/gui/configbase.ui b/noncore/net/wellenreiter/gui/configbase.ui index 8f38252..57ffd2a 100644 --- a/noncore/net/wellenreiter/gui/configbase.ui +++ b/noncore/net/wellenreiter/gui/configbase.ui | |||
@@ -1,307 +1,385 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>Form1</class> | 2 | <class>WellenreiterConfigBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QWidget</class> | 4 | <class>QWidget</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>Form1</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>226</width> | 14 | <width>240</width> |
15 | <height>300</height> | 15 | <height>276</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>Form1</string> | 20 | <string>Form1</string> |
21 | </property> | 21 | </property> |
22 | <vbox> | 22 | <vbox> |
23 | <property stdset="1"> | 23 | <property stdset="1"> |
24 | <name>margin</name> | 24 | <name>margin</name> |
25 | <number>11</number> | 25 | <number>11</number> |
26 | </property> | 26 | </property> |
27 | <property stdset="1"> | 27 | <property stdset="1"> |
28 | <name>spacing</name> | 28 | <name>spacing</name> |
29 | <number>6</number> | 29 | <number>6</number> |
30 | </property> | 30 | </property> |
31 | <widget> | 31 | <widget> |
32 | <class>QGroupBox</class> | 32 | <class>QLayoutWidget</class> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>name</name> | 34 | <name>name</name> |
35 | <cstring>GroupBox1</cstring> | 35 | <cstring>Layout5</cstring> |
36 | </property> | 36 | </property> |
37 | <hbox> | ||
38 | <property stdset="1"> | ||
39 | <name>margin</name> | ||
40 | <number>0</number> | ||
41 | </property> | ||
42 | <property stdset="1"> | ||
43 | <name>spacing</name> | ||
44 | <number>6</number> | ||
45 | </property> | ||
46 | <widget> | ||
47 | <class>QLabel</class> | ||
48 | <property stdset="1"> | ||
49 | <name>name</name> | ||
50 | <cstring>TextLabel3_2</cstring> | ||
51 | </property> | ||
52 | <property stdset="1"> | ||
53 | <name>sizePolicy</name> | ||
54 | <sizepolicy> | ||
55 | <hsizetype>4</hsizetype> | ||
56 | <vsizetype>1</vsizetype> | ||
57 | </sizepolicy> | ||
58 | </property> | ||
59 | <property stdset="1"> | ||
60 | <name>text</name> | ||
61 | <string>Sniffer</string> | ||
62 | </property> | ||
63 | </widget> | ||
64 | <widget> | ||
65 | <class>Line</class> | ||
66 | <property stdset="1"> | ||
67 | <name>name</name> | ||
68 | <cstring>Line9</cstring> | ||
69 | </property> | ||
70 | <property stdset="1"> | ||
71 | <name>orientation</name> | ||
72 | <enum>Horizontal</enum> | ||
73 | </property> | ||
74 | </widget> | ||
75 | </hbox> | ||
76 | </widget> | ||
77 | <widget> | ||
78 | <class>QLayoutWidget</class> | ||
37 | <property stdset="1"> | 79 | <property stdset="1"> |
38 | <name>title</name> | 80 | <name>name</name> |
39 | <string>Sniffer Options</string> | 81 | <cstring>Layout7</cstring> |
40 | </property> | 82 | </property> |
41 | <grid> | 83 | <grid> |
42 | <property stdset="1"> | 84 | <property stdset="1"> |
43 | <name>margin</name> | 85 | <name>margin</name> |
44 | <number>11</number> | 86 | <number>0</number> |
45 | </property> | 87 | </property> |
46 | <property stdset="1"> | 88 | <property stdset="1"> |
47 | <name>spacing</name> | 89 | <name>spacing</name> |
48 | <number>6</number> | 90 | <number>6</number> |
49 | </property> | 91 | </property> |
50 | <widget row="0" column="0" > | 92 | <widget row="0" column="0" > |
51 | <class>QLayoutWidget</class> | 93 | <class>QComboBox</class> |
94 | <item> | ||
95 | <property> | ||
96 | <name>text</name> | ||
97 | <string><select></string> | ||
98 | </property> | ||
99 | </item> | ||
100 | <item> | ||
101 | <property> | ||
102 | <name>text</name> | ||
103 | <string>eth0</string> | ||
104 | </property> | ||
105 | </item> | ||
106 | <item> | ||
107 | <property> | ||
108 | <name>text</name> | ||
109 | <string>eth1</string> | ||
110 | </property> | ||
111 | </item> | ||
112 | <item> | ||
113 | <property> | ||
114 | <name>text</name> | ||
115 | <string>wlan0</string> | ||
116 | </property> | ||
117 | </item> | ||
118 | <item> | ||
119 | <property> | ||
120 | <name>text</name> | ||
121 | <string>wlan1</string> | ||
122 | </property> | ||
123 | </item> | ||
124 | <item> | ||
125 | <property> | ||
126 | <name>text</name> | ||
127 | <string>wifi0</string> | ||
128 | </property> | ||
129 | </item> | ||
130 | <item> | ||
131 | <property> | ||
132 | <name>text</name> | ||
133 | <string>wifi1</string> | ||
134 | </property> | ||
135 | </item> | ||
52 | <property stdset="1"> | 136 | <property stdset="1"> |
53 | <name>name</name> | 137 | <name>name</name> |
54 | <cstring>Layout1</cstring> | 138 | <cstring>interfaceName</cstring> |
139 | </property> | ||
140 | <property stdset="1"> | ||
141 | <name>enabled</name> | ||
142 | <bool>false</bool> | ||
55 | </property> | 143 | </property> |
56 | <grid> | 144 | </widget> |
57 | <property stdset="1"> | 145 | <widget row="4" column="0" rowspan="1" colspan="2" > |
58 | <name>margin</name> | 146 | <class>QCheckBox</class> |
59 | <number>0</number> | 147 | <property stdset="1"> |
148 | <name>name</name> | ||
149 | <cstring>activeScanning</cstring> | ||
150 | </property> | ||
151 | <property stdset="1"> | ||
152 | <name>enabled</name> | ||
153 | <bool>false</bool> | ||
154 | </property> | ||
155 | <property stdset="1"> | ||
156 | <name>text</name> | ||
157 | <string>Active Scanning (caution!)</string> | ||
158 | </property> | ||
159 | </widget> | ||
160 | <widget row="1" column="0" > | ||
161 | <class>QComboBox</class> | ||
162 | <item> | ||
163 | <property> | ||
164 | <name>text</name> | ||
165 | <string><select></string> | ||
166 | </property> | ||
167 | </item> | ||
168 | <item> | ||
169 | <property> | ||
170 | <name>text</name> | ||
171 | <string>cisco</string> | ||
172 | </property> | ||
173 | </item> | ||
174 | <item> | ||
175 | <property> | ||
176 | <name>text</name> | ||
177 | <string>orinoco</string> | ||
178 | </property> | ||
179 | </item> | ||
180 | <item> | ||
181 | <property> | ||
182 | <name>text</name> | ||
183 | <string>prism</string> | ||
60 | </property> | 184 | </property> |
61 | <property stdset="1"> | 185 | </item> |
62 | <name>spacing</name> | 186 | <item> |
63 | <number>6</number> | 187 | <property> |
188 | <name>text</name> | ||
189 | <string><manual></string> | ||
64 | </property> | 190 | </property> |
65 | <widget row="2" column="0" > | 191 | </item> |
66 | <class>QSpinBox</class> | 192 | <property stdset="1"> |
67 | <property stdset="1"> | 193 | <name>name</name> |
68 | <name>name</name> | 194 | <cstring>deviceType</cstring> |
69 | <cstring>hopInterval</cstring> | 195 | </property> |
70 | </property> | 196 | <property stdset="1"> |
71 | <property stdset="1"> | 197 | <name>enabled</name> |
72 | <name>suffix</name> | 198 | <bool>false</bool> |
73 | <string> ms</string> | 199 | </property> |
74 | </property> | 200 | </widget> |
75 | <property stdset="1"> | 201 | <widget row="3" column="0" rowspan="1" colspan="2" > |
76 | <name>maxValue</name> | 202 | <class>QCheckBox</class> |
77 | <number>2000</number> | 203 | <property stdset="1"> |
78 | </property> | 204 | <name>name</name> |
79 | <property stdset="1"> | 205 | <cstring>additionalInfo</cstring> |
80 | <name>minValue</name> | 206 | </property> |
81 | <number>100</number> | 207 | <property stdset="1"> |
82 | </property> | 208 | <name>enabled</name> |
83 | <property stdset="1"> | 209 | <bool>false</bool> |
84 | <name>lineStep</name> | 210 | </property> |
85 | <number>100</number> | 211 | <property stdset="1"> |
86 | </property> | 212 | <name>text</name> |
87 | </widget> | 213 | <string>Gather Additional Info</string> |
88 | <widget row="2" column="1" > | 214 | </property> |
89 | <class>QLabel</class> | 215 | </widget> |
90 | <property stdset="1"> | 216 | <widget row="2" column="0" > |
91 | <name>name</name> | 217 | <class>QSpinBox</class> |
92 | <cstring>TextLabel3</cstring> | 218 | <property stdset="1"> |
93 | </property> | 219 | <name>name</name> |
94 | <property stdset="1"> | 220 | <cstring>hopInterval</cstring> |
95 | <name>text</name> | 221 | </property> |
96 | <string>Hop Interval</string> | 222 | <property stdset="1"> |
97 | </property> | 223 | <name>enabled</name> |
98 | </widget> | 224 | <bool>false</bool> |
99 | <widget row="0" column="0" > | 225 | </property> |
100 | <class>QComboBox</class> | 226 | <property stdset="1"> |
101 | <item> | 227 | <name>suffix</name> |
102 | <property> | 228 | <string> ms</string> |
103 | <name>text</name> | 229 | </property> |
104 | <string><select></string> | 230 | <property stdset="1"> |
105 | </property> | 231 | <name>maxValue</name> |
106 | </item> | 232 | <number>2000</number> |
107 | <item> | 233 | </property> |
108 | <property> | 234 | <property stdset="1"> |
109 | <name>text</name> | 235 | <name>minValue</name> |
110 | <string>eth0</string> | 236 | <number>100</number> |
111 | </property> | 237 | </property> |
112 | </item> | 238 | <property stdset="1"> |
113 | <item> | 239 | <name>lineStep</name> |
114 | <property> | 240 | <number>100</number> |
115 | <name>text</name> | 241 | </property> |
116 | <string>eth1</string> | 242 | </widget> |
117 | </property> | 243 | <widget row="2" column="1" > |
118 | </item> | 244 | <class>QLabel</class> |
119 | <item> | 245 | <property stdset="1"> |
120 | <property> | 246 | <name>name</name> |
121 | <name>text</name> | 247 | <cstring>TextLabel3_3</cstring> |
122 | <string>wlan0</string> | 248 | </property> |
123 | </property> | 249 | <property stdset="1"> |
124 | </item> | 250 | <name>enabled</name> |
125 | <item> | 251 | <bool>false</bool> |
126 | <property> | 252 | </property> |
127 | <name>text</name> | 253 | <property stdset="1"> |
128 | <string>wlan1</string> | 254 | <name>text</name> |
129 | </property> | 255 | <string>Hop Interval</string> |
130 | </item> | 256 | </property> |
131 | <item> | 257 | </widget> |
132 | <property> | 258 | <widget row="1" column="1" > |
133 | <name>text</name> | 259 | <class>QLabel</class> |
134 | <string>wifi0</string> | 260 | <property stdset="1"> |
135 | </property> | 261 | <name>name</name> |
136 | </item> | 262 | <cstring>TextLabel2_3</cstring> |
137 | <item> | 263 | </property> |
138 | <property> | 264 | <property stdset="1"> |
139 | <name>text</name> | 265 | <name>enabled</name> |
140 | <string>wifi1</string> | 266 | <bool>false</bool> |
141 | </property> | 267 | </property> |
142 | </item> | 268 | <property stdset="1"> |
143 | <property stdset="1"> | 269 | <name>text</name> |
144 | <name>name</name> | 270 | <string>Device Type</string> |
145 | <cstring>interfaceName</cstring> | 271 | </property> |
146 | </property> | 272 | </widget> |
147 | </widget> | 273 | <widget row="0" column="1" > |
148 | <widget row="0" column="1" > | 274 | <class>QLabel</class> |
149 | <class>QLabel</class> | 275 | <property stdset="1"> |
150 | <property stdset="1"> | 276 | <name>name</name> |
151 | <name>name</name> | 277 | <cstring>TextLabel1_2</cstring> |
152 | <cstring>TextLabel1</cstring> | 278 | </property> |
153 | </property> | 279 | <property stdset="1"> |
154 | <property stdset="1"> | 280 | <name>enabled</name> |
155 | <name>text</name> | 281 | <bool>false</bool> |
156 | <string>Interface Name</string> | 282 | </property> |
157 | </property> | 283 | <property stdset="1"> |
158 | </widget> | 284 | <name>text</name> |
159 | <widget row="1" column="0" > | 285 | <string>Interface Name</string> |
160 | <class>QComboBox</class> | 286 | </property> |
161 | <item> | ||
162 | <property> | ||
163 | <name>text</name> | ||
164 | <string><select></string> | ||
165 | </property> | ||
166 | </item> | ||
167 | <item> | ||
168 | <property> | ||
169 | <name>text</name> | ||
170 | <string>cisco</string> | ||
171 | </property> | ||
172 | </item> | ||
173 | <item> | ||
174 | <property> | ||
175 | <name>text</name> | ||
176 | <string>orinoco</string> | ||
177 | </property> | ||
178 | </item> | ||
179 | <item> | ||
180 | <property> | ||
181 | <name>text</name> | ||
182 | <string>prism</string> | ||
183 | </property> | ||
184 | </item> | ||
185 | <item> | ||
186 | <property> | ||
187 | <name>text</name> | ||
188 | <string><manual></string> | ||
189 | </property> | ||
190 | </item> | ||
191 | <property stdset="1"> | ||
192 | <name>name</name> | ||
193 | <cstring>deviceType</cstring> | ||
194 | </property> | ||
195 | </widget> | ||
196 | <widget row="1" column="1" > | ||
197 | <class>QLabel</class> | ||
198 | <property stdset="1"> | ||
199 | <name>name</name> | ||
200 | <cstring>TextLabel2</cstring> | ||
201 | </property> | ||
202 | <property stdset="1"> | ||
203 | <name>text</name> | ||
204 | <string>Device Type</string> | ||
205 | </property> | ||
206 | </widget> | ||
207 | </grid> | ||
208 | </widget> | 287 | </widget> |
209 | </grid> | 288 | </grid> |
210 | </widget> | 289 | </widget> |
211 | <widget> | 290 | <widget> |
212 | <class>QGroupBox</class> | 291 | <class>QLayoutWidget</class> |
213 | <property stdset="1"> | 292 | <property stdset="1"> |
214 | <name>name</name> | 293 | <name>name</name> |
215 | <cstring>GroupBox8</cstring> | 294 | <cstring>Layout6</cstring> |
216 | </property> | 295 | </property> |
217 | <property stdset="1"> | 296 | <hbox> |
218 | <name>title</name> | ||
219 | <string>Advanced Options</string> | ||
220 | </property> | ||
221 | <widget> | ||
222 | <class>QCheckBox</class> | ||
223 | <property stdset="1"> | ||
224 | <name>name</name> | ||
225 | <cstring>additionalInfo</cstring> | ||
226 | </property> | ||
227 | <property stdset="1"> | ||
228 | <name>geometry</name> | ||
229 | <rect> | ||
230 | <x>11</x> | ||
231 | <y>19</y> | ||
232 | <width>147</width> | ||
233 | <height>19</height> | ||
234 | </rect> | ||
235 | </property> | ||
236 | <property stdset="1"> | ||
237 | <name>text</name> | ||
238 | <string>Gather Additional Info</string> | ||
239 | </property> | ||
240 | </widget> | ||
241 | <widget> | ||
242 | <class>QCheckBox</class> | ||
243 | <property stdset="1"> | ||
244 | <name>name</name> | ||
245 | <cstring>activeScanning</cstring> | ||
246 | </property> | ||
247 | <property stdset="1"> | 297 | <property stdset="1"> |
248 | <name>geometry</name> | 298 | <name>margin</name> |
249 | <rect> | 299 | <number>0</number> |
250 | <x>11</x> | ||
251 | <y>44</y> | ||
252 | <width>175</width> | ||
253 | <height>19</height> | ||
254 | </rect> | ||
255 | </property> | 300 | </property> |
256 | <property stdset="1"> | 301 | <property stdset="1"> |
257 | <name>text</name> | 302 | <name>spacing</name> |
258 | <string>Active Scanning (caution!)</string> | 303 | <number>6</number> |
259 | </property> | 304 | </property> |
260 | </widget> | 305 | <widget> |
306 | <class>QLabel</class> | ||
307 | <property stdset="1"> | ||
308 | <name>name</name> | ||
309 | <cstring>TextLabel3_2_2</cstring> | ||
310 | </property> | ||
311 | <property stdset="1"> | ||
312 | <name>sizePolicy</name> | ||
313 | <sizepolicy> | ||
314 | <hsizetype>4</hsizetype> | ||
315 | <vsizetype>1</vsizetype> | ||
316 | </sizepolicy> | ||
317 | </property> | ||
318 | <property stdset="1"> | ||
319 | <name>text</name> | ||
320 | <string>GUI</string> | ||
321 | </property> | ||
322 | </widget> | ||
323 | <widget> | ||
324 | <class>Line</class> | ||
325 | <property stdset="1"> | ||
326 | <name>name</name> | ||
327 | <cstring>Line9_2</cstring> | ||
328 | </property> | ||
329 | <property stdset="1"> | ||
330 | <name>orientation</name> | ||
331 | <enum>Horizontal</enum> | ||
332 | </property> | ||
333 | </widget> | ||
334 | </hbox> | ||
261 | </widget> | 335 | </widget> |
262 | <widget> | 336 | <widget> |
263 | <class>QGroupBox</class> | 337 | <class>QLayoutWidget</class> |
264 | <property stdset="1"> | 338 | <property stdset="1"> |
265 | <name>name</name> | 339 | <name>name</name> |
266 | <cstring>GroupBox3</cstring> | 340 | <cstring>Layout8</cstring> |
267 | </property> | ||
268 | <property stdset="1"> | ||
269 | <name>title</name> | ||
270 | <string>GUI Options</string> | ||
271 | </property> | 341 | </property> |
272 | <vbox> | 342 | <vbox> |
273 | <property stdset="1"> | 343 | <property stdset="1"> |
274 | <name>margin</name> | 344 | <name>margin</name> |
275 | <number>11</number> | 345 | <number>0</number> |
276 | </property> | 346 | </property> |
277 | <property stdset="1"> | 347 | <property stdset="1"> |
278 | <name>spacing</name> | 348 | <name>spacing</name> |
279 | <number>6</number> | 349 | <number>6</number> |
280 | </property> | 350 | </property> |
281 | <widget> | 351 | <widget> |
282 | <class>QCheckBox</class> | 352 | <class>QCheckBox</class> |
283 | <property stdset="1"> | 353 | <property stdset="1"> |
284 | <name>name</name> | 354 | <name>name</name> |
285 | <cstring>groupNetworks</cstring> | 355 | <cstring>groupNetworks</cstring> |
286 | </property> | 356 | </property> |
287 | <property stdset="1"> | 357 | <property stdset="1"> |
358 | <name>enabled</name> | ||
359 | <bool>false</bool> | ||
360 | </property> | ||
361 | <property stdset="1"> | ||
288 | <name>text</name> | 362 | <name>text</name> |
289 | <string>Group Detected Networks</string> | 363 | <string>Group Detected Networks</string> |
290 | </property> | 364 | </property> |
291 | </widget> | 365 | </widget> |
292 | <widget> | 366 | <widget> |
293 | <class>QCheckBox</class> | 367 | <class>QCheckBox</class> |
294 | <property stdset="1"> | 368 | <property stdset="1"> |
295 | <name>name</name> | 369 | <name>name</name> |
296 | <cstring>enableActivity</cstring> | 370 | <cstring>enableActivity</cstring> |
297 | </property> | 371 | </property> |
298 | <property stdset="1"> | 372 | <property stdset="1"> |
373 | <name>enabled</name> | ||
374 | <bool>false</bool> | ||
375 | </property> | ||
376 | <property stdset="1"> | ||
299 | <name>text</name> | 377 | <name>text</name> |
300 | <string>Enable Activity Display</string> | 378 | <string>Enable Activity Display</string> |
301 | </property> | 379 | </property> |
302 | </widget> | 380 | </widget> |
303 | </vbox> | 381 | </vbox> |
304 | </widget> | 382 | </widget> |
305 | </vbox> | 383 | </vbox> |
306 | </widget> | 384 | </widget> |
307 | </UI> | 385 | </UI> |
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro index a047433..b271ee3 100644 --- a/noncore/net/wellenreiter/gui/gui.pro +++ b/noncore/net/wellenreiter/gui/gui.pro | |||
@@ -1,11 +1,11 @@ | |||
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 | #CONFIG = qt warn_on release | 4 | #CONFIG = qt warn_on release |
5 | HEADERS = wellenreiterbase.h wellenreiter.h scanlistitem.h scanlist.h logwindow.h hexwindow.h | 5 | HEADERS = wellenreiterbase.h wellenreiter.h scanlistitem.h scanlist.h logwindow.h hexwindow.h configwindow.h |
6 | SOURCES = main.cpp wellenreiterbase.cpp wellenreiter.cpp scanlistitem.cpp scanlist.cpp logwindow.cpp hexwindow.cpp | 6 | SOURCES = main.cpp wellenreiterbase.cpp wellenreiter.cpp scanlistitem.cpp scanlist.cpp logwindow.cpp hexwindow.cpp configwindow.cpp |
7 | INCLUDEPATH += $(OPIEDIR)/include ../daemon | 7 | INCLUDEPATH += $(OPIEDIR)/include ../daemon |
8 | DEPENDPATH += $(OPIEDIR)/include ../daemon | 8 | DEPENDPATH += $(OPIEDIR)/include ../daemon |
9 | LIBS += -lqpe -lopie -lwellenreiter | 9 | LIBS += -lqpe -lopie -lwellenreiter |
10 | INTERFACES = configbase.ui | 10 | INTERFACES = configbase.ui |
11 | TARGET = wellenreiter | 11 | TARGET = wellenreiter |
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp index b1845b9..aa94c81 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.cpp | |||
@@ -1,170 +1,171 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ***********************************************************************/ | 14 | ***********************************************************************/ |
15 | 15 | ||
16 | #include "wellenreiterbase.h" | 16 | #include "wellenreiterbase.h" |
17 | 17 | ||
18 | #include <qheader.h> | 18 | #include <qheader.h> |
19 | #include <qlabel.h> | 19 | #include <qlabel.h> |
20 | #include <qlistview.h> | 20 | #include <qlistview.h> |
21 | #include <qmultilineedit.h> | 21 | #include <qmultilineedit.h> |
22 | #include <qpushbutton.h> | 22 | #include <qpushbutton.h> |
23 | #include <opie/otabwidget.h> | 23 | #include <opie/otabwidget.h> |
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qvariant.h> | 25 | #include <qvariant.h> |
26 | #include <qtooltip.h> | 26 | #include <qtooltip.h> |
27 | #include <qwhatsthis.h> | 27 | #include <qwhatsthis.h> |
28 | #include <qimage.h> | 28 | #include <qimage.h> |
29 | #include <qpixmap.h> | 29 | #include <qpixmap.h> |
30 | 30 | ||
31 | #include "logwindow.h" | 31 | #include "logwindow.h" |
32 | #include "hexwindow.h" | 32 | #include "hexwindow.h" |
33 | #include "configwindow.h" | ||
33 | 34 | ||
34 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
35 | 36 | ||
36 | 37 | ||
37 | /* | 38 | /* |
38 | * Constructs a WellenreiterBase which is a child of 'parent', with the | 39 | * Constructs a WellenreiterBase which is a child of 'parent', with the |
39 | * name 'name' and widget flags set to 'f' | 40 | * name 'name' and widget flags set to 'f' |
40 | */ | 41 | */ |
41 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) | 42 | WellenreiterBase::WellenreiterBase( QWidget* parent, const char* name, WFlags fl ) |
42 | : QWidget( parent, name, fl ) | 43 | : QWidget( parent, name, fl ) |
43 | { | 44 | { |
44 | if ( !name ) | 45 | if ( !name ) |
45 | setName( "WellenreiterBase" ); | 46 | setName( "WellenreiterBase" ); |
46 | resize( 191, 294 ); | 47 | resize( 191, 294 ); |
47 | setCaption( tr( "Wellenreiter" ) ); | 48 | setCaption( tr( "Wellenreiter" ) ); |
48 | WellenreiterBaseLayout = new QVBoxLayout( this ); | 49 | WellenreiterBaseLayout = new QVBoxLayout( this ); |
49 | WellenreiterBaseLayout->setSpacing( 2 ); | 50 | WellenreiterBaseLayout->setSpacing( 2 ); |
50 | WellenreiterBaseLayout->setMargin( 0 ); | 51 | WellenreiterBaseLayout->setMargin( 0 ); |
51 | 52 | ||
52 | TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global ); | 53 | TabWidget = new OTabWidget( this, "TabWidget", OTabWidget::Global ); |
53 | 54 | ||
54 | ap = new QWidget( TabWidget, "ap" ); | 55 | ap = new QWidget( TabWidget, "ap" ); |
55 | apLayout = new QVBoxLayout( ap ); | 56 | apLayout = new QVBoxLayout( ap ); |
56 | apLayout->setSpacing( 2 ); | 57 | apLayout->setSpacing( 2 ); |
57 | apLayout->setMargin( 2 ); | 58 | apLayout->setMargin( 2 ); |
58 | 59 | ||
59 | //--------- NETVIEW TAB -------------- | 60 | //--------- NETVIEW TAB -------------- |
60 | 61 | ||
61 | netview = new QListView( ap, "netview" ); | 62 | netview = new QListView( ap, "netview" ); |
62 | netview->addColumn( tr( "SSID" ) ); | 63 | netview->addColumn( tr( "SSID" ) ); |
63 | netview->setColumnAlignment( 0, AlignLeft || AlignVCenter ); | 64 | netview->setColumnAlignment( 0, AlignLeft || AlignVCenter ); |
64 | netview->addColumn( tr( "Sig" ) ); | 65 | netview->addColumn( tr( "Sig" ) ); |
65 | netview->setColumnAlignment( 1, AlignCenter ); | 66 | netview->setColumnAlignment( 1, AlignCenter ); |
66 | netview->addColumn( tr( "AP" ) ); | 67 | netview->addColumn( tr( "AP" ) ); |
67 | netview->setColumnAlignment( 2, AlignCenter ); | 68 | netview->setColumnAlignment( 2, AlignCenter ); |
68 | netview->addColumn( tr( "Chn" ) ); | 69 | netview->addColumn( tr( "Chn" ) ); |
69 | netview->setColumnAlignment( 3, AlignCenter ); | 70 | netview->setColumnAlignment( 3, AlignCenter ); |
70 | netview->addColumn( tr( "W" ) ); | 71 | netview->addColumn( tr( "W" ) ); |
71 | netview->setColumnAlignment( 4, AlignCenter ); | 72 | netview->setColumnAlignment( 4, AlignCenter ); |
72 | netview->addColumn( tr( "T" ) ); | 73 | netview->addColumn( tr( "T" ) ); |
73 | netview->setColumnAlignment( 5, AlignCenter ); | 74 | netview->setColumnAlignment( 5, AlignCenter ); |
74 | 75 | ||
75 | netview->setFrameShape( QListView::StyledPanel ); | 76 | netview->setFrameShape( QListView::StyledPanel ); |
76 | netview->setFrameShadow( QListView::Sunken ); | 77 | netview->setFrameShadow( QListView::Sunken ); |
77 | netview->setRootIsDecorated( TRUE ); | 78 | netview->setRootIsDecorated( TRUE ); |
78 | apLayout->addWidget( netview ); | 79 | apLayout->addWidget( netview ); |
79 | TabWidget->addTab( ap, "wellenreiter/networks", tr( "Networks" ) ); | 80 | TabWidget->addTab( ap, "wellenreiter/networks", tr( "Networks" ) ); |
80 | 81 | ||
81 | //--------- LOG TAB -------------- | 82 | //--------- LOG TAB -------------- |
82 | 83 | ||
83 | logwindow = new MLogWindow( TabWidget, "Log" ); | 84 | logwindow = new MLogWindow( TabWidget, "Log" ); |
84 | TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); | 85 | TabWidget->addTab( logwindow, "wellenreiter/log", tr( "Log" ) ); |
85 | 86 | ||
86 | //--------- HEX TAB -------------- | 87 | //--------- HEX TAB -------------- |
87 | 88 | ||
88 | hexwindow = new MHexWindow( TabWidget, "Hex" ); | 89 | hexwindow = new MHexWindow( TabWidget, "Hex" ); |
89 | TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); | 90 | TabWidget->addTab( hexwindow, "wellenreiter/hex", tr( "Hex" ) ); |
90 | 91 | ||
91 | //--------- CONFIG TAB -------------- | 92 | //--------- CONFIG TAB -------------- |
92 | 93 | ||
93 | QPushButton* dummy = new QPushButton( "under construction", TabWidget ); | 94 | configwindow = new WellenreiterConfigWindow( TabWidget, "Config" ); |
94 | TabWidget->addTab( dummy, "wellenreiter/config", tr( "Config" ) ); | 95 | TabWidget->addTab( configwindow, "wellenreiter/config", tr( "Config" ) ); |
95 | 96 | ||
96 | //--------- ABOUT TAB -------------- | 97 | //--------- ABOUT TAB -------------- |
97 | 98 | ||
98 | about = new QWidget( TabWidget, "about" ); | 99 | about = new QWidget( TabWidget, "about" ); |
99 | aboutLayout = new QGridLayout( about ); | 100 | aboutLayout = new QGridLayout( about ); |
100 | aboutLayout->setSpacing( 6 ); | 101 | aboutLayout->setSpacing( 6 ); |
101 | aboutLayout->setMargin( 11 ); | 102 | aboutLayout->setMargin( 11 ); |
102 | 103 | ||
103 | PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); | 104 | PixmapLabel1_3_2 = new QLabel( about, "PixmapLabel1_3_2" ); |
104 | PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); | 105 | PixmapLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, PixmapLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); |
105 | PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); | 106 | PixmapLabel1_3_2->setFrameShape( QLabel::Panel ); |
106 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); | 107 | PixmapLabel1_3_2->setFrameShadow( QLabel::Sunken ); |
107 | PixmapLabel1_3_2->setLineWidth( 2 ); | 108 | PixmapLabel1_3_2->setLineWidth( 2 ); |
108 | PixmapLabel1_3_2->setMargin( 0 ); | 109 | PixmapLabel1_3_2->setMargin( 0 ); |
109 | PixmapLabel1_3_2->setMidLineWidth( 0 ); | 110 | PixmapLabel1_3_2->setMidLineWidth( 0 ); |
110 | PixmapLabel1_3_2->setPixmap( Resource::loadPixmap( "wellenreiter/logo" ) ); | 111 | PixmapLabel1_3_2->setPixmap( Resource::loadPixmap( "wellenreiter/logo" ) ); |
111 | PixmapLabel1_3_2->setScaledContents( TRUE ); | 112 | PixmapLabel1_3_2->setScaledContents( TRUE ); |
112 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); | 113 | PixmapLabel1_3_2->setAlignment( int( QLabel::AlignCenter ) ); |
113 | 114 | ||
114 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); | 115 | aboutLayout->addWidget( PixmapLabel1_3_2, 0, 0 ); |
115 | 116 | ||
116 | TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); | 117 | TextLabel1_4_2 = new QLabel( about, "TextLabel1_4_2" ); |
117 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); | 118 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); |
118 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); | 119 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); |
119 | TextLabel1_4_2_font.setPointSize( 10 ); | 120 | TextLabel1_4_2_font.setPointSize( 10 ); |
120 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); | 121 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); |
121 | TextLabel1_4_2->setText( tr( "<p align=center>\n" | 122 | TextLabel1_4_2->setText( tr( "<p align=center>\n" |
122 | "<hr>\n" | 123 | "<hr>\n" |
123 | "Max Moser<br>\n" | 124 | "Max Moser<br>\n" |
124 | "Martin J. Muench<br>\n" | 125 | "Martin J. Muench<br>\n" |
125 | "Michael Lauer<br><hr>\n" | 126 | "Michael Lauer<br><hr>\n" |
126 | "<b>www.remote-exploit.org</b>\n" | 127 | "<b>www.remote-exploit.org</b>\n" |
127 | "</p>" ) ); | 128 | "</p>" ) ); |
128 | TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); | 129 | TextLabel1_4_2->setAlignment( int( QLabel::AlignCenter ) ); |
129 | 130 | ||
130 | aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); | 131 | aboutLayout->addWidget( TextLabel1_4_2, 1, 0 ); |
131 | TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); | 132 | TabWidget->addTab( about, "wellenreiter/about", tr( "About" ) ); |
132 | WellenreiterBaseLayout->addWidget( TabWidget ); | 133 | WellenreiterBaseLayout->addWidget( TabWidget ); |
133 | 134 | ||
134 | button = new QPushButton( this, "button" ); | 135 | button = new QPushButton( this, "button" ); |
135 | button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, button->sizePolicy().hasHeightForWidth() ) ); | 136 | button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, button->sizePolicy().hasHeightForWidth() ) ); |
136 | button->setText( tr( "Start Scanning" ) ); | 137 | button->setText( tr( "Start Scanning" ) ); |
137 | WellenreiterBaseLayout->addWidget( button ); | 138 | WellenreiterBaseLayout->addWidget( button ); |
138 | 139 | ||
139 | TabWidget->setCurrentTab( tr( "Networks" ) ); | 140 | TabWidget->setCurrentTab( tr( "Networks" ) ); |
140 | 141 | ||
141 | } | 142 | } |
142 | 143 | ||
143 | /* | 144 | /* |
144 | * Destroys the object and frees any allocated resources | 145 | * Destroys the object and frees any allocated resources |
145 | */ | 146 | */ |
146 | WellenreiterBase::~WellenreiterBase() | 147 | WellenreiterBase::~WellenreiterBase() |
147 | { | 148 | { |
148 | // no need to delete child widgets, Qt does it all for us | 149 | // no need to delete child widgets, Qt does it all for us |
149 | } | 150 | } |
150 | 151 | ||
151 | /* | 152 | /* |
152 | * Main event handler. Reimplemented to handle application | 153 | * Main event handler. Reimplemented to handle application |
153 | * font changes | 154 | * font changes |
154 | */ | 155 | */ |
155 | bool WellenreiterBase::event( QEvent* ev ) | 156 | bool WellenreiterBase::event( QEvent* ev ) |
156 | { | 157 | { |
157 | bool ret = QWidget::event( ev ); | 158 | bool ret = QWidget::event( ev ); |
158 | if ( ev->type() == QEvent::ApplicationFontChange ) { | 159 | if ( ev->type() == QEvent::ApplicationFontChange ) { |
159 | //QFont Log_2_font( Log_2->font() ); | 160 | //QFont Log_2_font( Log_2->font() ); |
160 | //Log_2_font.setFamily( "adobe-courier" ); | 161 | //Log_2_font.setFamily( "adobe-courier" ); |
161 | //Log_2_font.setPointSize( 8 ); | 162 | //Log_2_font.setPointSize( 8 ); |
162 | //Log_2->setFont( Log_2_font ); | 163 | //Log_2->setFont( Log_2_font ); |
163 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); | 164 | QFont TextLabel1_4_2_font( TextLabel1_4_2->font() ); |
164 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); | 165 | TextLabel1_4_2_font.setFamily( "adobe-helvetica" ); |
165 | TextLabel1_4_2_font.setPointSize( 10 ); | 166 | TextLabel1_4_2_font.setPointSize( 10 ); |
166 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); | 167 | TextLabel1_4_2->setFont( TextLabel1_4_2_font ); |
167 | } | 168 | } |
168 | return ret; | 169 | return ret; |
169 | } | 170 | } |
170 | 171 | ||
diff --git a/noncore/net/wellenreiter/gui/wellenreiterbase.h b/noncore/net/wellenreiter/gui/wellenreiterbase.h index b7bd820..4e5ca94 100644 --- a/noncore/net/wellenreiter/gui/wellenreiterbase.h +++ b/noncore/net/wellenreiter/gui/wellenreiterbase.h | |||
@@ -1,57 +1,59 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #ifndef 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 QListView; | 25 | class QListView; |
26 | class QListViewItem; | 26 | class QListViewItem; |
27 | class QPushButton; | 27 | class QPushButton; |
28 | class OTabWidget; | 28 | class OTabWidget; |
29 | class MLogWindow; | 29 | class MLogWindow; |
30 | class MHexWindow; | 30 | class MHexWindow; |
31 | class WellenreiterConfigWindow; | ||
31 | 32 | ||
32 | class WellenreiterBase : public QWidget | 33 | class WellenreiterBase : public QWidget |
33 | { | 34 | { |
34 | Q_OBJECT | 35 | Q_OBJECT |
35 | 36 | ||
36 | public: | 37 | public: |
37 | WellenreiterBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 38 | WellenreiterBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
38 | ~WellenreiterBase(); | 39 | ~WellenreiterBase(); |
39 | 40 | ||
40 | OTabWidget* TabWidget; | 41 | OTabWidget* TabWidget; |
41 | QWidget* ap; | 42 | QWidget* ap; |
42 | QListView* netview; | 43 | QListView* netview; |
43 | MLogWindow* logwindow; | 44 | MLogWindow* logwindow; |
44 | MHexWindow* hexwindow; | 45 | MHexWindow* hexwindow; |
46 | WellenreiterConfigWindow* configwindow; | ||
45 | QWidget* about; | 47 | QWidget* about; |
46 | QLabel* PixmapLabel1_3_2; | 48 | QLabel* PixmapLabel1_3_2; |
47 | QLabel* TextLabel1_4_2; | 49 | QLabel* TextLabel1_4_2; |
48 | QPushButton* button; | 50 | QPushButton* button; |
49 | 51 | ||
50 | protected: | 52 | protected: |
51 | QVBoxLayout* WellenreiterBaseLayout; | 53 | QVBoxLayout* WellenreiterBaseLayout; |
52 | QVBoxLayout* apLayout; | 54 | QVBoxLayout* apLayout; |
53 | QGridLayout* aboutLayout; | 55 | QGridLayout* aboutLayout; |
54 | bool event( QEvent* ); | 56 | bool event( QEvent* ); |
55 | }; | 57 | }; |
56 | 58 | ||
57 | #endif // WELLENREITERBASE_H | 59 | #endif // WELLENREITERBASE_H |