author | benmeyer <benmeyer> | 2002-09-30 19:41:41 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-09-30 19:41:41 (UTC) |
commit | a0f88d7d0fb0ffaf8d1aa7b753b0d48ee344e34f (patch) (unidiff) | |
tree | 10e1141777f657881af01cab036962c128109ec2 | |
parent | d49bd63f3b15795a1ee2497960f00eb3fb075e69 (diff) | |
download | opie-a0f88d7d0fb0ffaf8d1aa7b753b0d48ee344e34f.zip opie-a0f88d7d0fb0ffaf8d1aa7b753b0d48ee344e34f.tar.gz opie-a0f88d7d0fb0ffaf8d1aa7b753b0d48ee344e34f.tar.bz2 |
ui cleanup with groupboxes
-rw-r--r-- | noncore/net/networksetup/interfaceadvanced.ui | 242 | ||||
-rw-r--r-- | noncore/net/networksetup/interfaceinformation.ui | 165 | ||||
-rw-r--r-- | noncore/net/networksetup/interfacesetup.ui | 210 | ||||
-rw-r--r-- | noncore/net/networksetup/mainwindow.ui | 2 | ||||
-rw-r--r-- | noncore/net/networksetup/mainwindowimp.cpp | 76 | ||||
-rw-r--r-- | noncore/net/networksetup/module.h | 4 | ||||
-rw-r--r-- | noncore/net/networksetup/networksetup.pro | 4 | ||||
-rw-r--r-- | noncore/settings/networksettings/interfaceadvanced.ui | 242 | ||||
-rw-r--r-- | noncore/settings/networksettings/interfaceinformation.ui | 165 | ||||
-rw-r--r-- | noncore/settings/networksettings/interfacesetup.ui | 210 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindow.ui | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 76 | ||||
-rw-r--r-- | noncore/settings/networksettings/module.h | 4 | ||||
-rw-r--r-- | noncore/settings/networksettings/networksetup.pro | 4 |
14 files changed, 746 insertions, 660 deletions
diff --git a/noncore/net/networksetup/interfaceadvanced.ui b/noncore/net/networksetup/interfaceadvanced.ui index 8ef0b29..7520abe 100644 --- a/noncore/net/networksetup/interfaceadvanced.ui +++ b/noncore/net/networksetup/interfaceadvanced.ui | |||
@@ -13,4 +13,4 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>197</width> | 14 | <width>188</width> |
15 | <height>253</height> | 15 | <height>277</height> |
16 | </rect> | 16 | </rect> |
@@ -101,14 +101,3 @@ | |||
101 | </widget> | 101 | </widget> |
102 | <widget row="8" column="0" > | 102 | <widget row="4" column="0" > |
103 | <class>QLabel</class> | ||
104 | <property stdset="1"> | ||
105 | <name>name</name> | ||
106 | <cstring>TextLabel9</cstring> | ||
107 | </property> | ||
108 | <property stdset="1"> | ||
109 | <name>text</name> | ||
110 | <string>Lease Expires</string> | ||
111 | </property> | ||
112 | </widget> | ||
113 | <widget row="8" column="1" > | ||
114 | <class>QLabel</class> | 103 | <class>QLabel</class> |
@@ -116,11 +105,7 @@ | |||
116 | <name>name</name> | 105 | <name>name</name> |
117 | <cstring>leaseExpiresLabel</cstring> | 106 | <cstring>TextLabel4</cstring> |
118 | </property> | ||
119 | <property stdset="1"> | ||
120 | <name>frameShape</name> | ||
121 | <enum>Panel</enum> | ||
122 | </property> | 107 | </property> |
123 | <property stdset="1"> | 108 | <property stdset="1"> |
124 | <name>frameShadow</name> | 109 | <name>enabled</name> |
125 | <enum>Sunken</enum> | 110 | <bool>true</bool> |
126 | </property> | 111 | </property> |
@@ -128,6 +113,6 @@ | |||
128 | <name>text</name> | 113 | <name>text</name> |
129 | <string></string> | 114 | <string>Subnet Mask</string> |
130 | </property> | 115 | </property> |
131 | </widget> | 116 | </widget> |
132 | <widget row="7" column="1" > | 117 | <widget row="2" column="1" > |
133 | <class>QLabel</class> | 118 | <class>QLabel</class> |
@@ -135,3 +120,3 @@ | |||
135 | <name>name</name> | 120 | <name>name</name> |
136 | <cstring>leaseObtainedLabel</cstring> | 121 | <cstring>ipAddressLabel</cstring> |
137 | </property> | 122 | </property> |
@@ -147,17 +132,6 @@ | |||
147 | <name>text</name> | 132 | <name>text</name> |
148 | <string></string> | 133 | <string>0.0.0.0</string> |
149 | </property> | ||
150 | </widget> | ||
151 | <widget row="7" column="0" > | ||
152 | <class>QLabel</class> | ||
153 | <property stdset="1"> | ||
154 | <name>name</name> | ||
155 | <cstring>TextLabel8</cstring> | ||
156 | </property> | ||
157 | <property stdset="1"> | ||
158 | <name>text</name> | ||
159 | <string>Lease Obtained</string> | ||
160 | </property> | 134 | </property> |
161 | </widget> | 135 | </widget> |
162 | <widget row="6" column="1" > | 136 | <widget row="4" column="1" > |
163 | <class>QLabel</class> | 137 | <class>QLabel</class> |
@@ -165,3 +139,3 @@ | |||
165 | <name>name</name> | 139 | <name>name</name> |
166 | <cstring>dhcpServerLabel</cstring> | 140 | <cstring>subnetMaskLabel</cstring> |
167 | </property> | 141 | </property> |
@@ -177,17 +151,6 @@ | |||
177 | <name>text</name> | 151 | <name>text</name> |
178 | <string>255.255.255.255</string> | 152 | <string>0.0.0.0</string> |
179 | </property> | ||
180 | </widget> | ||
181 | <widget row="6" column="0" > | ||
182 | <class>QLabel</class> | ||
183 | <property stdset="1"> | ||
184 | <name>name</name> | ||
185 | <cstring>TextLabel6</cstring> | ||
186 | </property> | ||
187 | <property stdset="1"> | ||
188 | <name>text</name> | ||
189 | <string>DHCP Server</string> | ||
190 | </property> | 153 | </property> |
191 | </widget> | 154 | </widget> |
192 | <widget row="4" column="0" > | 155 | <widget row="3" column="0" > |
193 | <class>QLabel</class> | 156 | <class>QLabel</class> |
@@ -195,3 +158,3 @@ | |||
195 | <name>name</name> | 158 | <name>name</name> |
196 | <cstring>TextLabel4</cstring> | 159 | <cstring>TextLabel2</cstring> |
197 | </property> | 160 | </property> |
@@ -199,6 +162,6 @@ | |||
199 | <name>text</name> | 162 | <name>text</name> |
200 | <string>Subnet Mask</string> | 163 | <string>Broadcast</string> |
201 | </property> | 164 | </property> |
202 | </widget> | 165 | </widget> |
203 | <widget row="2" column="1" > | 166 | <widget row="3" column="1" > |
204 | <class>QLabel</class> | 167 | <class>QLabel</class> |
@@ -206,3 +169,3 @@ | |||
206 | <name>name</name> | 169 | <name>name</name> |
207 | <cstring>ipAddressLabel</cstring> | 170 | <cstring>broadcastLabel</cstring> |
208 | </property> | 171 | </property> |
@@ -216,27 +179,115 @@ | |||
216 | </property> | 179 | </property> |
217 | <property stdset="1"> | ||
218 | <name>text</name> | ||
219 | <string>0.0.0.0</string> | ||
220 | </property> | ||
221 | </widget> | 180 | </widget> |
222 | <widget row="4" column="1" > | 181 | <widget row="5" column="0" rowspan="1" colspan="2" > |
223 | <class>QLabel</class> | 182 | <class>QGroupBox</class> |
224 | <property stdset="1"> | 183 | <property stdset="1"> |
225 | <name>name</name> | 184 | <name>name</name> |
226 | <cstring>subnetMaskLabel</cstring> | 185 | <cstring>GroupBox2</cstring> |
227 | </property> | 186 | </property> |
228 | <property stdset="1"> | 187 | <property stdset="1"> |
229 | <name>frameShape</name> | 188 | <name>title</name> |
230 | <enum>Panel</enum> | 189 | <string>DHCP Information</string> |
231 | </property> | 190 | </property> |
232 | <property stdset="1"> | 191 | <grid> |
233 | <name>frameShadow</name> | 192 | <property stdset="1"> |
234 | <enum>Sunken</enum> | 193 | <name>margin</name> |
235 | </property> | 194 | <number>11</number> |
236 | <property stdset="1"> | 195 | </property> |
237 | <name>text</name> | 196 | <property stdset="1"> |
238 | <string>0.0.0.0</string> | 197 | <name>spacing</name> |
239 | </property> | 198 | <number>6</number> |
199 | </property> | ||
200 | <widget row="0" column="0" > | ||
201 | <class>QLabel</class> | ||
202 | <property stdset="1"> | ||
203 | <name>name</name> | ||
204 | <cstring>TextLabel6</cstring> | ||
205 | </property> | ||
206 | <property stdset="1"> | ||
207 | <name>text</name> | ||
208 | <string>DHCP Server</string> | ||
209 | </property> | ||
210 | </widget> | ||
211 | <widget row="2" column="1" > | ||
212 | <class>QLabel</class> | ||
213 | <property stdset="1"> | ||
214 | <name>name</name> | ||
215 | <cstring>leaseExpiresLabel</cstring> | ||
216 | </property> | ||
217 | <property stdset="1"> | ||
218 | <name>frameShape</name> | ||
219 | <enum>Panel</enum> | ||
220 | </property> | ||
221 | <property stdset="1"> | ||
222 | <name>frameShadow</name> | ||
223 | <enum>Sunken</enum> | ||
224 | </property> | ||
225 | <property stdset="1"> | ||
226 | <name>text</name> | ||
227 | <string></string> | ||
228 | </property> | ||
229 | </widget> | ||
230 | <widget row="1" column="1" > | ||
231 | <class>QLabel</class> | ||
232 | <property stdset="1"> | ||
233 | <name>name</name> | ||
234 | <cstring>leaseObtainedLabel</cstring> | ||
235 | </property> | ||
236 | <property stdset="1"> | ||
237 | <name>frameShape</name> | ||
238 | <enum>Panel</enum> | ||
239 | </property> | ||
240 | <property stdset="1"> | ||
241 | <name>frameShadow</name> | ||
242 | <enum>Sunken</enum> | ||
243 | </property> | ||
244 | <property stdset="1"> | ||
245 | <name>text</name> | ||
246 | <string></string> | ||
247 | </property> | ||
248 | </widget> | ||
249 | <widget row="2" column="0" > | ||
250 | <class>QLabel</class> | ||
251 | <property stdset="1"> | ||
252 | <name>name</name> | ||
253 | <cstring>TextLabel9</cstring> | ||
254 | </property> | ||
255 | <property stdset="1"> | ||
256 | <name>text</name> | ||
257 | <string>Lease Expires</string> | ||
258 | </property> | ||
259 | </widget> | ||
260 | <widget row="1" column="0" > | ||
261 | <class>QLabel</class> | ||
262 | <property stdset="1"> | ||
263 | <name>name</name> | ||
264 | <cstring>TextLabel8</cstring> | ||
265 | </property> | ||
266 | <property stdset="1"> | ||
267 | <name>text</name> | ||
268 | <string>Lease Obtained</string> | ||
269 | </property> | ||
270 | </widget> | ||
271 | <widget row="0" column="1" > | ||
272 | <class>QLabel</class> | ||
273 | <property stdset="1"> | ||
274 | <name>name</name> | ||
275 | <cstring>dhcpServerLabel</cstring> | ||
276 | </property> | ||
277 | <property stdset="1"> | ||
278 | <name>frameShape</name> | ||
279 | <enum>Panel</enum> | ||
280 | </property> | ||
281 | <property stdset="1"> | ||
282 | <name>frameShadow</name> | ||
283 | <enum>Sunken</enum> | ||
284 | </property> | ||
285 | <property stdset="1"> | ||
286 | <name>text</name> | ||
287 | <string></string> | ||
288 | </property> | ||
289 | </widget> | ||
290 | </grid> | ||
240 | </widget> | 291 | </widget> |
241 | <spacer row="9" column="1" > | 292 | <spacer row="6" column="1" > |
242 | <property> | 293 | <property> |
@@ -261,39 +312,2 @@ | |||
261 | </spacer> | 312 | </spacer> |
262 | <widget row="3" column="0" > | ||
263 | <class>QLabel</class> | ||
264 | <property stdset="1"> | ||
265 | <name>name</name> | ||
266 | <cstring>TextLabel2</cstring> | ||
267 | </property> | ||
268 | <property stdset="1"> | ||
269 | <name>text</name> | ||
270 | <string>Broadcast</string> | ||
271 | </property> | ||
272 | </widget> | ||
273 | <widget row="3" column="1" > | ||
274 | <class>QLabel</class> | ||
275 | <property stdset="1"> | ||
276 | <name>name</name> | ||
277 | <cstring>broadcastLabel</cstring> | ||
278 | </property> | ||
279 | <property stdset="1"> | ||
280 | <name>frameShape</name> | ||
281 | <enum>Panel</enum> | ||
282 | </property> | ||
283 | <property stdset="1"> | ||
284 | <name>frameShadow</name> | ||
285 | <enum>Sunken</enum> | ||
286 | </property> | ||
287 | </widget> | ||
288 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
289 | <class>Line</class> | ||
290 | <property stdset="1"> | ||
291 | <name>name</name> | ||
292 | <cstring>Line2</cstring> | ||
293 | </property> | ||
294 | <property stdset="1"> | ||
295 | <name>orientation</name> | ||
296 | <enum>Horizontal</enum> | ||
297 | </property> | ||
298 | </widget> | ||
299 | </grid> | 313 | </grid> |
@@ -319,3 +333,3 @@ | |||
319 | <name>image0</name> | 333 | <name>image0</name> |
320 | <data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data> | 334 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> |
321 | </image> | 335 | </image> |
diff --git a/noncore/net/networksetup/interfaceinformation.ui b/noncore/net/networksetup/interfaceinformation.ui index 2a9b3fb..8b6280d 100644 --- a/noncore/net/networksetup/interfaceinformation.ui +++ b/noncore/net/networksetup/interfaceinformation.ui | |||
@@ -13,4 +13,4 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>191</width> | 14 | <width>203</width> |
15 | <height>241</height> | 15 | <height>244</height> |
16 | </rect> | 16 | </rect> |
@@ -102,72 +102,2 @@ | |||
102 | </widget> | 102 | </widget> |
103 | <spacer row="6" column="1" > | ||
104 | <property> | ||
105 | <name>name</name> | ||
106 | <cstring>Spacer18</cstring> | ||
107 | </property> | ||
108 | <property stdset="1"> | ||
109 | <name>orientation</name> | ||
110 | <enum>Vertical</enum> | ||
111 | </property> | ||
112 | <property stdset="1"> | ||
113 | <name>sizeType</name> | ||
114 | <enum>Expanding</enum> | ||
115 | </property> | ||
116 | <property> | ||
117 | <name>sizeHint</name> | ||
118 | <size> | ||
119 | <width>20</width> | ||
120 | <height>20</height> | ||
121 | </size> | ||
122 | </property> | ||
123 | </spacer> | ||
124 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
125 | <class>QLayoutWidget</class> | ||
126 | <property stdset="1"> | ||
127 | <name>name</name> | ||
128 | <cstring>Layout2</cstring> | ||
129 | </property> | ||
130 | <hbox> | ||
131 | <property stdset="1"> | ||
132 | <name>margin</name> | ||
133 | <number>0</number> | ||
134 | </property> | ||
135 | <property stdset="1"> | ||
136 | <name>spacing</name> | ||
137 | <number>6</number> | ||
138 | </property> | ||
139 | <spacer> | ||
140 | <property> | ||
141 | <name>name</name> | ||
142 | <cstring>Spacer10</cstring> | ||
143 | </property> | ||
144 | <property stdset="1"> | ||
145 | <name>orientation</name> | ||
146 | <enum>Horizontal</enum> | ||
147 | </property> | ||
148 | <property stdset="1"> | ||
149 | <name>sizeType</name> | ||
150 | <enum>Expanding</enum> | ||
151 | </property> | ||
152 | <property> | ||
153 | <name>sizeHint</name> | ||
154 | <size> | ||
155 | <width>20</width> | ||
156 | <height>20</height> | ||
157 | </size> | ||
158 | </property> | ||
159 | </spacer> | ||
160 | <widget> | ||
161 | <class>QPushButton</class> | ||
162 | <property stdset="1"> | ||
163 | <name>name</name> | ||
164 | <cstring>advancedButton</cstring> | ||
165 | </property> | ||
166 | <property stdset="1"> | ||
167 | <name>text</name> | ||
168 | <string>View Advanced Information</string> | ||
169 | </property> | ||
170 | </widget> | ||
171 | </hbox> | ||
172 | </widget> | ||
173 | <widget row="0" column="0" > | 103 | <widget row="0" column="0" > |
@@ -212,2 +142,10 @@ | |||
212 | <property stdset="1"> | 142 | <property stdset="1"> |
143 | <name>frameShape</name> | ||
144 | <enum>MShape</enum> | ||
145 | </property> | ||
146 | <property stdset="1"> | ||
147 | <name>frameShadow</name> | ||
148 | <enum>MShadow</enum> | ||
149 | </property> | ||
150 | <property stdset="1"> | ||
213 | <name>text</name> | 151 | <name>text</name> |
@@ -292,2 +230,83 @@ | |||
292 | </widget> | 230 | </widget> |
231 | <spacer row="7" column="1" > | ||
232 | <property> | ||
233 | <name>name</name> | ||
234 | <cstring>Spacer18</cstring> | ||
235 | </property> | ||
236 | <property stdset="1"> | ||
237 | <name>orientation</name> | ||
238 | <enum>Vertical</enum> | ||
239 | </property> | ||
240 | <property stdset="1"> | ||
241 | <name>sizeType</name> | ||
242 | <enum>Expanding</enum> | ||
243 | </property> | ||
244 | <property> | ||
245 | <name>sizeHint</name> | ||
246 | <size> | ||
247 | <width>20</width> | ||
248 | <height>20</height> | ||
249 | </size> | ||
250 | </property> | ||
251 | </spacer> | ||
252 | <widget row="6" column="0" rowspan="1" colspan="2" > | ||
253 | <class>QLayoutWidget</class> | ||
254 | <property stdset="1"> | ||
255 | <name>name</name> | ||
256 | <cstring>Layout2</cstring> | ||
257 | </property> | ||
258 | <hbox> | ||
259 | <property stdset="1"> | ||
260 | <name>margin</name> | ||
261 | <number>0</number> | ||
262 | </property> | ||
263 | <property stdset="1"> | ||
264 | <name>spacing</name> | ||
265 | <number>6</number> | ||
266 | </property> | ||
267 | <spacer> | ||
268 | <property> | ||
269 | <name>name</name> | ||
270 | <cstring>Spacer10</cstring> | ||
271 | </property> | ||
272 | <property stdset="1"> | ||
273 | <name>orientation</name> | ||
274 | <enum>Horizontal</enum> | ||
275 | </property> | ||
276 | <property stdset="1"> | ||
277 | <name>sizeType</name> | ||
278 | <enum>Expanding</enum> | ||
279 | </property> | ||
280 | <property> | ||
281 | <name>sizeHint</name> | ||
282 | <size> | ||
283 | <width>20</width> | ||
284 | <height>20</height> | ||
285 | </size> | ||
286 | </property> | ||
287 | </spacer> | ||
288 | <widget> | ||
289 | <class>QPushButton</class> | ||
290 | <property stdset="1"> | ||
291 | <name>name</name> | ||
292 | <cstring>advancedButton</cstring> | ||
293 | </property> | ||
294 | <property stdset="1"> | ||
295 | <name>text</name> | ||
296 | <string>View Advanced Information</string> | ||
297 | </property> | ||
298 | </widget> | ||
299 | </hbox> | ||
300 | </widget> | ||
301 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
302 | <class>Line</class> | ||
303 | <property stdset="1"> | ||
304 | <name>name</name> | ||
305 | <cstring>Line5</cstring> | ||
306 | </property> | ||
307 | <property stdset="1"> | ||
308 | <name>orientation</name> | ||
309 | <enum>Horizontal</enum> | ||
310 | </property> | ||
311 | </widget> | ||
293 | </grid> | 312 | </grid> |
@@ -316,2 +335,4 @@ | |||
316 | </images> | 335 | </images> |
336 | <connections> | ||
337 | </connections> | ||
317 | </UI> | 338 | </UI> |
diff --git a/noncore/net/networksetup/interfacesetup.ui b/noncore/net/networksetup/interfacesetup.ui index 698422c..ff9810e 100644 --- a/noncore/net/networksetup/interfacesetup.ui +++ b/noncore/net/networksetup/interfacesetup.ui | |||
@@ -13,4 +13,4 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>193</width> | 14 | <width>177</width> |
15 | <height>310</height> | 15 | <height>320</height> |
16 | </rect> | 16 | </rect> |
@@ -41,13 +41,2 @@ | |||
41 | </widget> | 41 | </widget> |
42 | <widget row="6" column="0" > | ||
43 | <class>QLabel</class> | ||
44 | <property stdset="1"> | ||
45 | <name>name</name> | ||
46 | <cstring>TextLabel4</cstring> | ||
47 | </property> | ||
48 | <property stdset="1"> | ||
49 | <name>text</name> | ||
50 | <string>IP Address</string> | ||
51 | </property> | ||
52 | </widget> | ||
53 | <widget row="0" column="0" rowspan="1" colspan="2" > | 42 | <widget row="0" column="0" rowspan="1" colspan="2" > |
@@ -76,24 +65,2 @@ | |||
76 | </widget> | 65 | </widget> |
77 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
78 | <class>QGroupBox</class> | ||
79 | <property stdset="1"> | ||
80 | <name>name</name> | ||
81 | <cstring>staticGroupBox</cstring> | ||
82 | </property> | ||
83 | <property stdset="1"> | ||
84 | <name>enabled</name> | ||
85 | <bool>false</bool> | ||
86 | </property> | ||
87 | <property stdset="1"> | ||
88 | <name>title</name> | ||
89 | <string>Static Ip Configuration</string> | ||
90 | </property> | ||
91 | </widget> | ||
92 | <widget row="6" column="1" > | ||
93 | <class>QLineEdit</class> | ||
94 | <property stdset="1"> | ||
95 | <name>name</name> | ||
96 | <cstring>ipAddressEdit</cstring> | ||
97 | </property> | ||
98 | </widget> | ||
99 | <widget row="4" column="0" > | 66 | <widget row="4" column="0" > |
@@ -124,13 +91,2 @@ | |||
124 | </widget> | 91 | </widget> |
125 | <widget row="7" column="0" > | ||
126 | <class>QLabel</class> | ||
127 | <property stdset="1"> | ||
128 | <name>name</name> | ||
129 | <cstring>TextLabel5</cstring> | ||
130 | </property> | ||
131 | <property stdset="1"> | ||
132 | <name>text</name> | ||
133 | <string>Subnet Mask</string> | ||
134 | </property> | ||
135 | </widget> | ||
136 | <widget row="2" column="0" > | 92 | <widget row="2" column="0" > |
@@ -169,3 +125,3 @@ | |||
169 | </widget> | 125 | </widget> |
170 | <spacer row="11" column="1" > | 126 | <spacer row="6" column="1" > |
171 | <property> | 127 | <property> |
@@ -190,62 +146,116 @@ | |||
190 | </spacer> | 146 | </spacer> |
191 | <widget row="10" column="1" > | 147 | <widget row="5" column="0" rowspan="1" colspan="2" > |
192 | <class>QLineEdit</class> | 148 | <class>QGroupBox</class> |
193 | <property stdset="1"> | ||
194 | <name>name</name> | ||
195 | <cstring>secondDNSLineEdit</cstring> | ||
196 | </property> | ||
197 | </widget> | ||
198 | <widget row="10" column="0" > | ||
199 | <class>QLabel</class> | ||
200 | <property stdset="1"> | ||
201 | <name>name</name> | ||
202 | <cstring>TextLabel3</cstring> | ||
203 | </property> | ||
204 | <property stdset="1"> | ||
205 | <name>text</name> | ||
206 | <string>Second DNS</string> | ||
207 | </property> | ||
208 | </widget> | ||
209 | <widget row="9" column="0" > | ||
210 | <class>QLabel</class> | ||
211 | <property stdset="1"> | ||
212 | <name>name</name> | ||
213 | <cstring>TextLabel2</cstring> | ||
214 | </property> | ||
215 | <property stdset="1"> | ||
216 | <name>text</name> | ||
217 | <string>First DNS</string> | ||
218 | </property> | ||
219 | </widget> | ||
220 | <widget row="9" column="1" > | ||
221 | <class>QLineEdit</class> | ||
222 | <property stdset="1"> | ||
223 | <name>name</name> | ||
224 | <cstring>firstDNSLineEdit</cstring> | ||
225 | </property> | ||
226 | </widget> | ||
227 | <widget row="8" column="0" > | ||
228 | <class>QLabel</class> | ||
229 | <property stdset="1"> | 149 | <property stdset="1"> |
230 | <name>name</name> | 150 | <name>name</name> |
231 | <cstring>TextLabel1_2</cstring> | 151 | <cstring>staticGroupBox</cstring> |
232 | </property> | ||
233 | <property stdset="1"> | ||
234 | <name>text</name> | ||
235 | <string>Gateway</string> | ||
236 | </property> | 152 | </property> |
237 | </widget> | ||
238 | <widget row="7" column="1" > | ||
239 | <class>QLineEdit</class> | ||
240 | <property stdset="1"> | 153 | <property stdset="1"> |
241 | <name>name</name> | 154 | <name>enabled</name> |
242 | <cstring>subnetMaskEdit</cstring> | 155 | <bool>false</bool> |
243 | </property> | 156 | </property> |
244 | </widget> | ||
245 | <widget row="8" column="1" > | ||
246 | <class>QLineEdit</class> | ||
247 | <property stdset="1"> | 157 | <property stdset="1"> |
248 | <name>name</name> | 158 | <name>title</name> |
249 | <cstring>gatewayEdit</cstring> | 159 | <string>Static Ip Configuration</string> |
250 | </property> | 160 | </property> |
161 | <grid> | ||
162 | <property stdset="1"> | ||
163 | <name>margin</name> | ||
164 | <number>11</number> | ||
165 | </property> | ||
166 | <property stdset="1"> | ||
167 | <name>spacing</name> | ||
168 | <number>6</number> | ||
169 | </property> | ||
170 | <widget row="3" column="1" > | ||
171 | <class>QLineEdit</class> | ||
172 | <property stdset="1"> | ||
173 | <name>name</name> | ||
174 | <cstring>firstDNSLineEdit</cstring> | ||
175 | </property> | ||
176 | </widget> | ||
177 | <widget row="1" column="0" > | ||
178 | <class>QLabel</class> | ||
179 | <property stdset="1"> | ||
180 | <name>name</name> | ||
181 | <cstring>TextLabel5</cstring> | ||
182 | </property> | ||
183 | <property stdset="1"> | ||
184 | <name>text</name> | ||
185 | <string>Subnet Mask</string> | ||
186 | </property> | ||
187 | </widget> | ||
188 | <widget row="2" column="1" > | ||
189 | <class>QLineEdit</class> | ||
190 | <property stdset="1"> | ||
191 | <name>name</name> | ||
192 | <cstring>gatewayEdit</cstring> | ||
193 | </property> | ||
194 | </widget> | ||
195 | <widget row="1" column="1" > | ||
196 | <class>QLineEdit</class> | ||
197 | <property stdset="1"> | ||
198 | <name>name</name> | ||
199 | <cstring>subnetMaskEdit</cstring> | ||
200 | </property> | ||
201 | </widget> | ||
202 | <widget row="0" column="1" > | ||
203 | <class>QLineEdit</class> | ||
204 | <property stdset="1"> | ||
205 | <name>name</name> | ||
206 | <cstring>ipAddressEdit</cstring> | ||
207 | </property> | ||
208 | </widget> | ||
209 | <widget row="3" column="0" > | ||
210 | <class>QLabel</class> | ||
211 | <property stdset="1"> | ||
212 | <name>name</name> | ||
213 | <cstring>TextLabel2</cstring> | ||
214 | </property> | ||
215 | <property stdset="1"> | ||
216 | <name>text</name> | ||
217 | <string>First DNS</string> | ||
218 | </property> | ||
219 | </widget> | ||
220 | <widget row="4" column="1" > | ||
221 | <class>QLineEdit</class> | ||
222 | <property stdset="1"> | ||
223 | <name>name</name> | ||
224 | <cstring>secondDNSLineEdit</cstring> | ||
225 | </property> | ||
226 | </widget> | ||
227 | <widget row="0" column="0" > | ||
228 | <class>QLabel</class> | ||
229 | <property stdset="1"> | ||
230 | <name>name</name> | ||
231 | <cstring>TextLabel4</cstring> | ||
232 | </property> | ||
233 | <property stdset="1"> | ||
234 | <name>text</name> | ||
235 | <string>IP Address</string> | ||
236 | </property> | ||
237 | </widget> | ||
238 | <widget row="2" column="0" > | ||
239 | <class>QLabel</class> | ||
240 | <property stdset="1"> | ||
241 | <name>name</name> | ||
242 | <cstring>TextLabel1_2</cstring> | ||
243 | </property> | ||
244 | <property stdset="1"> | ||
245 | <name>text</name> | ||
246 | <string>Gateway</string> | ||
247 | </property> | ||
248 | </widget> | ||
249 | <widget row="4" column="0" > | ||
250 | <class>QLabel</class> | ||
251 | <property stdset="1"> | ||
252 | <name>name</name> | ||
253 | <cstring>TextLabel3</cstring> | ||
254 | </property> | ||
255 | <property stdset="1"> | ||
256 | <name>text</name> | ||
257 | <string>Second DNS</string> | ||
258 | </property> | ||
259 | </widget> | ||
260 | </grid> | ||
251 | </widget> | 261 | </widget> |
diff --git a/noncore/net/networksetup/mainwindow.ui b/noncore/net/networksetup/mainwindow.ui index f7efe99..c1fa101 100644 --- a/noncore/net/networksetup/mainwindow.ui +++ b/noncore/net/networksetup/mainwindow.ui | |||
@@ -273,3 +273,3 @@ | |||
273 | <name>text</name> | 273 | <name>text</name> |
274 | <string>Set Current</string> | 274 | <string>&Set Current</string> |
275 | </property> | 275 | </property> |
diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp index 2f821a9..0f48a4b 100644 --- a/noncore/net/networksetup/mainwindowimp.cpp +++ b/noncore/net/networksetup/mainwindowimp.cpp | |||
@@ -4,3 +4,2 @@ | |||
4 | #include "interfacesetupimp.h" | 4 | #include "interfacesetupimp.h" |
5 | #include "interface.h" | ||
6 | #include "kprocess.h" | 5 | #include "kprocess.h" |
@@ -8,2 +7,3 @@ | |||
8 | 7 | ||
8 | |||
9 | #include <qpushbutton.h> | 9 | #include <qpushbutton.h> |
@@ -33,7 +33,2 @@ | |||
33 | 33 | ||
34 | #define NO_SELECT_ERROR_AND_RETURN { \ | ||
35 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); \ | ||
36 | return; \ | ||
37 | } | ||
38 | |||
39 | MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(parent, name, true) { | 34 | MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(parent, name, true) { |
@@ -83,2 +78,20 @@ MainWindowImp::~MainWindowImp(){ | |||
83 | void MainWindowImp::loadModules(QString path){ | 78 | void MainWindowImp::loadModules(QString path){ |
79 | qDebug(path.latin1()); | ||
80 | QDir d; | ||
81 | d.setPath(path); | ||
82 | if(!d.exists()){ | ||
83 | qDebug("MainWindowImp:: Path doesn't exists"); | ||
84 | return; | ||
85 | } | ||
86 | d.setFilter( QDir::Files | QDir::NoSymLinks ); | ||
87 | const QFileInfoList *list = d.entryInfoList(); | ||
88 | QFileInfoListIterator it( *list ); | ||
89 | QFileInfo *fi; | ||
90 | while ( (fi=it.current()) ) { | ||
91 | if(fi->fileName().contains(".so")){ | ||
92 | qDebug("Found"); | ||
93 | Module *foo = loadPlugin(path + "/" + fi->fileName()); | ||
94 | } | ||
95 | ++it; | ||
96 | } | ||
84 | } | 97 | } |
@@ -92,3 +105,3 @@ void MainWindowImp::loadModules(QString path){ | |||
92 | Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString){ | 105 | Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString){ |
93 | //qDebug(pluginFileName.latin1()); | 106 | qDebug(pluginFileName.latin1()); |
94 | QLibrary *lib = new QLibrary(pluginFileName); | 107 | QLibrary *lib = new QLibrary(pluginFileName); |
@@ -114,30 +127,2 @@ Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString) | |||
114 | 127 | ||
115 | /* | ||
116 | QList<QString> MainWindowImp::retrieveUnloadedPluginList(){ | ||
117 | QString DirStr = QDir::homeDirPath() + "/.networksetup/" ; | ||
118 | QString path = DirStr + "plugins"; | ||
119 | QDir d(path); | ||
120 | d.setFilter( QDir::Files | QDir::Hidden ); | ||
121 | |||
122 | QMap<QObject*, QLibrary*>::Iterator libraryIt; | ||
123 | QList<QString> rlist; | ||
124 | rlist.setAutoDelete(false); | ||
125 | |||
126 | const QFileInfoList *list = d.entryInfoList(); | ||
127 | QFileInfoListIterator it( *list ); | ||
128 | QFileInfo *fi; | ||
129 | while ( (fi=it.current()) ) { | ||
130 | if(fi->fileName().contains(".so")){ | ||
131 | for( libraryIt = libraries.begin(); libraryIt != libraries.end(); ++libraryIt ) | ||
132 | if((path + "/" + fi->fileName()) != (libraryIt.data())->library()){ | ||
133 | QString *s = new QString(path + "/" + fi->fileName()); | ||
134 | rlist.append(s); | ||
135 | } | ||
136 | } | ||
137 | ++it; | ||
138 | } | ||
139 | return rlist; | ||
140 | } | ||
141 | */ | ||
142 | |||
143 | /** | 128 | /** |
@@ -163,3 +148,6 @@ void MainWindowImp::removeClicked(){ | |||
163 | QListViewItem *item = serviceList->currentItem(); | 148 | QListViewItem *item = serviceList->currentItem(); |
164 | if(item == NULL) NO_SELECT_ERROR_AND_RETURN | 149 | if(item == NULL) { |
150 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); | ||
151 | return; | ||
152 | } | ||
165 | 153 | ||
@@ -180,3 +168,6 @@ void MainWindowImp::configureClicked(){ | |||
180 | QListViewItem *item = serviceList->currentItem(); | 168 | QListViewItem *item = serviceList->currentItem(); |
181 | if(item == NULL) NO_SELECT_ERROR_AND_RETURN | 169 | if(item == NULL){ |
170 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); | ||
171 | return; | ||
172 | } | ||
182 | 173 | ||
@@ -199,4 +190,7 @@ void MainWindowImp::informationClicked(){ | |||
199 | QListViewItem *item = serviceList->currentItem(); | 190 | QListViewItem *item = serviceList->currentItem(); |
200 | if(item == NULL)NO_SELECT_ERROR_AND_RETURN | 191 | if(item == NULL){ |
201 | 192 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); | |
193 | return; | ||
194 | } | ||
195 | |||
202 | if(modules.find(interfaceItems[item]) == modules.end()){ | 196 | if(modules.find(interfaceItems[item]) == modules.end()){ |
@@ -313,2 +307,6 @@ void MainWindowImp::updateInterface(Interface *i){ | |||
313 | typeName = "lo"; | 307 | typeName = "lo"; |
308 | if(i->getInterfaceName().contains("irda")) | ||
309 | typeName = "irda"; | ||
310 | if(i->getInterfaceName().contains("wlan")) | ||
311 | typeName = "wlan"; | ||
314 | QPixmap type = (Resource::loadPixmap(typeName)); | 312 | QPixmap type = (Resource::loadPixmap(typeName)); |
diff --git a/noncore/net/networksetup/module.h b/noncore/net/networksetup/module.h index f146d8c..13fd523 100644 --- a/noncore/net/networksetup/module.h +++ b/noncore/net/networksetup/module.h | |||
@@ -1,3 +1,3 @@ | |||
1 | #ifndef MODULE_H | 1 | #ifndef NETCONF_MODULE_H |
2 | #define MODULE_H | 2 | #define NETCONF_MODULE_H |
3 | 3 | ||
diff --git a/noncore/net/networksetup/networksetup.pro b/noncore/net/networksetup/networksetup.pro index 7d9918b..a01b050 100644 --- a/noncore/net/networksetup/networksetup.pro +++ b/noncore/net/networksetup/networksetup.pro | |||
@@ -5,4 +5,4 @@ HEADERS = mainwindowimp.h addserviceimp.h interface.h interfaceinformationimp.h | |||
5 | SOURCES = main.cpp mainwindowimp.cpp addserviceimp.cpp interface.cpp interfaceinformationimp.cpp interfacesetupimp.cpp kprocctrl.cpp kprocess.cpp interfaces.cpp | 5 | SOURCES = main.cpp mainwindowimp.cpp addserviceimp.cpp interface.cpp interfaceinformationimp.cpp interfacesetupimp.cpp kprocctrl.cpp kprocess.cpp interfaces.cpp |
6 | INCLUDEPATH+= $(QPEDIR)/include | 6 | #INCLUDEPATH+= $(QPEDIR)/include |
7 | DEPENDPATH+= $(QPEDIR)/include | 7 | #DEPENDPATH+= $(QPEDIR)/include |
8 | LIBS += -lqpe | 8 | LIBS += -lqpe |
diff --git a/noncore/settings/networksettings/interfaceadvanced.ui b/noncore/settings/networksettings/interfaceadvanced.ui index 8ef0b29..7520abe 100644 --- a/noncore/settings/networksettings/interfaceadvanced.ui +++ b/noncore/settings/networksettings/interfaceadvanced.ui | |||
@@ -13,4 +13,4 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>197</width> | 14 | <width>188</width> |
15 | <height>253</height> | 15 | <height>277</height> |
16 | </rect> | 16 | </rect> |
@@ -101,14 +101,3 @@ | |||
101 | </widget> | 101 | </widget> |
102 | <widget row="8" column="0" > | 102 | <widget row="4" column="0" > |
103 | <class>QLabel</class> | ||
104 | <property stdset="1"> | ||
105 | <name>name</name> | ||
106 | <cstring>TextLabel9</cstring> | ||
107 | </property> | ||
108 | <property stdset="1"> | ||
109 | <name>text</name> | ||
110 | <string>Lease Expires</string> | ||
111 | </property> | ||
112 | </widget> | ||
113 | <widget row="8" column="1" > | ||
114 | <class>QLabel</class> | 103 | <class>QLabel</class> |
@@ -116,11 +105,7 @@ | |||
116 | <name>name</name> | 105 | <name>name</name> |
117 | <cstring>leaseExpiresLabel</cstring> | 106 | <cstring>TextLabel4</cstring> |
118 | </property> | ||
119 | <property stdset="1"> | ||
120 | <name>frameShape</name> | ||
121 | <enum>Panel</enum> | ||
122 | </property> | 107 | </property> |
123 | <property stdset="1"> | 108 | <property stdset="1"> |
124 | <name>frameShadow</name> | 109 | <name>enabled</name> |
125 | <enum>Sunken</enum> | 110 | <bool>true</bool> |
126 | </property> | 111 | </property> |
@@ -128,6 +113,6 @@ | |||
128 | <name>text</name> | 113 | <name>text</name> |
129 | <string></string> | 114 | <string>Subnet Mask</string> |
130 | </property> | 115 | </property> |
131 | </widget> | 116 | </widget> |
132 | <widget row="7" column="1" > | 117 | <widget row="2" column="1" > |
133 | <class>QLabel</class> | 118 | <class>QLabel</class> |
@@ -135,3 +120,3 @@ | |||
135 | <name>name</name> | 120 | <name>name</name> |
136 | <cstring>leaseObtainedLabel</cstring> | 121 | <cstring>ipAddressLabel</cstring> |
137 | </property> | 122 | </property> |
@@ -147,17 +132,6 @@ | |||
147 | <name>text</name> | 132 | <name>text</name> |
148 | <string></string> | 133 | <string>0.0.0.0</string> |
149 | </property> | ||
150 | </widget> | ||
151 | <widget row="7" column="0" > | ||
152 | <class>QLabel</class> | ||
153 | <property stdset="1"> | ||
154 | <name>name</name> | ||
155 | <cstring>TextLabel8</cstring> | ||
156 | </property> | ||
157 | <property stdset="1"> | ||
158 | <name>text</name> | ||
159 | <string>Lease Obtained</string> | ||
160 | </property> | 134 | </property> |
161 | </widget> | 135 | </widget> |
162 | <widget row="6" column="1" > | 136 | <widget row="4" column="1" > |
163 | <class>QLabel</class> | 137 | <class>QLabel</class> |
@@ -165,3 +139,3 @@ | |||
165 | <name>name</name> | 139 | <name>name</name> |
166 | <cstring>dhcpServerLabel</cstring> | 140 | <cstring>subnetMaskLabel</cstring> |
167 | </property> | 141 | </property> |
@@ -177,17 +151,6 @@ | |||
177 | <name>text</name> | 151 | <name>text</name> |
178 | <string>255.255.255.255</string> | 152 | <string>0.0.0.0</string> |
179 | </property> | ||
180 | </widget> | ||
181 | <widget row="6" column="0" > | ||
182 | <class>QLabel</class> | ||
183 | <property stdset="1"> | ||
184 | <name>name</name> | ||
185 | <cstring>TextLabel6</cstring> | ||
186 | </property> | ||
187 | <property stdset="1"> | ||
188 | <name>text</name> | ||
189 | <string>DHCP Server</string> | ||
190 | </property> | 153 | </property> |
191 | </widget> | 154 | </widget> |
192 | <widget row="4" column="0" > | 155 | <widget row="3" column="0" > |
193 | <class>QLabel</class> | 156 | <class>QLabel</class> |
@@ -195,3 +158,3 @@ | |||
195 | <name>name</name> | 158 | <name>name</name> |
196 | <cstring>TextLabel4</cstring> | 159 | <cstring>TextLabel2</cstring> |
197 | </property> | 160 | </property> |
@@ -199,6 +162,6 @@ | |||
199 | <name>text</name> | 162 | <name>text</name> |
200 | <string>Subnet Mask</string> | 163 | <string>Broadcast</string> |
201 | </property> | 164 | </property> |
202 | </widget> | 165 | </widget> |
203 | <widget row="2" column="1" > | 166 | <widget row="3" column="1" > |
204 | <class>QLabel</class> | 167 | <class>QLabel</class> |
@@ -206,3 +169,3 @@ | |||
206 | <name>name</name> | 169 | <name>name</name> |
207 | <cstring>ipAddressLabel</cstring> | 170 | <cstring>broadcastLabel</cstring> |
208 | </property> | 171 | </property> |
@@ -216,27 +179,115 @@ | |||
216 | </property> | 179 | </property> |
217 | <property stdset="1"> | ||
218 | <name>text</name> | ||
219 | <string>0.0.0.0</string> | ||
220 | </property> | ||
221 | </widget> | 180 | </widget> |
222 | <widget row="4" column="1" > | 181 | <widget row="5" column="0" rowspan="1" colspan="2" > |
223 | <class>QLabel</class> | 182 | <class>QGroupBox</class> |
224 | <property stdset="1"> | 183 | <property stdset="1"> |
225 | <name>name</name> | 184 | <name>name</name> |
226 | <cstring>subnetMaskLabel</cstring> | 185 | <cstring>GroupBox2</cstring> |
227 | </property> | 186 | </property> |
228 | <property stdset="1"> | 187 | <property stdset="1"> |
229 | <name>frameShape</name> | 188 | <name>title</name> |
230 | <enum>Panel</enum> | 189 | <string>DHCP Information</string> |
231 | </property> | 190 | </property> |
232 | <property stdset="1"> | 191 | <grid> |
233 | <name>frameShadow</name> | 192 | <property stdset="1"> |
234 | <enum>Sunken</enum> | 193 | <name>margin</name> |
235 | </property> | 194 | <number>11</number> |
236 | <property stdset="1"> | 195 | </property> |
237 | <name>text</name> | 196 | <property stdset="1"> |
238 | <string>0.0.0.0</string> | 197 | <name>spacing</name> |
239 | </property> | 198 | <number>6</number> |
199 | </property> | ||
200 | <widget row="0" column="0" > | ||
201 | <class>QLabel</class> | ||
202 | <property stdset="1"> | ||
203 | <name>name</name> | ||
204 | <cstring>TextLabel6</cstring> | ||
205 | </property> | ||
206 | <property stdset="1"> | ||
207 | <name>text</name> | ||
208 | <string>DHCP Server</string> | ||
209 | </property> | ||
210 | </widget> | ||
211 | <widget row="2" column="1" > | ||
212 | <class>QLabel</class> | ||
213 | <property stdset="1"> | ||
214 | <name>name</name> | ||
215 | <cstring>leaseExpiresLabel</cstring> | ||
216 | </property> | ||
217 | <property stdset="1"> | ||
218 | <name>frameShape</name> | ||
219 | <enum>Panel</enum> | ||
220 | </property> | ||
221 | <property stdset="1"> | ||
222 | <name>frameShadow</name> | ||
223 | <enum>Sunken</enum> | ||
224 | </property> | ||
225 | <property stdset="1"> | ||
226 | <name>text</name> | ||
227 | <string></string> | ||
228 | </property> | ||
229 | </widget> | ||
230 | <widget row="1" column="1" > | ||
231 | <class>QLabel</class> | ||
232 | <property stdset="1"> | ||
233 | <name>name</name> | ||
234 | <cstring>leaseObtainedLabel</cstring> | ||
235 | </property> | ||
236 | <property stdset="1"> | ||
237 | <name>frameShape</name> | ||
238 | <enum>Panel</enum> | ||
239 | </property> | ||
240 | <property stdset="1"> | ||
241 | <name>frameShadow</name> | ||
242 | <enum>Sunken</enum> | ||
243 | </property> | ||
244 | <property stdset="1"> | ||
245 | <name>text</name> | ||
246 | <string></string> | ||
247 | </property> | ||
248 | </widget> | ||
249 | <widget row="2" column="0" > | ||
250 | <class>QLabel</class> | ||
251 | <property stdset="1"> | ||
252 | <name>name</name> | ||
253 | <cstring>TextLabel9</cstring> | ||
254 | </property> | ||
255 | <property stdset="1"> | ||
256 | <name>text</name> | ||
257 | <string>Lease Expires</string> | ||
258 | </property> | ||
259 | </widget> | ||
260 | <widget row="1" column="0" > | ||
261 | <class>QLabel</class> | ||
262 | <property stdset="1"> | ||
263 | <name>name</name> | ||
264 | <cstring>TextLabel8</cstring> | ||
265 | </property> | ||
266 | <property stdset="1"> | ||
267 | <name>text</name> | ||
268 | <string>Lease Obtained</string> | ||
269 | </property> | ||
270 | </widget> | ||
271 | <widget row="0" column="1" > | ||
272 | <class>QLabel</class> | ||
273 | <property stdset="1"> | ||
274 | <name>name</name> | ||
275 | <cstring>dhcpServerLabel</cstring> | ||
276 | </property> | ||
277 | <property stdset="1"> | ||
278 | <name>frameShape</name> | ||
279 | <enum>Panel</enum> | ||
280 | </property> | ||
281 | <property stdset="1"> | ||
282 | <name>frameShadow</name> | ||
283 | <enum>Sunken</enum> | ||
284 | </property> | ||
285 | <property stdset="1"> | ||
286 | <name>text</name> | ||
287 | <string></string> | ||
288 | </property> | ||
289 | </widget> | ||
290 | </grid> | ||
240 | </widget> | 291 | </widget> |
241 | <spacer row="9" column="1" > | 292 | <spacer row="6" column="1" > |
242 | <property> | 293 | <property> |
@@ -261,39 +312,2 @@ | |||
261 | </spacer> | 312 | </spacer> |
262 | <widget row="3" column="0" > | ||
263 | <class>QLabel</class> | ||
264 | <property stdset="1"> | ||
265 | <name>name</name> | ||
266 | <cstring>TextLabel2</cstring> | ||
267 | </property> | ||
268 | <property stdset="1"> | ||
269 | <name>text</name> | ||
270 | <string>Broadcast</string> | ||
271 | </property> | ||
272 | </widget> | ||
273 | <widget row="3" column="1" > | ||
274 | <class>QLabel</class> | ||
275 | <property stdset="1"> | ||
276 | <name>name</name> | ||
277 | <cstring>broadcastLabel</cstring> | ||
278 | </property> | ||
279 | <property stdset="1"> | ||
280 | <name>frameShape</name> | ||
281 | <enum>Panel</enum> | ||
282 | </property> | ||
283 | <property stdset="1"> | ||
284 | <name>frameShadow</name> | ||
285 | <enum>Sunken</enum> | ||
286 | </property> | ||
287 | </widget> | ||
288 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
289 | <class>Line</class> | ||
290 | <property stdset="1"> | ||
291 | <name>name</name> | ||
292 | <cstring>Line2</cstring> | ||
293 | </property> | ||
294 | <property stdset="1"> | ||
295 | <name>orientation</name> | ||
296 | <enum>Horizontal</enum> | ||
297 | </property> | ||
298 | </widget> | ||
299 | </grid> | 313 | </grid> |
@@ -319,3 +333,3 @@ | |||
319 | <name>image0</name> | 333 | <name>image0</name> |
320 | <data format="XPM.GZ" length="45">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523250004143a55a6b2e0026630c4f</data> | 334 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> |
321 | </image> | 335 | </image> |
diff --git a/noncore/settings/networksettings/interfaceinformation.ui b/noncore/settings/networksettings/interfaceinformation.ui index 2a9b3fb..8b6280d 100644 --- a/noncore/settings/networksettings/interfaceinformation.ui +++ b/noncore/settings/networksettings/interfaceinformation.ui | |||
@@ -13,4 +13,4 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>191</width> | 14 | <width>203</width> |
15 | <height>241</height> | 15 | <height>244</height> |
16 | </rect> | 16 | </rect> |
@@ -102,72 +102,2 @@ | |||
102 | </widget> | 102 | </widget> |
103 | <spacer row="6" column="1" > | ||
104 | <property> | ||
105 | <name>name</name> | ||
106 | <cstring>Spacer18</cstring> | ||
107 | </property> | ||
108 | <property stdset="1"> | ||
109 | <name>orientation</name> | ||
110 | <enum>Vertical</enum> | ||
111 | </property> | ||
112 | <property stdset="1"> | ||
113 | <name>sizeType</name> | ||
114 | <enum>Expanding</enum> | ||
115 | </property> | ||
116 | <property> | ||
117 | <name>sizeHint</name> | ||
118 | <size> | ||
119 | <width>20</width> | ||
120 | <height>20</height> | ||
121 | </size> | ||
122 | </property> | ||
123 | </spacer> | ||
124 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
125 | <class>QLayoutWidget</class> | ||
126 | <property stdset="1"> | ||
127 | <name>name</name> | ||
128 | <cstring>Layout2</cstring> | ||
129 | </property> | ||
130 | <hbox> | ||
131 | <property stdset="1"> | ||
132 | <name>margin</name> | ||
133 | <number>0</number> | ||
134 | </property> | ||
135 | <property stdset="1"> | ||
136 | <name>spacing</name> | ||
137 | <number>6</number> | ||
138 | </property> | ||
139 | <spacer> | ||
140 | <property> | ||
141 | <name>name</name> | ||
142 | <cstring>Spacer10</cstring> | ||
143 | </property> | ||
144 | <property stdset="1"> | ||
145 | <name>orientation</name> | ||
146 | <enum>Horizontal</enum> | ||
147 | </property> | ||
148 | <property stdset="1"> | ||
149 | <name>sizeType</name> | ||
150 | <enum>Expanding</enum> | ||
151 | </property> | ||
152 | <property> | ||
153 | <name>sizeHint</name> | ||
154 | <size> | ||
155 | <width>20</width> | ||
156 | <height>20</height> | ||
157 | </size> | ||
158 | </property> | ||
159 | </spacer> | ||
160 | <widget> | ||
161 | <class>QPushButton</class> | ||
162 | <property stdset="1"> | ||
163 | <name>name</name> | ||
164 | <cstring>advancedButton</cstring> | ||
165 | </property> | ||
166 | <property stdset="1"> | ||
167 | <name>text</name> | ||
168 | <string>View Advanced Information</string> | ||
169 | </property> | ||
170 | </widget> | ||
171 | </hbox> | ||
172 | </widget> | ||
173 | <widget row="0" column="0" > | 103 | <widget row="0" column="0" > |
@@ -212,2 +142,10 @@ | |||
212 | <property stdset="1"> | 142 | <property stdset="1"> |
143 | <name>frameShape</name> | ||
144 | <enum>MShape</enum> | ||
145 | </property> | ||
146 | <property stdset="1"> | ||
147 | <name>frameShadow</name> | ||
148 | <enum>MShadow</enum> | ||
149 | </property> | ||
150 | <property stdset="1"> | ||
213 | <name>text</name> | 151 | <name>text</name> |
@@ -292,2 +230,83 @@ | |||
292 | </widget> | 230 | </widget> |
231 | <spacer row="7" column="1" > | ||
232 | <property> | ||
233 | <name>name</name> | ||
234 | <cstring>Spacer18</cstring> | ||
235 | </property> | ||
236 | <property stdset="1"> | ||
237 | <name>orientation</name> | ||
238 | <enum>Vertical</enum> | ||
239 | </property> | ||
240 | <property stdset="1"> | ||
241 | <name>sizeType</name> | ||
242 | <enum>Expanding</enum> | ||
243 | </property> | ||
244 | <property> | ||
245 | <name>sizeHint</name> | ||
246 | <size> | ||
247 | <width>20</width> | ||
248 | <height>20</height> | ||
249 | </size> | ||
250 | </property> | ||
251 | </spacer> | ||
252 | <widget row="6" column="0" rowspan="1" colspan="2" > | ||
253 | <class>QLayoutWidget</class> | ||
254 | <property stdset="1"> | ||
255 | <name>name</name> | ||
256 | <cstring>Layout2</cstring> | ||
257 | </property> | ||
258 | <hbox> | ||
259 | <property stdset="1"> | ||
260 | <name>margin</name> | ||
261 | <number>0</number> | ||
262 | </property> | ||
263 | <property stdset="1"> | ||
264 | <name>spacing</name> | ||
265 | <number>6</number> | ||
266 | </property> | ||
267 | <spacer> | ||
268 | <property> | ||
269 | <name>name</name> | ||
270 | <cstring>Spacer10</cstring> | ||
271 | </property> | ||
272 | <property stdset="1"> | ||
273 | <name>orientation</name> | ||
274 | <enum>Horizontal</enum> | ||
275 | </property> | ||
276 | <property stdset="1"> | ||
277 | <name>sizeType</name> | ||
278 | <enum>Expanding</enum> | ||
279 | </property> | ||
280 | <property> | ||
281 | <name>sizeHint</name> | ||
282 | <size> | ||
283 | <width>20</width> | ||
284 | <height>20</height> | ||
285 | </size> | ||
286 | </property> | ||
287 | </spacer> | ||
288 | <widget> | ||
289 | <class>QPushButton</class> | ||
290 | <property stdset="1"> | ||
291 | <name>name</name> | ||
292 | <cstring>advancedButton</cstring> | ||
293 | </property> | ||
294 | <property stdset="1"> | ||
295 | <name>text</name> | ||
296 | <string>View Advanced Information</string> | ||
297 | </property> | ||
298 | </widget> | ||
299 | </hbox> | ||
300 | </widget> | ||
301 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
302 | <class>Line</class> | ||
303 | <property stdset="1"> | ||
304 | <name>name</name> | ||
305 | <cstring>Line5</cstring> | ||
306 | </property> | ||
307 | <property stdset="1"> | ||
308 | <name>orientation</name> | ||
309 | <enum>Horizontal</enum> | ||
310 | </property> | ||
311 | </widget> | ||
293 | </grid> | 312 | </grid> |
@@ -316,2 +335,4 @@ | |||
316 | </images> | 335 | </images> |
336 | <connections> | ||
337 | </connections> | ||
317 | </UI> | 338 | </UI> |
diff --git a/noncore/settings/networksettings/interfacesetup.ui b/noncore/settings/networksettings/interfacesetup.ui index 698422c..ff9810e 100644 --- a/noncore/settings/networksettings/interfacesetup.ui +++ b/noncore/settings/networksettings/interfacesetup.ui | |||
@@ -13,4 +13,4 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>193</width> | 14 | <width>177</width> |
15 | <height>310</height> | 15 | <height>320</height> |
16 | </rect> | 16 | </rect> |
@@ -41,13 +41,2 @@ | |||
41 | </widget> | 41 | </widget> |
42 | <widget row="6" column="0" > | ||
43 | <class>QLabel</class> | ||
44 | <property stdset="1"> | ||
45 | <name>name</name> | ||
46 | <cstring>TextLabel4</cstring> | ||
47 | </property> | ||
48 | <property stdset="1"> | ||
49 | <name>text</name> | ||
50 | <string>IP Address</string> | ||
51 | </property> | ||
52 | </widget> | ||
53 | <widget row="0" column="0" rowspan="1" colspan="2" > | 42 | <widget row="0" column="0" rowspan="1" colspan="2" > |
@@ -76,24 +65,2 @@ | |||
76 | </widget> | 65 | </widget> |
77 | <widget row="5" column="0" rowspan="1" colspan="2" > | ||
78 | <class>QGroupBox</class> | ||
79 | <property stdset="1"> | ||
80 | <name>name</name> | ||
81 | <cstring>staticGroupBox</cstring> | ||
82 | </property> | ||
83 | <property stdset="1"> | ||
84 | <name>enabled</name> | ||
85 | <bool>false</bool> | ||
86 | </property> | ||
87 | <property stdset="1"> | ||
88 | <name>title</name> | ||
89 | <string>Static Ip Configuration</string> | ||
90 | </property> | ||
91 | </widget> | ||
92 | <widget row="6" column="1" > | ||
93 | <class>QLineEdit</class> | ||
94 | <property stdset="1"> | ||
95 | <name>name</name> | ||
96 | <cstring>ipAddressEdit</cstring> | ||
97 | </property> | ||
98 | </widget> | ||
99 | <widget row="4" column="0" > | 66 | <widget row="4" column="0" > |
@@ -124,13 +91,2 @@ | |||
124 | </widget> | 91 | </widget> |
125 | <widget row="7" column="0" > | ||
126 | <class>QLabel</class> | ||
127 | <property stdset="1"> | ||
128 | <name>name</name> | ||
129 | <cstring>TextLabel5</cstring> | ||
130 | </property> | ||
131 | <property stdset="1"> | ||
132 | <name>text</name> | ||
133 | <string>Subnet Mask</string> | ||
134 | </property> | ||
135 | </widget> | ||
136 | <widget row="2" column="0" > | 92 | <widget row="2" column="0" > |
@@ -169,3 +125,3 @@ | |||
169 | </widget> | 125 | </widget> |
170 | <spacer row="11" column="1" > | 126 | <spacer row="6" column="1" > |
171 | <property> | 127 | <property> |
@@ -190,62 +146,116 @@ | |||
190 | </spacer> | 146 | </spacer> |
191 | <widget row="10" column="1" > | 147 | <widget row="5" column="0" rowspan="1" colspan="2" > |
192 | <class>QLineEdit</class> | 148 | <class>QGroupBox</class> |
193 | <property stdset="1"> | ||
194 | <name>name</name> | ||
195 | <cstring>secondDNSLineEdit</cstring> | ||
196 | </property> | ||
197 | </widget> | ||
198 | <widget row="10" column="0" > | ||
199 | <class>QLabel</class> | ||
200 | <property stdset="1"> | ||
201 | <name>name</name> | ||
202 | <cstring>TextLabel3</cstring> | ||
203 | </property> | ||
204 | <property stdset="1"> | ||
205 | <name>text</name> | ||
206 | <string>Second DNS</string> | ||
207 | </property> | ||
208 | </widget> | ||
209 | <widget row="9" column="0" > | ||
210 | <class>QLabel</class> | ||
211 | <property stdset="1"> | ||
212 | <name>name</name> | ||
213 | <cstring>TextLabel2</cstring> | ||
214 | </property> | ||
215 | <property stdset="1"> | ||
216 | <name>text</name> | ||
217 | <string>First DNS</string> | ||
218 | </property> | ||
219 | </widget> | ||
220 | <widget row="9" column="1" > | ||
221 | <class>QLineEdit</class> | ||
222 | <property stdset="1"> | ||
223 | <name>name</name> | ||
224 | <cstring>firstDNSLineEdit</cstring> | ||
225 | </property> | ||
226 | </widget> | ||
227 | <widget row="8" column="0" > | ||
228 | <class>QLabel</class> | ||
229 | <property stdset="1"> | 149 | <property stdset="1"> |
230 | <name>name</name> | 150 | <name>name</name> |
231 | <cstring>TextLabel1_2</cstring> | 151 | <cstring>staticGroupBox</cstring> |
232 | </property> | ||
233 | <property stdset="1"> | ||
234 | <name>text</name> | ||
235 | <string>Gateway</string> | ||
236 | </property> | 152 | </property> |
237 | </widget> | ||
238 | <widget row="7" column="1" > | ||
239 | <class>QLineEdit</class> | ||
240 | <property stdset="1"> | 153 | <property stdset="1"> |
241 | <name>name</name> | 154 | <name>enabled</name> |
242 | <cstring>subnetMaskEdit</cstring> | 155 | <bool>false</bool> |
243 | </property> | 156 | </property> |
244 | </widget> | ||
245 | <widget row="8" column="1" > | ||
246 | <class>QLineEdit</class> | ||
247 | <property stdset="1"> | 157 | <property stdset="1"> |
248 | <name>name</name> | 158 | <name>title</name> |
249 | <cstring>gatewayEdit</cstring> | 159 | <string>Static Ip Configuration</string> |
250 | </property> | 160 | </property> |
161 | <grid> | ||
162 | <property stdset="1"> | ||
163 | <name>margin</name> | ||
164 | <number>11</number> | ||
165 | </property> | ||
166 | <property stdset="1"> | ||
167 | <name>spacing</name> | ||
168 | <number>6</number> | ||
169 | </property> | ||
170 | <widget row="3" column="1" > | ||
171 | <class>QLineEdit</class> | ||
172 | <property stdset="1"> | ||
173 | <name>name</name> | ||
174 | <cstring>firstDNSLineEdit</cstring> | ||
175 | </property> | ||
176 | </widget> | ||
177 | <widget row="1" column="0" > | ||
178 | <class>QLabel</class> | ||
179 | <property stdset="1"> | ||
180 | <name>name</name> | ||
181 | <cstring>TextLabel5</cstring> | ||
182 | </property> | ||
183 | <property stdset="1"> | ||
184 | <name>text</name> | ||
185 | <string>Subnet Mask</string> | ||
186 | </property> | ||
187 | </widget> | ||
188 | <widget row="2" column="1" > | ||
189 | <class>QLineEdit</class> | ||
190 | <property stdset="1"> | ||
191 | <name>name</name> | ||
192 | <cstring>gatewayEdit</cstring> | ||
193 | </property> | ||
194 | </widget> | ||
195 | <widget row="1" column="1" > | ||
196 | <class>QLineEdit</class> | ||
197 | <property stdset="1"> | ||
198 | <name>name</name> | ||
199 | <cstring>subnetMaskEdit</cstring> | ||
200 | </property> | ||
201 | </widget> | ||
202 | <widget row="0" column="1" > | ||
203 | <class>QLineEdit</class> | ||
204 | <property stdset="1"> | ||
205 | <name>name</name> | ||
206 | <cstring>ipAddressEdit</cstring> | ||
207 | </property> | ||
208 | </widget> | ||
209 | <widget row="3" column="0" > | ||
210 | <class>QLabel</class> | ||
211 | <property stdset="1"> | ||
212 | <name>name</name> | ||
213 | <cstring>TextLabel2</cstring> | ||
214 | </property> | ||
215 | <property stdset="1"> | ||
216 | <name>text</name> | ||
217 | <string>First DNS</string> | ||
218 | </property> | ||
219 | </widget> | ||
220 | <widget row="4" column="1" > | ||
221 | <class>QLineEdit</class> | ||
222 | <property stdset="1"> | ||
223 | <name>name</name> | ||
224 | <cstring>secondDNSLineEdit</cstring> | ||
225 | </property> | ||
226 | </widget> | ||
227 | <widget row="0" column="0" > | ||
228 | <class>QLabel</class> | ||
229 | <property stdset="1"> | ||
230 | <name>name</name> | ||
231 | <cstring>TextLabel4</cstring> | ||
232 | </property> | ||
233 | <property stdset="1"> | ||
234 | <name>text</name> | ||
235 | <string>IP Address</string> | ||
236 | </property> | ||
237 | </widget> | ||
238 | <widget row="2" column="0" > | ||
239 | <class>QLabel</class> | ||
240 | <property stdset="1"> | ||
241 | <name>name</name> | ||
242 | <cstring>TextLabel1_2</cstring> | ||
243 | </property> | ||
244 | <property stdset="1"> | ||
245 | <name>text</name> | ||
246 | <string>Gateway</string> | ||
247 | </property> | ||
248 | </widget> | ||
249 | <widget row="4" column="0" > | ||
250 | <class>QLabel</class> | ||
251 | <property stdset="1"> | ||
252 | <name>name</name> | ||
253 | <cstring>TextLabel3</cstring> | ||
254 | </property> | ||
255 | <property stdset="1"> | ||
256 | <name>text</name> | ||
257 | <string>Second DNS</string> | ||
258 | </property> | ||
259 | </widget> | ||
260 | </grid> | ||
251 | </widget> | 261 | </widget> |
diff --git a/noncore/settings/networksettings/mainwindow.ui b/noncore/settings/networksettings/mainwindow.ui index f7efe99..c1fa101 100644 --- a/noncore/settings/networksettings/mainwindow.ui +++ b/noncore/settings/networksettings/mainwindow.ui | |||
@@ -273,3 +273,3 @@ | |||
273 | <name>text</name> | 273 | <name>text</name> |
274 | <string>Set Current</string> | 274 | <string>&Set Current</string> |
275 | </property> | 275 | </property> |
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 2f821a9..0f48a4b 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp | |||
@@ -4,3 +4,2 @@ | |||
4 | #include "interfacesetupimp.h" | 4 | #include "interfacesetupimp.h" |
5 | #include "interface.h" | ||
6 | #include "kprocess.h" | 5 | #include "kprocess.h" |
@@ -8,2 +7,3 @@ | |||
8 | 7 | ||
8 | |||
9 | #include <qpushbutton.h> | 9 | #include <qpushbutton.h> |
@@ -33,7 +33,2 @@ | |||
33 | 33 | ||
34 | #define NO_SELECT_ERROR_AND_RETURN { \ | ||
35 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); \ | ||
36 | return; \ | ||
37 | } | ||
38 | |||
39 | MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(parent, name, true) { | 34 | MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(parent, name, true) { |
@@ -83,2 +78,20 @@ MainWindowImp::~MainWindowImp(){ | |||
83 | void MainWindowImp::loadModules(QString path){ | 78 | void MainWindowImp::loadModules(QString path){ |
79 | qDebug(path.latin1()); | ||
80 | QDir d; | ||
81 | d.setPath(path); | ||
82 | if(!d.exists()){ | ||
83 | qDebug("MainWindowImp:: Path doesn't exists"); | ||
84 | return; | ||
85 | } | ||
86 | d.setFilter( QDir::Files | QDir::NoSymLinks ); | ||
87 | const QFileInfoList *list = d.entryInfoList(); | ||
88 | QFileInfoListIterator it( *list ); | ||
89 | QFileInfo *fi; | ||
90 | while ( (fi=it.current()) ) { | ||
91 | if(fi->fileName().contains(".so")){ | ||
92 | qDebug("Found"); | ||
93 | Module *foo = loadPlugin(path + "/" + fi->fileName()); | ||
94 | } | ||
95 | ++it; | ||
96 | } | ||
84 | } | 97 | } |
@@ -92,3 +105,3 @@ void MainWindowImp::loadModules(QString path){ | |||
92 | Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString){ | 105 | Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString){ |
93 | //qDebug(pluginFileName.latin1()); | 106 | qDebug(pluginFileName.latin1()); |
94 | QLibrary *lib = new QLibrary(pluginFileName); | 107 | QLibrary *lib = new QLibrary(pluginFileName); |
@@ -114,30 +127,2 @@ Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString) | |||
114 | 127 | ||
115 | /* | ||
116 | QList<QString> MainWindowImp::retrieveUnloadedPluginList(){ | ||
117 | QString DirStr = QDir::homeDirPath() + "/.networksetup/" ; | ||
118 | QString path = DirStr + "plugins"; | ||
119 | QDir d(path); | ||
120 | d.setFilter( QDir::Files | QDir::Hidden ); | ||
121 | |||
122 | QMap<QObject*, QLibrary*>::Iterator libraryIt; | ||
123 | QList<QString> rlist; | ||
124 | rlist.setAutoDelete(false); | ||
125 | |||
126 | const QFileInfoList *list = d.entryInfoList(); | ||
127 | QFileInfoListIterator it( *list ); | ||
128 | QFileInfo *fi; | ||
129 | while ( (fi=it.current()) ) { | ||
130 | if(fi->fileName().contains(".so")){ | ||
131 | for( libraryIt = libraries.begin(); libraryIt != libraries.end(); ++libraryIt ) | ||
132 | if((path + "/" + fi->fileName()) != (libraryIt.data())->library()){ | ||
133 | QString *s = new QString(path + "/" + fi->fileName()); | ||
134 | rlist.append(s); | ||
135 | } | ||
136 | } | ||
137 | ++it; | ||
138 | } | ||
139 | return rlist; | ||
140 | } | ||
141 | */ | ||
142 | |||
143 | /** | 128 | /** |
@@ -163,3 +148,6 @@ void MainWindowImp::removeClicked(){ | |||
163 | QListViewItem *item = serviceList->currentItem(); | 148 | QListViewItem *item = serviceList->currentItem(); |
164 | if(item == NULL) NO_SELECT_ERROR_AND_RETURN | 149 | if(item == NULL) { |
150 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); | ||
151 | return; | ||
152 | } | ||
165 | 153 | ||
@@ -180,3 +168,6 @@ void MainWindowImp::configureClicked(){ | |||
180 | QListViewItem *item = serviceList->currentItem(); | 168 | QListViewItem *item = serviceList->currentItem(); |
181 | if(item == NULL) NO_SELECT_ERROR_AND_RETURN | 169 | if(item == NULL){ |
170 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); | ||
171 | return; | ||
172 | } | ||
182 | 173 | ||
@@ -199,4 +190,7 @@ void MainWindowImp::informationClicked(){ | |||
199 | QListViewItem *item = serviceList->currentItem(); | 190 | QListViewItem *item = serviceList->currentItem(); |
200 | if(item == NULL)NO_SELECT_ERROR_AND_RETURN | 191 | if(item == NULL){ |
201 | 192 | QMessageBox::information(this, "Error","Please select an interface.", "Ok"); | |
193 | return; | ||
194 | } | ||
195 | |||
202 | if(modules.find(interfaceItems[item]) == modules.end()){ | 196 | if(modules.find(interfaceItems[item]) == modules.end()){ |
@@ -313,2 +307,6 @@ void MainWindowImp::updateInterface(Interface *i){ | |||
313 | typeName = "lo"; | 307 | typeName = "lo"; |
308 | if(i->getInterfaceName().contains("irda")) | ||
309 | typeName = "irda"; | ||
310 | if(i->getInterfaceName().contains("wlan")) | ||
311 | typeName = "wlan"; | ||
314 | QPixmap type = (Resource::loadPixmap(typeName)); | 312 | QPixmap type = (Resource::loadPixmap(typeName)); |
diff --git a/noncore/settings/networksettings/module.h b/noncore/settings/networksettings/module.h index f146d8c..13fd523 100644 --- a/noncore/settings/networksettings/module.h +++ b/noncore/settings/networksettings/module.h | |||
@@ -1,3 +1,3 @@ | |||
1 | #ifndef MODULE_H | 1 | #ifndef NETCONF_MODULE_H |
2 | #define MODULE_H | 2 | #define NETCONF_MODULE_H |
3 | 3 | ||
diff --git a/noncore/settings/networksettings/networksetup.pro b/noncore/settings/networksettings/networksetup.pro index 7d9918b..a01b050 100644 --- a/noncore/settings/networksettings/networksetup.pro +++ b/noncore/settings/networksettings/networksetup.pro | |||
@@ -5,4 +5,4 @@ HEADERS = mainwindowimp.h addserviceimp.h interface.h interfaceinformationimp.h | |||
5 | SOURCES = main.cpp mainwindowimp.cpp addserviceimp.cpp interface.cpp interfaceinformationimp.cpp interfacesetupimp.cpp kprocctrl.cpp kprocess.cpp interfaces.cpp | 5 | SOURCES = main.cpp mainwindowimp.cpp addserviceimp.cpp interface.cpp interfaceinformationimp.cpp interfacesetupimp.cpp kprocctrl.cpp kprocess.cpp interfaces.cpp |
6 | INCLUDEPATH+= $(QPEDIR)/include | 6 | #INCLUDEPATH+= $(QPEDIR)/include |
7 | DEPENDPATH+= $(QPEDIR)/include | 7 | #DEPENDPATH+= $(QPEDIR)/include |
8 | LIBS += -lqpe | 8 | LIBS += -lqpe |