author | wimpie <wimpie> | 2005-01-12 02:21:58 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-12 02:21:58 (UTC) |
commit | 551fd59bc878f0f95aac939a5a9fdedd14707d17 (patch) (unidiff) | |
tree | af49b228e04da59895ad77ae691ce9f900ef3d83 | |
parent | c48160f6ac67b2f2fc4b6f982b641861ad078237 (diff) | |
download | opie-551fd59bc878f0f95aac939a5a9fdedd14707d17.zip opie-551fd59bc878f0f95aac939a5a9fdedd14707d17.tar.gz opie-551fd59bc878f0f95aac939a5a9fdedd14707d17.tar.bz2 |
Fixed problem with selection of lowest node level
-rw-r--r-- | noncore/settings/networksettings2/editconnection.cpp | 24 | ||||
-rw-r--r-- | noncore/settings/networksettings2/wlan/wlanGUI.ui | 244 |
2 files changed, 173 insertions, 95 deletions
diff --git a/noncore/settings/networksettings2/editconnection.cpp b/noncore/settings/networksettings2/editconnection.cpp index bda9d7e..a9bef65 100644 --- a/noncore/settings/networksettings2/editconnection.cpp +++ b/noncore/settings/networksettings2/editconnection.cpp | |||
@@ -1,640 +1,646 @@ | |||
1 | #include <opie2/odebug.h> | 1 | #include <opie2/odebug.h> |
2 | #include <qlistview.h> | 2 | #include <qlistview.h> |
3 | #include <qwidgetstack.h> | 3 | #include <qwidgetstack.h> |
4 | #include <qframe.h> | 4 | #include <qframe.h> |
5 | #include <qcombobox.h> | 5 | #include <qcombobox.h> |
6 | #include <qtabwidget.h> | 6 | #include <qtabwidget.h> |
7 | #include <qmessagebox.h> | 7 | #include <qmessagebox.h> |
8 | #include <qpushbutton.h> | 8 | #include <qpushbutton.h> |
9 | #include <qlineedit.h> | 9 | #include <qlineedit.h> |
10 | #include <qheader.h> | 10 | #include <qheader.h> |
11 | #include <qpainter.h> | 11 | #include <qpainter.h> |
12 | #include <qcheckbox.h> | 12 | #include <qcheckbox.h> |
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | 14 | ||
15 | #include "editconnection.h" | 15 | #include "editconnection.h" |
16 | #include "resources.h" | 16 | #include "resources.h" |
17 | #include "netnode.h" | 17 | #include "netnode.h" |
18 | 18 | ||
19 | // | 19 | // |
20 | // | 20 | // |
21 | // THESE TO GIVE BETTER FEEDBACK ABOUT DISABLED ITEMS | 21 | // THESE TO GIVE BETTER FEEDBACK ABOUT DISABLED ITEMS |
22 | // | 22 | // |
23 | // | 23 | // |
24 | 24 | ||
25 | class MyQCheckListItem : public QCheckListItem | 25 | class MyQCheckListItem : public QCheckListItem |
26 | { | 26 | { |
27 | public: | 27 | public: |
28 | MyQCheckListItem( QListView *parent, const QString & S, Type T ) : | 28 | MyQCheckListItem( QListView *parent, const QString & S, Type T ) : |
29 | QCheckListItem( parent, S, T ) { } | 29 | QCheckListItem( parent, S, T ) { } |
30 | MyQCheckListItem( QCheckListItem *parent, const QString & S, Type T ) : | 30 | MyQCheckListItem( QCheckListItem *parent, const QString & S, Type T ) : |
31 | QCheckListItem( parent, S, T ) { } | 31 | QCheckListItem( parent, S, T ) { } |
32 | MyQCheckListItem( QListViewItem *parent, const QString & S, Type T ) : | 32 | MyQCheckListItem( QListViewItem *parent, const QString & S, Type T ) : |
33 | QCheckListItem( parent, S, T ) { } | 33 | QCheckListItem( parent, S, T ) { } |
34 | 34 | ||
35 | MyQCheckListItem( QListView *parent, const QString & S ) : | 35 | MyQCheckListItem( QListView *parent, const QString & S ) : |
36 | QCheckListItem( parent, S, QCheckListItem::Controller ) { } | 36 | QCheckListItem( parent, S, QCheckListItem::Controller ) { } |
37 | MyQCheckListItem( QCheckListItem *parent, const QString & S ) : | 37 | MyQCheckListItem( QCheckListItem *parent, const QString & S ) : |
38 | QCheckListItem( parent, S, QCheckListItem::Controller ) { } | 38 | QCheckListItem( parent, S, QCheckListItem::Controller ) { } |
39 | MyQCheckListItem( QListViewItem *parent, const QString & S ) : | 39 | MyQCheckListItem( QListViewItem *parent, const QString & S ) : |
40 | QCheckListItem( parent, S, QCheckListItem::Controller ) { } | 40 | QCheckListItem( parent, S, QCheckListItem::Controller ) { } |
41 | 41 | ||
42 | virtual void paintCell( QPainter *p, const QColorGroup &cg, | 42 | virtual void paintCell( QPainter *p, const QColorGroup &cg, |
43 | int column, int width, int alignment ); | 43 | int column, int width, int alignment ); |
44 | 44 | ||
45 | }; | 45 | }; |
46 | 46 | ||
47 | void MyQCheckListItem::paintCell( QPainter *p, const QColorGroup &cg, | 47 | void MyQCheckListItem::paintCell( QPainter *p, const QColorGroup &cg, |
48 | int column, int width, int alignment ) | 48 | int column, int width, int alignment ) |
49 | { | 49 | { |
50 | QColorGroup _cg( cg ); | 50 | QColorGroup _cg( cg ); |
51 | QColor c = _cg.text(); | 51 | QColor c = _cg.text(); |
52 | if ( ! isSelectable() ) | 52 | if ( ! isSelectable() ) |
53 | _cg.setColor( QColorGroup::Text, Qt::lightGray ); | 53 | _cg.setColor( QColorGroup::Text, Qt::lightGray ); |
54 | QCheckListItem::paintCell( p, _cg, column, width, alignment ); | 54 | QCheckListItem::paintCell( p, _cg, column, width, alignment ); |
55 | _cg.setColor( QColorGroup::Text, c ); | 55 | _cg.setColor( QColorGroup::Text, c ); |
56 | } | 56 | } |
57 | 57 | ||
58 | class MyQListViewItem : public QListViewItem | 58 | class MyQListViewItem : public QListViewItem |
59 | { | 59 | { |
60 | public: | 60 | public: |
61 | MyQListViewItem( QListView *parent, const QString & S ) : | 61 | MyQListViewItem( QListView *parent, const QString & S ) : |
62 | QListViewItem( parent, S ) { } | 62 | QListViewItem( parent, S ) { } |
63 | MyQListViewItem( QListViewItem *parent, const QString & S ) : | 63 | MyQListViewItem( QListViewItem *parent, const QString & S ) : |
64 | QListViewItem( parent, S ) { } | 64 | QListViewItem( parent, S ) { } |
65 | 65 | ||
66 | virtual void paintCell( QPainter *p, const QColorGroup &cg, | 66 | virtual void paintCell( QPainter *p, const QColorGroup &cg, |
67 | int column, int width, int alignment ); | 67 | int column, int width, int alignment ); |
68 | 68 | ||
69 | }; | 69 | }; |
70 | 70 | ||
71 | void MyQListViewItem::paintCell( QPainter *p, const QColorGroup &cg, | 71 | void MyQListViewItem::paintCell( QPainter *p, const QColorGroup &cg, |
72 | int column, int width, int alignment ) | 72 | int column, int width, int alignment ) |
73 | { | 73 | { |
74 | QColorGroup _cg( cg ); | 74 | QColorGroup _cg( cg ); |
75 | QColor c = _cg.text(); | 75 | QColor c = _cg.text(); |
76 | if ( ! isSelectable() ) | 76 | if ( ! isSelectable() ) |
77 | _cg.setColor( QColorGroup::Text, Qt::lightGray ); | 77 | _cg.setColor( QColorGroup::Text, Qt::lightGray ); |
78 | QListViewItem::paintCell( p, _cg, column, width, alignment ); | 78 | QListViewItem::paintCell( p, _cg, column, width, alignment ); |
79 | _cg.setColor( QColorGroup::Text, c ); | 79 | _cg.setColor( QColorGroup::Text, c ); |
80 | } | 80 | } |
81 | 81 | ||
82 | // | 82 | // |
83 | // | 83 | // |
84 | // REAL GUI | 84 | // REAL GUI |
85 | // | 85 | // |
86 | // | 86 | // |
87 | 87 | ||
88 | bool EditNetworkSetup::AutoCollapse = 1; | 88 | bool EditNetworkSetup::AutoCollapse = 1; |
89 | 89 | ||
90 | EditNetworkSetup::EditNetworkSetup( QWidget* parent ) : | 90 | EditNetworkSetup::EditNetworkSetup( QWidget* parent ) : |
91 | EditNetworkSetupGUI( parent, 0, TRUE ), TmpCollection() { | 91 | EditNetworkSetupGUI( parent, 0, TRUE ), TmpCollection() { |
92 | 92 | ||
93 | Tab_TB->setTabEnabled( Setup_FRM, FALSE ); | 93 | Tab_TB->setTabEnabled( Setup_FRM, FALSE ); |
94 | Setup_FRM->setEnabled( FALSE ); | 94 | Setup_FRM->setEnabled( FALSE ); |
95 | 95 | ||
96 | TmpIsValid = 0; | 96 | TmpIsValid = 0; |
97 | SelectedNodes = 0; | 97 | SelectedNodes = 0; |
98 | 98 | ||
99 | AutoCollapse_CB->setChecked( AutoCollapse ); | 99 | AutoCollapse_CB->setChecked( AutoCollapse ); |
100 | 100 | ||
101 | Mapping = new QPtrDict<ANetNode>; | 101 | Mapping = new QPtrDict<ANetNode>; |
102 | Mapping->setAutoDelete( FALSE ); | 102 | Mapping->setAutoDelete( FALSE ); |
103 | Nodes_LV->header()->hide(); | 103 | Nodes_LV->header()->hide(); |
104 | // popluate tree with all NetNodes | 104 | // popluate tree with all NetNodes |
105 | buildFullTree(); | 105 | buildFullTree(); |
106 | } | 106 | } |
107 | 107 | ||
108 | NetworkSetup * EditNetworkSetup::getTmpCollection( void ) { | 108 | NetworkSetup * EditNetworkSetup::getTmpCollection( void ) { |
109 | 109 | ||
110 | if( TmpIsValid ) | 110 | if( TmpIsValid ) |
111 | // content is stil OK | 111 | // content is stil OK |
112 | return &(TmpCollection); | 112 | return &(TmpCollection); |
113 | 113 | ||
114 | // reset collection -> delete all NEW NetNodes | 114 | // reset collection -> delete all NEW NetNodes |
115 | for( QListIterator<ANetNodeInstance> it(TmpCollection); | 115 | for( QListIterator<ANetNodeInstance> it(TmpCollection); |
116 | it.current(); | 116 | it.current(); |
117 | ++it ) { | 117 | ++it ) { |
118 | if( it.current()->isNew() ) { | 118 | if( it.current()->isNew() ) { |
119 | delete it.current(); | 119 | delete it.current(); |
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | TmpCollection.clear(); | 123 | TmpCollection.clear(); |
124 | if( SelectedNodes ) { | 124 | if( SelectedNodes ) { |
125 | // initialize like original | 125 | // initialize like original |
126 | TmpCollection.copyFrom( *SelectedNodes ); | 126 | TmpCollection.copyFrom( *SelectedNodes ); |
127 | } | 127 | } |
128 | 128 | ||
129 | // update content | 129 | // update content |
130 | QListViewItem * it = Nodes_LV->firstChild(); | 130 | QListViewItem * it = Nodes_LV->firstChild(); |
131 | ANetNode * NN; | 131 | ANetNode * NN; |
132 | 132 | ||
133 | // start iter (if there is a collection) | 133 | // start iter (if there is a collection) |
134 | /* | 134 | /* |
135 | 135 | ||
136 | a node collection is sorted from the toplevel | 136 | a node collection is sorted from the toplevel |
137 | node to the deepest node | 137 | node to the deepest node |
138 | 138 | ||
139 | */ | 139 | */ |
140 | ANetNodeInstance * NNI = | 140 | ANetNodeInstance * NNI = |
141 | (SelectedNodes) ? SelectedNodes->first() : 0 ; | 141 | (SelectedNodes) ? SelectedNodes->first() : 0 ; |
142 | 142 | ||
143 | TmpCollection.setModified( 0 ); | 143 | TmpCollection.setModified( 0 ); |
144 | 144 | ||
145 | // the listview always starts with the toplevel | 145 | // the listview always starts with the toplevel |
146 | // hierarchy. This is always a controller item | 146 | // hierarchy. This is always a controller item |
147 | while ( it ) { | 147 | while ( it ) { |
148 | NN = (*Mapping)[it]; | 148 | NN = (*Mapping)[it]; |
149 | if( NN == 0 ) { | 149 | if( NN == 0 ) { |
150 | // this item is a controller -> | 150 | // this item is a controller -> |
151 | // has radio items as children -> | 151 | // has radio items as children -> |
152 | // find selected one | 152 | // find selected one |
153 | it = it->firstChild(); | 153 | it = it->firstChild(); |
154 | while( it ) { | 154 | while( it ) { |
155 | if( ((QCheckListItem *)it)->isOn() ) { | 155 | if( ((QCheckListItem *)it)->isOn() ) { |
156 | // this radio is selected -> go deeper | 156 | // this radio is selected -> go deeper |
157 | break; | 157 | break; |
158 | } | 158 | } |
159 | it = it->nextSibling(); | 159 | it = it->nextSibling(); |
160 | } | 160 | } |
161 | 161 | ||
162 | if( ! it ) { | 162 | if( ! it ) { |
163 | TmpIsValid = 0; | 163 | TmpIsValid = 0; |
164 | return 0; | 164 | return 0; |
165 | } | 165 | } |
166 | 166 | ||
167 | // it now contains selected radio | 167 | // it now contains selected radio |
168 | NN = (*Mapping)[it]; | 168 | NN = (*Mapping)[it]; |
169 | } | 169 | } |
170 | 170 | ||
171 | // NN here contains the netnode of the | 171 | // NN here contains the netnode of the |
172 | // current item -> this node needs to | 172 | // current item -> this node needs to |
173 | // be stored in the collection | 173 | // be stored in the collection |
174 | if( NNI == 0 || | 174 | if( NNI == 0 || |
175 | it->text(0) != NNI->nodeClass()->name() ) { | 175 | it->text(0) != NNI->nodeClass()->name() ) { |
176 | // new item not in previous collection | 176 | // new item not in previous collection |
177 | ANetNodeInstance * NNI = NN->createInstance(); | 177 | ANetNodeInstance * NNI = NN->createInstance(); |
178 | NNI->initialize(); | 178 | NNI->initialize(); |
179 | // this node type not in collection | 179 | // this node type not in collection |
180 | TmpCollection.append( NNI ); | 180 | TmpCollection.append( NNI ); |
181 | // master collection changed because new item in it | 181 | // master collection changed because new item in it |
182 | TmpCollection.setModified( 1 ); | 182 | TmpCollection.setModified( 1 ); |
183 | // no more valid items in old list | 183 | // no more valid items in old list |
184 | NNI = 0; | 184 | NNI = 0; |
185 | } else { | 185 | } else { |
186 | // already in list -> copy pointer | 186 | // already in list -> copy pointer |
187 | TmpCollection.append( NNI ); | 187 | TmpCollection.append( NNI ); |
188 | NNI = SelectedNodes->next(); | 188 | NNI = SelectedNodes->next(); |
189 | } | 189 | } |
190 | 190 | ||
191 | // go deeper to next level | 191 | // go deeper to next level |
192 | // this level is can be a new controller | 192 | // this level is can be a new controller |
193 | // or an item | 193 | // or an item |
194 | it = it->firstChild(); | 194 | it = it->firstChild(); |
195 | } | 195 | } |
196 | 196 | ||
197 | TmpIsValid = 1; | 197 | TmpIsValid = 1; |
198 | return &(TmpCollection); | 198 | return &(TmpCollection); |
199 | } | 199 | } |
200 | 200 | ||
201 | // pass a NetworkSetup NetworkSetup to be edited | 201 | // pass a NetworkSetup NetworkSetup to be edited |
202 | void EditNetworkSetup::setNetworkSetup( NetworkSetup * NC ) { | 202 | void EditNetworkSetup::setNetworkSetup( NetworkSetup * NC ) { |
203 | ANetNodeInstance * NNI; | 203 | ANetNodeInstance * NNI; |
204 | ANetNode * NN; | 204 | ANetNode * NN; |
205 | 205 | ||
206 | SelectedNodes = NC; | 206 | SelectedNodes = NC; |
207 | Name_LE->setText( NC->name() ); | 207 | Name_LE->setText( NC->name() ); |
208 | NNI = NC->first(); | 208 | NNI = NC->first(); |
209 | 209 | ||
210 | // show configure tabl | 210 | // show configure tabl |
211 | Tab_TB->setCurrentPage( 1 ); | 211 | Tab_TB->setCurrentPage( 1 ); |
212 | 212 | ||
213 | // valid colledction | 213 | // valid colledction |
214 | Tab_TB->setTabEnabled( Setup_FRM, FALSE ); | 214 | Tab_TB->setTabEnabled( Setup_FRM, FALSE ); |
215 | Setup_FRM->setEnabled( FALSE ); | 215 | Setup_FRM->setEnabled( FALSE ); |
216 | 216 | ||
217 | // select items in collection | 217 | // select items in collection |
218 | QListViewItem * it = Nodes_LV->firstChild(); | 218 | QListViewItem * it = Nodes_LV->firstChild(); |
219 | bool Found; | 219 | bool Found; |
220 | 220 | ||
221 | TmpIsValid = 0; | 221 | TmpIsValid = 0; |
222 | 222 | ||
223 | while ( it ) { | 223 | while ( it ) { |
224 | NN = (*Mapping)[it]; | 224 | NN = (*Mapping)[it]; |
225 | if( NN == 0 ) { | 225 | if( NN == 0 ) { |
226 | // this item is a controller -> | 226 | // this item is a controller -> |
227 | // has radio items as children -> | 227 | // has radio items as children -> |
228 | // find selected one | 228 | // find selected one |
229 | it = it->firstChild(); | 229 | it = it->firstChild(); |
230 | Found = 0; | 230 | Found = 0; |
231 | while( it ) { | 231 | while( it ) { |
232 | if( NNI && it->text(0) == NNI->nodeClass()->name() ) { | 232 | if( NNI && it->text(0) == NNI->nodeClass()->name() ) { |
233 | // this radio is part of the collection | 233 | // this radio is part of the collection |
234 | ((QCheckListItem *)it)->setOn( 1 ); | 234 | ((QCheckListItem *)it)->setOn( 1 ); |
235 | updateGUI( it, NNI->nodeClass() ); | 235 | updateGUI( it, NNI->nodeClass() ); |
236 | // check its children | 236 | // check its children |
237 | Found = 1; | 237 | Found = 1; |
238 | it = it->firstChild(); | 238 | it = it->firstChild(); |
239 | NNI = SelectedNodes->next(); | 239 | NNI = SelectedNodes->next(); |
240 | // do not bother to check other items | 240 | // do not bother to check other items |
241 | break; | 241 | break; |
242 | } | 242 | } |
243 | it = it->nextSibling(); | 243 | it = it->nextSibling(); |
244 | } | 244 | } |
245 | 245 | ||
246 | if( ! Found ) { | 246 | if( ! Found ) { |
247 | // this means that this level is NOT present in collection | 247 | // this means that this level is NOT present in collection |
248 | // probably INCOMPATIBEL collection OR Missing plugin | 248 | // probably INCOMPATIBEL collection OR Missing plugin |
249 | QMessageBox::warning( | 249 | QMessageBox::warning( |
250 | 0, | 250 | 0, |
251 | tr( "Error presentig NetworkSetup" ), | 251 | tr( "Error presentig NetworkSetup" ), |
252 | tr( "<p>Old NetworkSetup or missing plugin \"<i>%1</i>\"</p>" ). | 252 | tr( "<p>Old NetworkSetup or missing plugin \"<i>%1</i>\"</p>" ). |
253 | arg(NNI->nodeClass()->name()) ); | 253 | arg(NNI->nodeClass()->name()) ); |
254 | return; | 254 | return; |
255 | } | 255 | } |
256 | 256 | ||
257 | // it now contains selected radio | 257 | // it now contains selected radio |
258 | NN = (*Mapping)[it]; | 258 | NN = (*Mapping)[it]; |
259 | } else { | 259 | } else { |
260 | // automatic selection | 260 | // automatic selection |
261 | if( NNI == 0 || it->text(0) != NNI->nodeClass()->name() ) { | 261 | if( NNI == 0 || it->text(0) != NNI->nodeClass()->name() ) { |
262 | // should exist and be the same | 262 | // should exist and be the same |
263 | if( NNI ) { | 263 | if( NNI ) { |
264 | QMessageBox::warning( | 264 | QMessageBox::warning( |
265 | 0, | 265 | 0, |
266 | tr( "Error presentig NetworkSetup" ), | 266 | tr( "Error presentig NetworkSetup" ), |
267 | tr( "<p>Old NetworkSetup or missing plugin \"<i>%1</i>\"</p>" ). | 267 | tr( "<p>Old NetworkSetup or missing plugin \"<i>%1</i>\"</p>" ). |
268 | arg(NNI->nodeClass()->name()) ); | 268 | arg(NNI->nodeClass()->name()) ); |
269 | } else { | 269 | } else { |
270 | QMessageBox::warning( | 270 | QMessageBox::warning( |
271 | 0, | 271 | 0, |
272 | tr( "Error presentig NetworkSetup" ), | 272 | tr( "Error presentig NetworkSetup" ), |
273 | tr( "<p>Missing NetworkSetup\"<i>%1</i>\"</p>" ). | 273 | tr( "<p>Missing NetworkSetup\"<i>%1</i>\"</p>" ). |
274 | arg(it->text(0)) ); | 274 | arg(it->text(0)) ); |
275 | } | 275 | } |
276 | return; | 276 | return; |
277 | } | 277 | } |
278 | it = it->firstChild(); | 278 | it = it->firstChild(); |
279 | } | 279 | } |
280 | } | 280 | } |
281 | } | 281 | } |
282 | 282 | ||
283 | // get result of editing (either new OR updated collection | 283 | // get result of editing (either new OR updated collection |
284 | NetworkSetup * EditNetworkSetup::networkSetup( void ) { | 284 | NetworkSetup * EditNetworkSetup::networkSetup( void ) { |
285 | 285 | ||
286 | if( SelectedNodes == 0 ) { | 286 | if( SelectedNodes == 0 ) { |
287 | // new collection | 287 | // new collection |
288 | SelectedNodes = new NetworkSetup; | 288 | SelectedNodes = new NetworkSetup; |
289 | } | 289 | } |
290 | 290 | ||
291 | // clean out old entries | 291 | // clean out old entries |
292 | SelectedNodes->clear(); | 292 | SelectedNodes->clear(); |
293 | 293 | ||
294 | // transfer | 294 | // transfer |
295 | for( QListIterator<ANetNodeInstance> it(TmpCollection); | 295 | for( QListIterator<ANetNodeInstance> it(TmpCollection); |
296 | it.current(); | 296 | it.current(); |
297 | ++it ) { | 297 | ++it ) { |
298 | SelectedNodes->append( it.current() ); | 298 | SelectedNodes->append( it.current() ); |
299 | } | 299 | } |
300 | 300 | ||
301 | if( TmpCollection.isModified() ) | 301 | if( TmpCollection.isModified() ) |
302 | SelectedNodes->setModified( 1 ); | 302 | SelectedNodes->setModified( 1 ); |
303 | 303 | ||
304 | if( SelectedNodes->name() != Name_LE->text() ) { | 304 | if( SelectedNodes->name() != Name_LE->text() ) { |
305 | SelectedNodes->setName( Name_LE->text() ); | 305 | SelectedNodes->setName( Name_LE->text() ); |
306 | SelectedNodes->setModified( 1 ); | 306 | SelectedNodes->setModified( 1 ); |
307 | } | 307 | } |
308 | 308 | ||
309 | return SelectedNodes; | 309 | return SelectedNodes; |
310 | } | 310 | } |
311 | 311 | ||
312 | // Build device tree -> start | 312 | // Build device tree -> start |
313 | void EditNetworkSetup::buildFullTree( void ) { | 313 | void EditNetworkSetup::buildFullTree( void ) { |
314 | ANetNode * NN; | 314 | ANetNode * NN; |
315 | 315 | ||
316 | // toplevel item | 316 | // toplevel item |
317 | MyQCheckListItem * TheTop = new MyQCheckListItem( | 317 | MyQCheckListItem * TheTop = new MyQCheckListItem( |
318 | Nodes_LV, | 318 | Nodes_LV, |
319 | NSResources->netNode2Name("fullsetup"), | 319 | NSResources->netNode2Name("fullsetup"), |
320 | QCheckListItem::Controller ); | 320 | QCheckListItem::Controller ); |
321 | TheTop->setOpen( TRUE ); | 321 | TheTop->setOpen( TRUE ); |
322 | Description_LBL->setText( | 322 | Description_LBL->setText( |
323 | NSResources->netNode2Description( "fullsetup" ) ); | 323 | NSResources->netNode2Description( "fullsetup" ) ); |
324 | Nodes_LV->setSelected( TheTop, TRUE ); | 324 | Nodes_LV->setSelected( TheTop, TRUE ); |
325 | 325 | ||
326 | // find all Nodes that are toplevel nodes -> ie provide | 326 | // find all Nodes that are toplevel nodes -> ie provide |
327 | // TCP/IP NetworkSetup | 327 | // TCP/IP NetworkSetup |
328 | for( QDictIterator<ANetNode> Iter(NSResources->netNodes()); | 328 | for( QDictIterator<ANetNode> Iter(NSResources->netNodes()); |
329 | Iter.current(); | 329 | Iter.current(); |
330 | ++Iter ) { | 330 | ++Iter ) { |
331 | NN = Iter.current(); | 331 | NN = Iter.current(); |
332 | 332 | ||
333 | if( ! NN->isToplevel() ) { | 333 | if( ! NN->isToplevel() ) { |
334 | continue; | 334 | continue; |
335 | } | 335 | } |
336 | 336 | ||
337 | MyQCheckListItem * it = new MyQCheckListItem( TheTop, | 337 | MyQCheckListItem * it = new MyQCheckListItem( TheTop, |
338 | NN->name(), | 338 | NN->name(), |
339 | QCheckListItem::RadioButton ); | 339 | QCheckListItem::RadioButton ); |
340 | it->setPixmap( 0, | 340 | it->setPixmap( 0, |
341 | NSResources->getPixmap( NN->pixmapName() ) | 341 | NSResources->getPixmap( NN->pixmapName() ) |
342 | ); | 342 | ); |
343 | // remember that this node maps to this listitem | 343 | // remember that this node maps to this listitem |
344 | Mapping->insert( it, NN ); | 344 | Mapping->insert( it, NN ); |
345 | buildSubTree( it, NN ); | 345 | buildSubTree( it, NN ); |
346 | } | 346 | } |
347 | } | 347 | } |
348 | 348 | ||
349 | // Build device tree -> help function | 349 | // Build device tree -> help function |
350 | void EditNetworkSetup::buildSubTree( QListViewItem * it, ANetNode *NN ) { | 350 | void EditNetworkSetup::buildSubTree( QListViewItem * it, ANetNode *NN ) { |
351 | ANetNode::NetNodeList & NNL = NN->alternatives(); | 351 | ANetNode::NetNodeList & NNL = NN->alternatives(); |
352 | 352 | ||
353 | if( NNL.size() > 1 ) { | 353 | if( NNL.size() > 1 ) { |
354 | // this node has alternatives -> needs radio buttons | 354 | // this node has alternatives -> needs radio buttons |
355 | it = new MyQCheckListItem( | 355 | it = new MyQCheckListItem( |
356 | it, | 356 | it, |
357 | NSResources->netNode2Name(NN->needs()[0]), | 357 | NSResources->netNode2Name(NN->needs()[0]), |
358 | QCheckListItem::Controller ); | 358 | QCheckListItem::Controller ); |
359 | it->setSelectable( FALSE ); | 359 | it->setSelectable( FALSE ); |
360 | } | 360 | } |
361 | 361 | ||
362 | for ( unsigned int i=0; i < NNL.size(); i++ ) { | 362 | for ( unsigned int i=0; i < NNL.size(); i++ ) { |
363 | QListViewItem * CI; | 363 | QListViewItem * CI; |
364 | if( NNL.size() > 1 ) { | 364 | if( NNL.size() > 1 ) { |
365 | // generate radio buttons | 365 | // generate radio buttons |
366 | CI = new MyQCheckListItem( | 366 | CI = new MyQCheckListItem( |
367 | (QCheckListItem *)it, | 367 | (QCheckListItem *)it, |
368 | NNL[i]->name(), QCheckListItem::RadioButton ); | 368 | NNL[i]->name(), QCheckListItem::RadioButton ); |
369 | // remember that this node maps to this listitem | 369 | // remember that this node maps to this listitem |
370 | CI->setPixmap( 0, NSResources->getPixmap( NNL[i]->pixmapName() ) ); | 370 | CI->setPixmap( 0, NSResources->getPixmap( NNL[i]->pixmapName() ) ); |
371 | Mapping->insert( CI, NNL[i] ); | 371 | Mapping->insert( CI, NNL[i] ); |
372 | CI->setSelectable( FALSE ); | 372 | CI->setSelectable( FALSE ); |
373 | } else { | 373 | } else { |
374 | // Single item | 374 | // Single item |
375 | CI = new MyQListViewItem( it, NNL[i]->name() ); | 375 | CI = new MyQListViewItem( it, NNL[i]->name() ); |
376 | // remember that this node maps to this listitem | 376 | // remember that this node maps to this listitem |
377 | Mapping->insert( CI, NNL[i] ); | 377 | Mapping->insert( CI, NNL[i] ); |
378 | CI->setSelectable( FALSE ); | 378 | CI->setSelectable( FALSE ); |
379 | CI->setPixmap( 0, NSResources->getPixmap( NNL[i]->pixmapName() ) ); | 379 | CI->setPixmap( 0, NSResources->getPixmap( NNL[i]->pixmapName() ) ); |
380 | } | 380 | } |
381 | buildSubTree( CI, NNL[i] ); | 381 | buildSubTree( CI, NNL[i] ); |
382 | } | 382 | } |
383 | } | 383 | } |
384 | 384 | ||
385 | // Clicked ok OK button | 385 | // Clicked ok OK button |
386 | void EditNetworkSetup::accept( void ) { | 386 | void EditNetworkSetup::accept( void ) { |
387 | if( ! haveCompleteConfig( 0 ) || Name_LE->text().isEmpty() ) { | 387 | if( ! haveCompleteConfig( 0 ) || Name_LE->text().isEmpty() ) { |
388 | QMessageBox::warning( | 388 | QMessageBox::warning( |
389 | 0, | 389 | 0, |
390 | tr( "Closing NetworkSetup Setup" ), | 390 | tr( "Closing NetworkSetup Setup" ), |
391 | tr( "Definition not complete or no name" ) ); | 391 | tr( "Definition not complete or no name" ) ); |
392 | return; | 392 | return; |
393 | } | 393 | } |
394 | 394 | ||
395 | // check if all devices have acceptable input | 395 | // check if all devices have acceptable input |
396 | getTmpCollection(); | 396 | getTmpCollection(); |
397 | { ANetNodeInstance * NNI; | 397 | { ANetNodeInstance * NNI; |
398 | QString S; | 398 | QString S; |
399 | 399 | ||
400 | for( QListIterator<ANetNodeInstance> it(TmpCollection); | 400 | for( QListIterator<ANetNodeInstance> it(TmpCollection); |
401 | it.current(); | 401 | it.current(); |
402 | ++it ) { | 402 | ++it ) { |
403 | NNI = it.current(); | 403 | NNI = it.current(); |
404 | // widget must show its own problems | 404 | // widget must show its own problems |
405 | S = NNI->acceptable(); | 405 | S = NNI->acceptable(); |
406 | if( ! S.isEmpty() ) { | 406 | if( ! S.isEmpty() ) { |
407 | QMessageBox::warning( | 407 | QMessageBox::warning( |
408 | 0, | 408 | 0, |
409 | tr( "Cannot save" ), | 409 | tr( "Cannot save" ), |
410 | S ); | 410 | S ); |
411 | return; | 411 | return; |
412 | } | 412 | } |
413 | NNI->commit(); | 413 | NNI->commit(); |
414 | 414 | ||
415 | if( NNI->isModified() ) { | 415 | if( NNI->isModified() ) { |
416 | TmpCollection.setModified( 1 ); | 416 | TmpCollection.setModified( 1 ); |
417 | // commit the data | 417 | // commit the data |
418 | } | 418 | } |
419 | } | 419 | } |
420 | } | 420 | } |
421 | 421 | ||
422 | QDialog::accept(); | 422 | QDialog::accept(); |
423 | } | 423 | } |
424 | 424 | ||
425 | // triggered by CB | 425 | // triggered by CB |
426 | void EditNetworkSetup::SLOT_AutoCollapse( bool b ) { | 426 | void EditNetworkSetup::SLOT_AutoCollapse( bool b ) { |
427 | AutoCollapse = b; | 427 | AutoCollapse = b; |
428 | } | 428 | } |
429 | 429 | ||
430 | // clicked on node in tree -> update GUI | 430 | // clicked on node in tree -> update GUI |
431 | void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) { | 431 | void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) { |
432 | ANetNode * NN; | 432 | ANetNode * NN; |
433 | if( it == 0 || it->depth() == 0 ) { | 433 | if( it == 0 || it->depth() == 0 ) { |
434 | Description_LBL->setText( | 434 | Description_LBL->setText( |
435 | NSResources->netNode2Description( "fullsetup" ) ); | 435 | NSResources->netNode2Description( "fullsetup" ) ); |
436 | // topevel or no selection | 436 | // topevel or no selection |
437 | return; | 437 | return; |
438 | } | 438 | } |
439 | 439 | ||
440 | // store conversion from lvitem to node | 440 | // store conversion from lvitem to node |
441 | NN = (*Mapping)[ it ]; | 441 | NN = (*Mapping)[ it ]; |
442 | 442 | ||
443 | if( ! NN ) { | 443 | if( ! NN ) { |
444 | // intermediate node | 444 | // intermediate (controller) node |
445 | NN = (*Mapping)[ it->parent() ]; | 445 | NN = (*Mapping)[ it->parent() ]; |
446 | if( NN ) { | 446 | if( NN ) { |
447 | // figure out type of this node -> produce mesage | 447 | // figure out type of this node -> produce message |
448 | Description_LBL->setText( NSResources->netNode2Description( | 448 | Description_LBL->setText( NSResources->netNode2Description( |
449 | NN->needs()[0]) ); | 449 | NN->needs()[0]) ); |
450 | } else { | 450 | } else { |
451 | Description_LBL->setText( "" ); | 451 | Description_LBL->setText( "" ); |
452 | } | 452 | } |
453 | return; | 453 | return; |
454 | } | 454 | } |
455 | 455 | ||
456 | // clicked on regular node | ||
456 | Description_LBL->setText( NN->nodeDescription() ); | 457 | Description_LBL->setText( NN->nodeDescription() ); |
457 | 458 | ||
458 | if( ! it->isSelectable() ) { | 459 | if( ! it->isSelectable() ) { |
459 | return; | 460 | return; |
460 | } | 461 | } |
461 | 462 | ||
462 | ANetNode::NetNodeList & NNL = NN->alternatives(); | 463 | ANetNode::NetNodeList & NNL = NN->alternatives(); |
463 | 464 | ||
464 | if( NNL.size() != 1 ) { | 465 | if( NNL.size() == 0 ) { |
465 | if( NNL.size() == 0 || | 466 | // this item has no alternatives -> end node |
466 | ! ((MyQCheckListItem *)it)->isOn() | 467 | TmpIsValid = 0; |
467 | ) { | 468 | updateGUI( it, NN ); |
468 | // not clicked on Check or Radio item | 469 | return; |
469 | return; | 470 | } |
470 | } | 471 | |
472 | if( ! ((MyQCheckListItem *)it)->isOn() ) { | ||
473 | // not clicked on Check or Radio item | ||
474 | return; | ||
471 | } | 475 | } |
472 | 476 | ||
473 | // item has really changed -> update | 477 | // item has really changed -> update |
474 | TmpIsValid = 0; | 478 | TmpIsValid = 0; |
475 | updateGUI( it, NN ); | 479 | updateGUI( it, NN ); |
476 | } | 480 | } |
477 | 481 | ||
478 | // cliecked on TAB to go to setup | 482 | // cliecked on TAB to go to setup |
479 | void EditNetworkSetup::SLOT_AlterTab( const QString & S ) { | 483 | void EditNetworkSetup::SLOT_AlterTab( const QString & S ) { |
480 | if( S == tr( "Setup" ) && Setup_FRM->isEnabled() ) { | 484 | if( S == tr( "Setup" ) && Setup_FRM->isEnabled() ) { |
481 | // switched to setup -> update CB and populate ws with | 485 | // switched to setup -> update CB and populate ws with |
482 | // forms for devices | 486 | // forms for devices |
483 | 487 | ||
484 | if( ! TmpIsValid ) { | 488 | if( ! TmpIsValid ) { |
485 | getTmpCollection(); | 489 | getTmpCollection(); |
486 | 490 | ||
487 | // clear CB and Ws | 491 | // clear CB and Ws |
488 | { QWidget * W; | 492 | { QWidget * W; |
489 | int i = 0; | 493 | int i = 0; |
490 | 494 | ||
491 | Devices_CB->clear(); | 495 | Devices_CB->clear(); |
492 | while( ( W = Setup_WS->widget( i ) ) ) { | 496 | while( ( W = Setup_WS->widget( i ) ) ) { |
493 | Setup_WS->removeWidget( W ); | 497 | Setup_WS->removeWidget( W ); |
494 | i ++; | 498 | i ++; |
495 | } | 499 | } |
496 | } | 500 | } |
497 | 501 | ||
498 | // update CB | 502 | // update CB |
499 | // and populate WidgetStack | 503 | // and populate WidgetStack |
500 | { ANetNodeInstance * NNI; | 504 | { ANetNodeInstance * NNI; |
501 | QListIterator<ANetNodeInstance> it(TmpCollection); | 505 | QListIterator<ANetNodeInstance> it(TmpCollection); |
502 | int i = 0; | 506 | int i = 0; |
503 | QWidget * W; | 507 | QWidget * W; |
504 | 508 | ||
505 | for ( ; it.current(); ++it ) { | 509 | for ( ; it.current(); ++it ) { |
506 | NNI = it.current(); | 510 | NNI = it.current(); |
507 | Devices_CB->insertItem( | 511 | Devices_CB->insertItem( |
508 | NSResources->getPixmap( NNI->nodeClass()->pixmapName() ), | 512 | NSResources->getPixmap( NNI->nodeClass()->pixmapName() ), |
509 | NNI->nodeClass()->name() | 513 | NNI->nodeClass()->name() |
510 | ); | 514 | ); |
511 | 515 | ||
512 | // add edit widget | 516 | // add edit widget |
513 | W = NNI->edit( Setup_WS ); | 517 | W = NNI->edit( Setup_WS ); |
514 | if( ! W) { | 518 | if( ! W) { |
515 | W = new QLabel( Setup_WS, | 519 | W = new QLabel( Setup_WS, |
516 | tr("No configuration required")); | 520 | tr("No configuration required")); |
517 | } | 521 | } |
518 | Setup_WS->addWidget( W , i ); | 522 | Setup_WS->addWidget( W , i ); |
519 | i ++; | 523 | i ++; |
520 | } | 524 | } |
521 | } | 525 | } |
522 | Setup_WS->raiseWidget( 0 ); | 526 | Setup_WS->raiseWidget( 0 ); |
523 | } // still valid | 527 | } // still valid |
524 | } | 528 | } |
525 | } | 529 | } |
526 | 530 | ||
527 | // update visual feedback of selection state | 531 | // update visual feedback of selection state |
528 | void EditNetworkSetup::updateGUI( QListViewItem * it, ANetNode * NN ) { | 532 | void EditNetworkSetup::updateGUI( QListViewItem * it, ANetNode * NN ) { |
529 | 533 | ||
530 | bool HCC = haveCompleteConfig( it ); | 534 | bool HCC = haveCompleteConfig( it ); |
531 | Tab_TB->setTabEnabled( Setup_FRM, HCC ); | 535 | Tab_TB->setTabEnabled( Setup_FRM, HCC ); |
536 | Log(( "COMPLETE CONFIG %d\n", HCC )); | ||
532 | Setup_FRM->setEnabled( HCC ); | 537 | Setup_FRM->setEnabled( HCC ); |
533 | 538 | ||
534 | // disable children of all siblings at same level | 539 | // disable children of all siblings at same level |
535 | QListViewItem * Sbl = it->parent()->firstChild(); | 540 | QListViewItem * Sbl = it->parent()->firstChild(); |
536 | while( Sbl ) { | 541 | while( Sbl ) { |
537 | if ( Sbl != it ) { | 542 | if ( Sbl != it ) { |
538 | disableTree( Sbl->firstChild(), FALSE ); | 543 | disableTree( Sbl->firstChild(), FALSE ); |
539 | Sbl->setSelectable( TRUE ); | 544 | Sbl->setSelectable( TRUE ); |
540 | if( AutoCollapse ) | 545 | if( AutoCollapse ) |
541 | Sbl->setOpen( FALSE ); | 546 | Sbl->setOpen( FALSE ); |
542 | } | 547 | } |
543 | Sbl = Sbl->nextSibling(); | 548 | Sbl = Sbl->nextSibling(); |
544 | } | 549 | } |
545 | 550 | ||
546 | // enable selected path (as deep as it goes | 551 | // enable selected path (as deep as it goes |
547 | it->setOpen( TRUE ); | 552 | it->setOpen( TRUE ); |
548 | enablePath( it->firstChild(), | 553 | enablePath( it->firstChild(), |
549 | (it->depth()==1) ? | 554 | (it->depth()==1) ? |
550 | 1 : // toplevel always alternatives | 555 | 1 : // toplevel always alternatives |
551 | (NN->alternatives().size() > 1) ); | 556 | (NN->alternatives().size() > 1) ); |
552 | } | 557 | } |
553 | 558 | ||
554 | void EditNetworkSetup::disableTree( QListViewItem * it, bool Mode ) { | 559 | void EditNetworkSetup::disableTree( QListViewItem * it, bool Mode ) { |
555 | while( it ) { | 560 | while( it ) { |
556 | // disable sbl's chidren | 561 | // disable sbl's chidren |
557 | it->setSelectable( Mode ); | 562 | it->setSelectable( Mode ); |
558 | if( AutoCollapse ) | 563 | if( AutoCollapse ) |
559 | it->setOpen( Mode ); | 564 | it->setOpen( Mode ); |
560 | disableTree( it->firstChild(), Mode ); | 565 | disableTree( it->firstChild(), Mode ); |
561 | it = it->nextSibling(); | 566 | it = it->nextSibling(); |
562 | } | 567 | } |
563 | } | 568 | } |
564 | 569 | ||
565 | // pah : ParentHasAlternatives | 570 | // pah : ParentHasAlternatives |
566 | void EditNetworkSetup::enablePath( QListViewItem * it, bool pha ) { | 571 | void EditNetworkSetup::enablePath( QListViewItem * it, bool pha ) { |
567 | while( it ) { | 572 | while( it ) { |
568 | ANetNode * NN; | 573 | ANetNode * NN; |
569 | NN = (*Mapping)[it]; | 574 | NN = (*Mapping)[it]; |
570 | if( NN ) { | 575 | if( NN ) { |
571 | if( pha ) { | 576 | if( pha ) { |
572 | bool doOn = ((QCheckListItem *)it)->isOn(); | 577 | bool doOn = ((QCheckListItem *)it)->isOn(); |
573 | // we are a checklistitem for sure | 578 | // we are a checklistitem for sure |
574 | it->setSelectable( TRUE ); | 579 | it->setSelectable( TRUE ); |
575 | if( AutoCollapse && ! doOn ) | 580 | if( AutoCollapse && ! doOn ) |
576 | it->setOpen( doOn ); | 581 | it->setOpen( doOn ); |
577 | if( doOn ) { | 582 | if( doOn ) { |
578 | // selected alternative | 583 | // selected alternative |
579 | enablePath( it->firstChild(), | 584 | enablePath( it->firstChild(), |
580 | NN->alternatives().size() > 1); | 585 | NN->alternatives().size() > 1); |
581 | } else { | 586 | } else { |
582 | // non-selected alternative | 587 | // non-selected alternative |
583 | disableTree( it->firstChild(), FALSE); | 588 | disableTree( it->firstChild(), FALSE); |
584 | } | 589 | } |
585 | } else { | 590 | } else { |
586 | // we are single subitem | 591 | // we are single subitem |
587 | it->setSelectable( TRUE ); | 592 | it->setSelectable( TRUE ); |
588 | it->setOpen( TRUE ); | 593 | it->setOpen( TRUE ); |
589 | enablePath( it->firstChild(), | 594 | enablePath( it->firstChild(), |
590 | NN->alternatives().size() > 1); | 595 | NN->alternatives().size() > 1); |
591 | } | 596 | } |
592 | } else { | 597 | } else { |
593 | // controller node | 598 | // controller node |
594 | it->setSelectable( TRUE ); | 599 | it->setSelectable( TRUE ); |
595 | it->setOpen( TRUE ); | 600 | it->setOpen( TRUE ); |
596 | enablePath( it->firstChild(), pha ); | 601 | enablePath( it->firstChild(), pha ); |
597 | } | 602 | } |
598 | it = it->nextSibling(); | 603 | it = it->nextSibling(); |
599 | } | 604 | } |
600 | } | 605 | } |
601 | 606 | ||
602 | // do we have a complete configuration (all needs are provided for ?) | 607 | // do we have a complete configuration (all needs are provided for ?) |
603 | bool EditNetworkSetup::haveCompleteConfig( QListViewItem * it ) { | 608 | bool EditNetworkSetup::haveCompleteConfig( QListViewItem * it ) { |
604 | 609 | ||
605 | // check if all below this level is selected | 610 | // check if all below this level is selected |
606 | it = ( it ) ?it : Nodes_LV->firstChild(); | 611 | it = ( it ) ?it : Nodes_LV->firstChild(); |
607 | ANetNode *NN; | 612 | ANetNode *NN; |
608 | bool Found; | 613 | bool Found; |
609 | 614 | ||
610 | while ( it ) { | 615 | while ( it ) { |
611 | NN = (*Mapping)[it]; | 616 | NN = (*Mapping)[it]; |
612 | if( NN == 0 ) { | 617 | if( NN == 0 ) { |
613 | // this item is a controller -> | 618 | // this item is a controller -> |
614 | // has radio items as children -> | 619 | // has radio items as children -> |
615 | // find selected one | 620 | // find selected one |
616 | it = it->firstChild(); | 621 | it = it->firstChild(); |
617 | Found = 0; | 622 | Found = 0; |
618 | while( it ) { | 623 | while( it ) { |
619 | if( ((QCheckListItem *)it)->isOn() ) { | 624 | if( ((QCheckListItem *)it)->isOn() ) { |
620 | Found = 1; | 625 | Found = 1; |
621 | // go deeper | 626 | // go deeper |
622 | it = it->firstChild(); | 627 | it = it->firstChild(); |
623 | break; | 628 | break; |
624 | } | 629 | } |
625 | it = it->nextSibling(); | 630 | it = it->nextSibling(); |
626 | } | 631 | } |
627 | 632 | ||
628 | if( ! Found ) { | 633 | if( ! Found ) { |
634 | Log(( "Setup not complete\n" )); | ||
629 | return 0; // no not complete -> a radio should have been chkd | 635 | return 0; // no not complete -> a radio should have been chkd |
630 | } | 636 | } |
631 | 637 | ||
632 | // it now contains selected radio | 638 | // it now contains selected radio |
633 | NN = (*Mapping)[it]; | 639 | NN = (*Mapping)[it]; |
634 | } else { | 640 | } else { |
635 | // automatic selection | 641 | // automatic selection |
636 | it = it->firstChild(); | 642 | it = it->firstChild(); |
637 | } | 643 | } |
638 | } | 644 | } |
639 | return 1; | 645 | return 1; |
640 | } | 646 | } |
diff --git a/noncore/settings/networksettings2/wlan/wlanGUI.ui b/noncore/settings/networksettings2/wlan/wlanGUI.ui index 7ba0b16..bb31ae7 100644 --- a/noncore/settings/networksettings2/wlan/wlanGUI.ui +++ b/noncore/settings/networksettings2/wlan/wlanGUI.ui | |||
@@ -1,1112 +1,1184 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>WLanGUI</class> | 2 | <class>WLanGUI</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>WLanGUI</cstring> | 7 | <cstring>WLanGUI</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>207</width> | 14 | <width>199</width> |
15 | <height>313</height> | 15 | <height>311</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 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
27 | </property> | 27 | </property> |
28 | <vbox> | 28 | <vbox> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>0</number> | 31 | <number>0</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>1</number> | 35 | <number>2</number> |
36 | </property> | 36 | </property> |
37 | <widget> | 37 | <widget> |
38 | <class>QTabWidget</class> | 38 | <class>QTabWidget</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>WLan_TAB</cstring> | 41 | <cstring>WLan_TAB</cstring> |
42 | </property> | 42 | </property> |
43 | <property stdset="1"> | 43 | <property stdset="1"> |
44 | <name>enabled</name> | 44 | <name>enabled</name> |
45 | <bool>true</bool> | 45 | <bool>true</bool> |
46 | </property> | 46 | </property> |
47 | <property> | 47 | <property> |
48 | <name>layoutMargin</name> | 48 | <name>layoutMargin</name> |
49 | </property> | 49 | </property> |
50 | <property> | 50 | <property> |
51 | <name>layoutSpacing</name> | 51 | <name>layoutSpacing</name> |
52 | </property> | 52 | </property> |
53 | <widget> | 53 | <widget> |
54 | <class>QWidget</class> | 54 | <class>QWidget</class> |
55 | <property stdset="1"> | 55 | <property stdset="1"> |
56 | <name>name</name> | 56 | <name>name</name> |
57 | <cstring>ConfigPage</cstring> | 57 | <cstring>ConfigPage</cstring> |
58 | </property> | 58 | </property> |
59 | <attribute> | 59 | <attribute> |
60 | <name>title</name> | 60 | <name>title</name> |
61 | <string>General</string> | 61 | <string>General</string> |
62 | </attribute> | 62 | </attribute> |
63 | <vbox> | 63 | <vbox> |
64 | <property stdset="1"> | 64 | <property stdset="1"> |
65 | <name>margin</name> | 65 | <name>margin</name> |
66 | <number>0</number> | 66 | <number>0</number> |
67 | </property> | 67 | </property> |
68 | <property stdset="1"> | 68 | <property stdset="1"> |
69 | <name>spacing</name> | 69 | <name>spacing</name> |
70 | <number>2</number> | 70 | <number>2</number> |
71 | </property> | 71 | </property> |
72 | <widget> | 72 | <widget> |
73 | <class>QLayoutWidget</class> | 73 | <class>QLayoutWidget</class> |
74 | <property stdset="1"> | 74 | <property stdset="1"> |
75 | <name>name</name> | 75 | <name>name</name> |
76 | <cstring>Layout11</cstring> | 76 | <cstring>Layout11</cstring> |
77 | </property> | 77 | </property> |
78 | <property> | 78 | <property> |
79 | <name>layoutSpacing</name> | 79 | <name>layoutSpacing</name> |
80 | </property> | 80 | </property> |
81 | <grid> | 81 | <grid> |
82 | <property stdset="1"> | 82 | <property stdset="1"> |
83 | <name>margin</name> | 83 | <name>margin</name> |
84 | <number>0</number> | 84 | <number>0</number> |
85 | </property> | 85 | </property> |
86 | <property stdset="1"> | 86 | <property stdset="1"> |
87 | <name>spacing</name> | 87 | <name>spacing</name> |
88 | <number>1</number> | 88 | <number>1</number> |
89 | </property> | 89 | </property> |
90 | <widget row="0" column="1" > | 90 | <widget row="0" column="1" > |
91 | <class>QComboBox</class> | 91 | <class>QComboBox</class> |
92 | <item> | 92 | <item> |
93 | <property> | 93 | <property> |
94 | <name>text</name> | 94 | <name>text</name> |
95 | <string>Auto</string> | 95 | <string>Auto</string> |
96 | </property> | 96 | </property> |
97 | </item> | 97 | </item> |
98 | <item> | 98 | <item> |
99 | <property> | 99 | <property> |
100 | <name>text</name> | 100 | <name>text</name> |
101 | <string>Managed</string> | 101 | <string>Managed</string> |
102 | </property> | 102 | </property> |
103 | </item> | 103 | </item> |
104 | <item> | 104 | <item> |
105 | <property> | 105 | <property> |
106 | <name>text</name> | 106 | <name>text</name> |
107 | <string>Ad-Hoc</string> | 107 | <string>Ad-Hoc</string> |
108 | </property> | 108 | </property> |
109 | </item> | 109 | </item> |
110 | <property stdset="1"> | 110 | <property stdset="1"> |
111 | <name>name</name> | 111 | <name>name</name> |
112 | <cstring>Mode_CB</cstring> | 112 | <cstring>Mode_CB</cstring> |
113 | </property> | 113 | </property> |
114 | <property stdset="1"> | 114 | <property stdset="1"> |
115 | <name>enabled</name> | 115 | <name>enabled</name> |
116 | <bool>true</bool> | 116 | <bool>true</bool> |
117 | </property> | 117 | </property> |
118 | <property stdset="1"> | 118 | <property stdset="1"> |
119 | <name>sizePolicy</name> | 119 | <name>sizePolicy</name> |
120 | <sizepolicy> | 120 | <sizepolicy> |
121 | <hsizetype>1</hsizetype> | 121 | <hsizetype>1</hsizetype> |
122 | <vsizetype>0</vsizetype> | 122 | <vsizetype>0</vsizetype> |
123 | </sizepolicy> | 123 | </sizepolicy> |
124 | </property> | 124 | </property> |
125 | </widget> | 125 | </widget> |
126 | <widget row="2" column="0" > | 126 | <widget row="2" column="0" > |
127 | <class>QLabel</class> | 127 | <class>QLabel</class> |
128 | <property stdset="1"> | 128 | <property stdset="1"> |
129 | <name>name</name> | 129 | <name>name</name> |
130 | <cstring>essidLabel_2</cstring> | 130 | <cstring>essidLabel_2</cstring> |
131 | </property> | 131 | </property> |
132 | <property stdset="1"> | 132 | <property stdset="1"> |
133 | <name>enabled</name> | 133 | <name>enabled</name> |
134 | <bool>true</bool> | 134 | <bool>true</bool> |
135 | </property> | 135 | </property> |
136 | <property stdset="1"> | 136 | <property stdset="1"> |
137 | <name>sizePolicy</name> | 137 | <name>sizePolicy</name> |
138 | <sizepolicy> | 138 | <sizepolicy> |
139 | <hsizetype>1</hsizetype> | 139 | <hsizetype>1</hsizetype> |
140 | <vsizetype>1</vsizetype> | 140 | <vsizetype>1</vsizetype> |
141 | </sizepolicy> | 141 | </sizepolicy> |
142 | </property> | 142 | </property> |
143 | <property stdset="1"> | 143 | <property stdset="1"> |
144 | <name>text</name> | 144 | <name>text</name> |
145 | <string>Name</string> | 145 | <string>Name</string> |
146 | </property> | 146 | </property> |
147 | </widget> | 147 | </widget> |
148 | <widget row="0" column="0" > | 148 | <widget row="0" column="0" > |
149 | <class>QLabel</class> | 149 | <class>QLabel</class> |
150 | <property stdset="1"> | 150 | <property stdset="1"> |
151 | <name>name</name> | 151 | <name>name</name> |
152 | <cstring>modeLabel</cstring> | 152 | <cstring>modeLabel</cstring> |
153 | </property> | 153 | </property> |
154 | <property stdset="1"> | 154 | <property stdset="1"> |
155 | <name>enabled</name> | 155 | <name>enabled</name> |
156 | <bool>true</bool> | 156 | <bool>true</bool> |
157 | </property> | 157 | </property> |
158 | <property stdset="1"> | 158 | <property stdset="1"> |
159 | <name>sizePolicy</name> | 159 | <name>sizePolicy</name> |
160 | <sizepolicy> | 160 | <sizepolicy> |
161 | <hsizetype>1</hsizetype> | 161 | <hsizetype>1</hsizetype> |
162 | <vsizetype>1</vsizetype> | 162 | <vsizetype>1</vsizetype> |
163 | </sizepolicy> | 163 | </sizepolicy> |
164 | </property> | 164 | </property> |
165 | <property stdset="1"> | 165 | <property stdset="1"> |
166 | <name>text</name> | 166 | <name>text</name> |
167 | <string>Mode</string> | 167 | <string>Mode</string> |
168 | </property> | 168 | </property> |
169 | </widget> | 169 | </widget> |
170 | <widget row="1" column="1" > | 170 | <widget row="1" column="1" > |
171 | <class>QLineEdit</class> | 171 | <class>QLineEdit</class> |
172 | <property stdset="1"> | 172 | <property stdset="1"> |
173 | <name>name</name> | 173 | <name>name</name> |
174 | <cstring>ESSID_LE</cstring> | 174 | <cstring>ESSID_LE</cstring> |
175 | </property> | 175 | </property> |
176 | </widget> | 176 | </widget> |
177 | <widget row="1" column="0" > | 177 | <widget row="1" column="0" > |
178 | <class>QLabel</class> | 178 | <class>QLabel</class> |
179 | <property stdset="1"> | 179 | <property stdset="1"> |
180 | <name>name</name> | 180 | <name>name</name> |
181 | <cstring>essidLabel</cstring> | 181 | <cstring>essidLabel</cstring> |
182 | </property> | 182 | </property> |
183 | <property stdset="1"> | 183 | <property stdset="1"> |
184 | <name>enabled</name> | 184 | <name>enabled</name> |
185 | <bool>true</bool> | 185 | <bool>true</bool> |
186 | </property> | 186 | </property> |
187 | <property stdset="1"> | 187 | <property stdset="1"> |
188 | <name>sizePolicy</name> | 188 | <name>sizePolicy</name> |
189 | <sizepolicy> | 189 | <sizepolicy> |
190 | <hsizetype>1</hsizetype> | 190 | <hsizetype>1</hsizetype> |
191 | <vsizetype>1</vsizetype> | 191 | <vsizetype>1</vsizetype> |
192 | </sizepolicy> | 192 | </sizepolicy> |
193 | </property> | 193 | </property> |
194 | <property stdset="1"> | 194 | <property stdset="1"> |
195 | <name>text</name> | 195 | <name>text</name> |
196 | <string>ESS-ID</string> | 196 | <string>ESS-ID</string> |
197 | </property> | 197 | </property> |
198 | </widget> | 198 | </widget> |
199 | <widget row="2" column="1" > | 199 | <widget row="2" column="1" > |
200 | <class>QLineEdit</class> | 200 | <class>QLineEdit</class> |
201 | <property stdset="1"> | 201 | <property stdset="1"> |
202 | <name>name</name> | 202 | <name>name</name> |
203 | <cstring>NodeName_LE</cstring> | 203 | <cstring>NodeName_LE</cstring> |
204 | </property> | 204 | </property> |
205 | <property stdset="1"> | 205 | <property stdset="1"> |
206 | <name>text</name> | 206 | <name>text</name> |
207 | <string><UseHostName></string> | 207 | <string><UseHostName></string> |
208 | </property> | 208 | </property> |
209 | </widget> | 209 | </widget> |
210 | </grid> | 210 | </grid> |
211 | </widget> | 211 | </widget> |
212 | <widget> | 212 | <widget> |
213 | <class>QLayoutWidget</class> | 213 | <class>QLayoutWidget</class> |
214 | <property stdset="1"> | 214 | <property stdset="1"> |
215 | <name>name</name> | 215 | <name>name</name> |
216 | <cstring>Layout8</cstring> | 216 | <cstring>Layout8</cstring> |
217 | </property> | 217 | </property> |
218 | <property> | 218 | <property> |
219 | <name>layoutMargin</name> | 219 | <name>layoutMargin</name> |
220 | </property> | 220 | </property> |
221 | <property> | 221 | <property> |
222 | <name>layoutSpacing</name> | 222 | <name>layoutSpacing</name> |
223 | </property> | 223 | </property> |
224 | <grid> | 224 | <grid> |
225 | <property stdset="1"> | 225 | <property stdset="1"> |
226 | <name>margin</name> | 226 | <name>margin</name> |
227 | <number>1</number> | 227 | <number>1</number> |
228 | </property> | 228 | </property> |
229 | <property stdset="1"> | 229 | <property stdset="1"> |
230 | <name>spacing</name> | 230 | <name>spacing</name> |
231 | <number>2</number> | 231 | <number>2</number> |
232 | </property> | 232 | </property> |
233 | <widget row="0" column="0" rowspan="1" colspan="3" > | 233 | <widget row="0" column="0" rowspan="1" colspan="3" > |
234 | <class>QCheckBox</class> | 234 | <class>QCheckBox</class> |
235 | <property stdset="1"> | 235 | <property stdset="1"> |
236 | <name>name</name> | 236 | <name>name</name> |
237 | <cstring>SpecifyAP_CB</cstring> | 237 | <cstring>SpecifyAP_CB</cstring> |
238 | </property> | 238 | </property> |
239 | <property stdset="1"> | 239 | <property stdset="1"> |
240 | <name>text</name> | 240 | <name>text</name> |
241 | <string>Specify Access Point</string> | 241 | <string>Specify Access Point</string> |
242 | </property> | 242 | </property> |
243 | </widget> | 243 | </widget> |
244 | <widget row="1" column="1" > | 244 | <widget row="1" column="1" > |
245 | <class>QLabel</class> | 245 | <class>QLabel</class> |
246 | <property stdset="1"> | 246 | <property stdset="1"> |
247 | <name>name</name> | 247 | <name>name</name> |
248 | <cstring>macLabel</cstring> | 248 | <cstring>macLabel</cstring> |
249 | </property> | 249 | </property> |
250 | <property stdset="1"> | 250 | <property stdset="1"> |
251 | <name>enabled</name> | 251 | <name>enabled</name> |
252 | <bool>false</bool> | 252 | <bool>false</bool> |
253 | </property> | 253 | </property> |
254 | <property stdset="1"> | 254 | <property stdset="1"> |
255 | <name>sizePolicy</name> | 255 | <name>sizePolicy</name> |
256 | <sizepolicy> | 256 | <sizepolicy> |
257 | <hsizetype>0</hsizetype> | 257 | <hsizetype>0</hsizetype> |
258 | <vsizetype>1</vsizetype> | 258 | <vsizetype>1</vsizetype> |
259 | </sizepolicy> | 259 | </sizepolicy> |
260 | </property> | 260 | </property> |
261 | <property stdset="1"> | 261 | <property stdset="1"> |
262 | <name>text</name> | 262 | <name>text</name> |
263 | <string>MAC</string> | 263 | <string>MAC</string> |
264 | </property> | 264 | </property> |
265 | </widget> | 265 | </widget> |
266 | <widget row="1" column="2" > | 266 | <widget row="1" column="2" > |
267 | <class>QLineEdit</class> | 267 | <class>QLineEdit</class> |
268 | <property stdset="1"> | 268 | <property stdset="1"> |
269 | <name>name</name> | 269 | <name>name</name> |
270 | <cstring>APMac_LE</cstring> | 270 | <cstring>APMac_LE</cstring> |
271 | </property> | 271 | </property> |
272 | <property stdset="1"> | 272 | <property stdset="1"> |
273 | <name>enabled</name> | 273 | <name>enabled</name> |
274 | <bool>false</bool> | 274 | <bool>false</bool> |
275 | </property> | 275 | </property> |
276 | <property stdset="1"> | 276 | <property stdset="1"> |
277 | <name>sizePolicy</name> | 277 | <name>sizePolicy</name> |
278 | <sizepolicy> | 278 | <sizepolicy> |
279 | <hsizetype>7</hsizetype> | 279 | <hsizetype>7</hsizetype> |
280 | <vsizetype>1</vsizetype> | 280 | <vsizetype>1</vsizetype> |
281 | </sizepolicy> | 281 | </sizepolicy> |
282 | </property> | 282 | </property> |
283 | </widget> | 283 | </widget> |
284 | <spacer row="1" column="0" > | 284 | <spacer row="1" column="0" > |
285 | <property> | 285 | <property> |
286 | <name>name</name> | 286 | <name>name</name> |
287 | <cstring>Spacer8</cstring> | 287 | <cstring>Spacer8</cstring> |
288 | </property> | 288 | </property> |
289 | <property stdset="1"> | 289 | <property stdset="1"> |
290 | <name>orientation</name> | 290 | <name>orientation</name> |
291 | <enum>Horizontal</enum> | 291 | <enum>Horizontal</enum> |
292 | </property> | 292 | </property> |
293 | <property stdset="1"> | 293 | <property stdset="1"> |
294 | <name>sizeType</name> | 294 | <name>sizeType</name> |
295 | <enum>Fixed</enum> | 295 | <enum>Fixed</enum> |
296 | </property> | 296 | </property> |
297 | <property> | 297 | <property> |
298 | <name>sizeHint</name> | 298 | <name>sizeHint</name> |
299 | <size> | 299 | <size> |
300 | <width>20</width> | 300 | <width>20</width> |
301 | <height>20</height> | 301 | <height>20</height> |
302 | </size> | 302 | </size> |
303 | </property> | 303 | </property> |
304 | </spacer> | 304 | </spacer> |
305 | </grid> | 305 | </grid> |
306 | </widget> | 306 | </widget> |
307 | <widget> | 307 | <widget> |
308 | <class>QListView</class> | 308 | <class>QListView</class> |
309 | <column> | 309 | <column> |
310 | <property> | 310 | <property> |
311 | <name>text</name> | 311 | <name>text</name> |
312 | <string></string> | 312 | <string></string> |
313 | </property> | 313 | </property> |
314 | <property> | 314 | <property> |
315 | <name>clickable</name> | 315 | <name>clickable</name> |
316 | <bool>true</bool> | 316 | <bool>true</bool> |
317 | </property> | 317 | </property> |
318 | <property> | 318 | <property> |
319 | <name>resizeable</name> | 319 | <name>resizeable</name> |
320 | <bool>true</bool> | 320 | <bool>true</bool> |
321 | </property> | 321 | </property> |
322 | </column> | 322 | </column> |
323 | <column> | 323 | <column> |
324 | <property> | 324 | <property> |
325 | <name>text</name> | 325 | <name>text</name> |
326 | <string>SSID</string> | 326 | <string>SSID</string> |
327 | </property> | 327 | </property> |
328 | <property> | 328 | <property> |
329 | <name>clickable</name> | 329 | <name>clickable</name> |
330 | <bool>true</bool> | 330 | <bool>true</bool> |
331 | </property> | 331 | </property> |
332 | <property> | 332 | <property> |
333 | <name>resizeable</name> | 333 | <name>resizeable</name> |
334 | <bool>true</bool> | 334 | <bool>true</bool> |
335 | </property> | 335 | </property> |
336 | </column> | 336 | </column> |
337 | <column> | 337 | <column> |
338 | <property> | 338 | <property> |
339 | <name>text</name> | 339 | <name>text</name> |
340 | <string>Chn</string> | 340 | <string>Chn</string> |
341 | </property> | 341 | </property> |
342 | <property> | 342 | <property> |
343 | <name>clickable</name> | 343 | <name>clickable</name> |
344 | <bool>true</bool> | 344 | <bool>true</bool> |
345 | </property> | 345 | </property> |
346 | <property> | 346 | <property> |
347 | <name>resizeable</name> | 347 | <name>resizeable</name> |
348 | <bool>true</bool> | 348 | <bool>true</bool> |
349 | </property> | 349 | </property> |
350 | </column> | 350 | </column> |
351 | <column> | 351 | <column> |
352 | <property> | 352 | <property> |
353 | <name>text</name> | 353 | <name>text</name> |
354 | <string>MAC</string> | 354 | <string>MAC</string> |
355 | </property> | 355 | </property> |
356 | <property> | 356 | <property> |
357 | <name>clickable</name> | 357 | <name>clickable</name> |
358 | <bool>true</bool> | 358 | <bool>true</bool> |
359 | </property> | 359 | </property> |
360 | <property> | 360 | <property> |
361 | <name>resizeable</name> | 361 | <name>resizeable</name> |
362 | <bool>true</bool> | 362 | <bool>true</bool> |
363 | </property> | 363 | </property> |
364 | </column> | 364 | </column> |
365 | <property stdset="1"> | 365 | <property stdset="1"> |
366 | <name>name</name> | 366 | <name>name</name> |
367 | <cstring>Scanned_LV</cstring> | 367 | <cstring>Scanned_LV</cstring> |
368 | </property> | 368 | </property> |
369 | </widget> | 369 | </widget> |
370 | <widget> | 370 | <widget> |
371 | <class>QLayoutWidget</class> | 371 | <class>QLayoutWidget</class> |
372 | <property stdset="1"> | 372 | <property stdset="1"> |
373 | <name>name</name> | 373 | <name>name</name> |
374 | <cstring>Layout8</cstring> | 374 | <cstring>Layout8</cstring> |
375 | </property> | 375 | </property> |
376 | <hbox> | 376 | <hbox> |
377 | <property stdset="1"> | 377 | <property stdset="1"> |
378 | <name>margin</name> | 378 | <name>margin</name> |
379 | <number>0</number> | 379 | <number>0</number> |
380 | </property> | 380 | </property> |
381 | <property stdset="1"> | 381 | <property stdset="1"> |
382 | <name>spacing</name> | 382 | <name>spacing</name> |
383 | <number>6</number> | 383 | <number>6</number> |
384 | </property> | 384 | </property> |
385 | <spacer> | 385 | <spacer> |
386 | <property> | 386 | <property> |
387 | <name>name</name> | 387 | <name>name</name> |
388 | <cstring>Spacer7</cstring> | 388 | <cstring>Spacer7</cstring> |
389 | </property> | 389 | </property> |
390 | <property stdset="1"> | 390 | <property stdset="1"> |
391 | <name>orientation</name> | 391 | <name>orientation</name> |
392 | <enum>Horizontal</enum> | 392 | <enum>Horizontal</enum> |
393 | </property> | 393 | </property> |
394 | <property stdset="1"> | 394 | <property stdset="1"> |
395 | <name>sizeType</name> | 395 | <name>sizeType</name> |
396 | <enum>Expanding</enum> | 396 | <enum>Expanding</enum> |
397 | </property> | 397 | </property> |
398 | <property> | 398 | <property> |
399 | <name>sizeHint</name> | 399 | <name>sizeHint</name> |
400 | <size> | 400 | <size> |
401 | <width>20</width> | 401 | <width>20</width> |
402 | <height>20</height> | 402 | <height>20</height> |
403 | </size> | 403 | </size> |
404 | </property> | 404 | </property> |
405 | </spacer> | 405 | </spacer> |
406 | <widget> | 406 | <widget> |
407 | <class>QPushButton</class> | 407 | <class>QPushButton</class> |
408 | <property stdset="1"> | 408 | <property stdset="1"> |
409 | <name>name</name> | 409 | <name>name</name> |
410 | <cstring>Scan_But</cstring> | 410 | <cstring>Scan_But</cstring> |
411 | </property> | 411 | </property> |
412 | <property stdset="1"> | 412 | <property stdset="1"> |
413 | <name>text</name> | 413 | <name>text</name> |
414 | <string>Scan</string> | 414 | <string>Scan</string> |
415 | </property> | 415 | </property> |
416 | </widget> | 416 | </widget> |
417 | </hbox> | 417 | </hbox> |
418 | </widget> | 418 | </widget> |
419 | </vbox> | 419 | </vbox> |
420 | </widget> | 420 | </widget> |
421 | <widget> | 421 | <widget> |
422 | <class>QWidget</class> | 422 | <class>QWidget</class> |
423 | <property stdset="1"> | 423 | <property stdset="1"> |
424 | <name>name</name> | 424 | <name>name</name> |
425 | <cstring>WepPage</cstring> | 425 | <cstring>WepPage</cstring> |
426 | </property> | 426 | </property> |
427 | <attribute> | 427 | <attribute> |
428 | <name>title</name> | 428 | <name>title</name> |
429 | <string>Encryption</string> | 429 | <string>Encryption</string> |
430 | </attribute> | 430 | </attribute> |
431 | <vbox> | 431 | <vbox> |
432 | <property stdset="1"> | 432 | <property stdset="1"> |
433 | <name>margin</name> | 433 | <name>margin</name> |
434 | <number>2</number> | 434 | <number>2</number> |
435 | </property> | 435 | </property> |
436 | <property stdset="1"> | 436 | <property stdset="1"> |
437 | <name>spacing</name> | 437 | <name>spacing</name> |
438 | <number>2</number> | 438 | <number>2</number> |
439 | </property> | 439 | </property> |
440 | <widget> | 440 | <widget> |
441 | <class>QCheckBox</class> | 441 | <class>QCheckBox</class> |
442 | <property stdset="1"> | 442 | <property stdset="1"> |
443 | <name>name</name> | 443 | <name>name</name> |
444 | <cstring>EnableWEP_CB</cstring> | 444 | <cstring>EnableWEP_CB</cstring> |
445 | </property> | 445 | </property> |
446 | <property stdset="1"> | 446 | <property stdset="1"> |
447 | <name>text</name> | 447 | <name>text</name> |
448 | <string>&Enable Encryption</string> | 448 | <string>&Enable Encryption</string> |
449 | </property> | 449 | </property> |
450 | </widget> | 450 | </widget> |
451 | <widget> | 451 | <widget> |
452 | <class>QButtonGroup</class> | 452 | <class>QButtonGroup</class> |
453 | <property stdset="1"> | 453 | <property stdset="1"> |
454 | <name>name</name> | 454 | <name>name</name> |
455 | <cstring>KeyButtonGroup</cstring> | 455 | <cstring>KeyButtonGroup</cstring> |
456 | </property> | 456 | </property> |
457 | <property stdset="1"> | 457 | <property stdset="1"> |
458 | <name>enabled</name> | 458 | <name>enabled</name> |
459 | <bool>false</bool> | 459 | <bool>false</bool> |
460 | </property> | 460 | </property> |
461 | <property stdset="1"> | 461 | <property stdset="1"> |
462 | <name>title</name> | 462 | <name>title</name> |
463 | <string>&Key Setting</string> | 463 | <string>&Key Setting</string> |
464 | </property> | 464 | </property> |
465 | <property> | 465 | <property> |
466 | <name>layoutMargin</name> | 466 | <name>layoutMargin</name> |
467 | </property> | 467 | </property> |
468 | <property> | 468 | <property> |
469 | <name>layoutSpacing</name> | 469 | <name>layoutSpacing</name> |
470 | </property> | 470 | </property> |
471 | <grid> | 471 | <grid> |
472 | <property stdset="1"> | 472 | <property stdset="1"> |
473 | <name>margin</name> | 473 | <name>margin</name> |
474 | <number>2</number> | 474 | <number>2</number> |
475 | </property> | 475 | </property> |
476 | <property stdset="1"> | 476 | <property stdset="1"> |
477 | <name>spacing</name> | 477 | <name>spacing</name> |
478 | <number>2</number> | 478 | <number>2</number> |
479 | </property> | 479 | </property> |
480 | <widget row="0" column="0" > | 480 | <widget row="0" column="0" > |
481 | <class>QRadioButton</class> | 481 | <class>QRadioButton</class> |
482 | <property stdset="1"> | 482 | <property stdset="1"> |
483 | <name>name</name> | 483 | <name>name</name> |
484 | <cstring>Key1_RB</cstring> | 484 | <cstring>Key1_RB</cstring> |
485 | </property> | 485 | </property> |
486 | <property stdset="1"> | 486 | <property stdset="1"> |
487 | <name>text</name> | 487 | <name>text</name> |
488 | <string>Key &1</string> | 488 | <string>Key &1</string> |
489 | </property> | 489 | </property> |
490 | <property stdset="1"> | 490 | <property stdset="1"> |
491 | <name>checked</name> | 491 | <name>checked</name> |
492 | <bool>true</bool> | 492 | <bool>true</bool> |
493 | </property> | 493 | </property> |
494 | </widget> | 494 | </widget> |
495 | <widget row="3" column="0" > | 495 | <widget row="3" column="0" > |
496 | <class>QRadioButton</class> | 496 | <class>QRadioButton</class> |
497 | <property stdset="1"> | 497 | <property stdset="1"> |
498 | <name>name</name> | 498 | <name>name</name> |
499 | <cstring>Key4_RB</cstring> | 499 | <cstring>Key4_RB</cstring> |
500 | </property> | 500 | </property> |
501 | <property stdset="1"> | 501 | <property stdset="1"> |
502 | <name>text</name> | 502 | <name>text</name> |
503 | <string>Key &4</string> | 503 | <string>Key &4</string> |
504 | </property> | 504 | </property> |
505 | </widget> | 505 | </widget> |
506 | <widget row="0" column="1" > | 506 | <widget row="0" column="1" > |
507 | <class>QLineEdit</class> | 507 | <class>QLineEdit</class> |
508 | <property stdset="1"> | 508 | <property stdset="1"> |
509 | <name>name</name> | 509 | <name>name</name> |
510 | <cstring>Key1_LE</cstring> | 510 | <cstring>Key1_LE</cstring> |
511 | </property> | 511 | </property> |
512 | <property stdset="1"> | 512 | <property stdset="1"> |
513 | <name>frame</name> | 513 | <name>frame</name> |
514 | <bool>true</bool> | 514 | <bool>true</bool> |
515 | </property> | 515 | </property> |
516 | </widget> | 516 | </widget> |
517 | <widget row="1" column="0" > | 517 | <widget row="1" column="0" > |
518 | <class>QRadioButton</class> | 518 | <class>QRadioButton</class> |
519 | <property stdset="1"> | 519 | <property stdset="1"> |
520 | <name>name</name> | 520 | <name>name</name> |
521 | <cstring>Key2_RB</cstring> | 521 | <cstring>Key2_RB</cstring> |
522 | </property> | 522 | </property> |
523 | <property stdset="1"> | 523 | <property stdset="1"> |
524 | <name>text</name> | 524 | <name>text</name> |
525 | <string>Key &2</string> | 525 | <string>Key &2</string> |
526 | </property> | 526 | </property> |
527 | </widget> | 527 | </widget> |
528 | <widget row="2" column="0" > | 528 | <widget row="2" column="0" > |
529 | <class>QRadioButton</class> | 529 | <class>QRadioButton</class> |
530 | <property stdset="1"> | 530 | <property stdset="1"> |
531 | <name>name</name> | 531 | <name>name</name> |
532 | <cstring>Key3_RB</cstring> | 532 | <cstring>Key3_RB</cstring> |
533 | </property> | 533 | </property> |
534 | <property stdset="1"> | 534 | <property stdset="1"> |
535 | <name>text</name> | 535 | <name>text</name> |
536 | <string>Key &3</string> | 536 | <string>Key &3</string> |
537 | </property> | 537 | </property> |
538 | </widget> | 538 | </widget> |
539 | <widget row="1" column="1" > | 539 | <widget row="1" column="1" > |
540 | <class>QLineEdit</class> | 540 | <class>QLineEdit</class> |
541 | <property stdset="1"> | 541 | <property stdset="1"> |
542 | <name>name</name> | 542 | <name>name</name> |
543 | <cstring>Key2_LE</cstring> | 543 | <cstring>Key2_LE</cstring> |
544 | </property> | 544 | </property> |
545 | <property stdset="1"> | 545 | <property stdset="1"> |
546 | <name>enabled</name> | 546 | <name>enabled</name> |
547 | <bool>false</bool> | 547 | <bool>false</bool> |
548 | </property> | 548 | </property> |
549 | </widget> | 549 | </widget> |
550 | <widget row="3" column="1" > | 550 | <widget row="3" column="1" > |
551 | <class>QLineEdit</class> | 551 | <class>QLineEdit</class> |
552 | <property stdset="1"> | 552 | <property stdset="1"> |
553 | <name>name</name> | 553 | <name>name</name> |
554 | <cstring>Key4_LE</cstring> | 554 | <cstring>Key4_LE</cstring> |
555 | </property> | 555 | </property> |
556 | <property stdset="1"> | 556 | <property stdset="1"> |
557 | <name>enabled</name> | 557 | <name>enabled</name> |
558 | <bool>false</bool> | 558 | <bool>false</bool> |
559 | </property> | 559 | </property> |
560 | </widget> | 560 | </widget> |
561 | <widget row="2" column="1" > | 561 | <widget row="2" column="1" > |
562 | <class>QLineEdit</class> | 562 | <class>QLineEdit</class> |
563 | <property stdset="1"> | 563 | <property stdset="1"> |
564 | <name>name</name> | 564 | <name>name</name> |
565 | <cstring>Key3_LE</cstring> | 565 | <cstring>Key3_LE</cstring> |
566 | </property> | 566 | </property> |
567 | <property stdset="1"> | 567 | <property stdset="1"> |
568 | <name>enabled</name> | 568 | <name>enabled</name> |
569 | <bool>false</bool> | 569 | <bool>false</bool> |
570 | </property> | 570 | </property> |
571 | </widget> | 571 | </widget> |
572 | </grid> | 572 | </grid> |
573 | </widget> | 573 | </widget> |
574 | <widget> | 574 | <widget> |
575 | <class>QCheckBox</class> | 575 | <class>QCheckBox</class> |
576 | <property stdset="1"> | 576 | <property stdset="1"> |
577 | <name>name</name> | 577 | <name>name</name> |
578 | <cstring>AcceptNonEncrypted_CB</cstring> | 578 | <cstring>AcceptNonEncrypted_CB</cstring> |
579 | </property> | 579 | </property> |
580 | <property stdset="1"> | 580 | <property stdset="1"> |
581 | <name>enabled</name> | 581 | <name>enabled</name> |
582 | <bool>false</bool> | 582 | <bool>false</bool> |
583 | </property> | 583 | </property> |
584 | <property stdset="1"> | 584 | <property stdset="1"> |
585 | <name>text</name> | 585 | <name>text</name> |
586 | <string>Accept Non-Encrypted packets</string> | 586 | <string>Accept Non-Encrypted packets</string> |
587 | </property> | 587 | </property> |
588 | </widget> | 588 | </widget> |
589 | <spacer> | 589 | <spacer> |
590 | <property> | 590 | <property> |
591 | <name>name</name> | 591 | <name>name</name> |
592 | <cstring>Spacer30</cstring> | 592 | <cstring>Spacer30</cstring> |
593 | </property> | 593 | </property> |
594 | <property stdset="1"> | 594 | <property stdset="1"> |
595 | <name>orientation</name> | 595 | <name>orientation</name> |
596 | <enum>Vertical</enum> | 596 | <enum>Vertical</enum> |
597 | </property> | 597 | </property> |
598 | <property stdset="1"> | 598 | <property stdset="1"> |
599 | <name>sizeType</name> | 599 | <name>sizeType</name> |
600 | <enum>Expanding</enum> | 600 | <enum>MinimumExpanding</enum> |
601 | </property> | 601 | </property> |
602 | <property> | 602 | <property> |
603 | <name>sizeHint</name> | 603 | <name>sizeHint</name> |
604 | <size> | 604 | <size> |
605 | <width>20</width> | 605 | <width>20</width> |
606 | <height>20</height> | 606 | <height>20</height> |
607 | </size> | 607 | </size> |
608 | </property> | 608 | </property> |
609 | </spacer> | 609 | </spacer> |
610 | </vbox> | 610 | </vbox> |
611 | </widget> | 611 | </widget> |
612 | <widget> | 612 | <widget> |
613 | <class>QWidget</class> | 613 | <class>QWidget</class> |
614 | <property stdset="1"> | 614 | <property stdset="1"> |
615 | <name>name</name> | 615 | <name>name</name> |
616 | <cstring>tab</cstring> | 616 | <cstring>tab</cstring> |
617 | </property> | 617 | </property> |
618 | <attribute> | 618 | <attribute> |
619 | <name>title</name> | 619 | <name>title</name> |
620 | <string>State</string> | 620 | <string>State</string> |
621 | </attribute> | 621 | </attribute> |
622 | <vbox> | 622 | <vbox> |
623 | <property stdset="1"> | 623 | <property stdset="1"> |
624 | <name>margin</name> | 624 | <name>margin</name> |
625 | <number>0</number> | 625 | <number>0</number> |
626 | </property> | 626 | </property> |
627 | <property stdset="1"> | 627 | <property stdset="1"> |
628 | <name>spacing</name> | 628 | <name>spacing</name> |
629 | <number>2</number> | 629 | <number>2</number> |
630 | </property> | 630 | </property> |
631 | <widget> | 631 | <widget> |
632 | <class>QLayoutWidget</class> | 632 | <class>QLayoutWidget</class> |
633 | <property stdset="1"> | 633 | <property stdset="1"> |
634 | <name>name</name> | 634 | <name>name</name> |
635 | <cstring>Layout13</cstring> | 635 | <cstring>Layout8</cstring> |
636 | </property> | 636 | </property> |
637 | <property> | 637 | <property> |
638 | <name>layoutSpacing</name> | 638 | <name>layoutSpacing</name> |
639 | </property> | 639 | </property> |
640 | <grid> | 640 | <grid> |
641 | <property stdset="1"> | 641 | <property stdset="1"> |
642 | <name>margin</name> | 642 | <name>margin</name> |
643 | <number>0</number> | 643 | <number>0</number> |
644 | </property> | 644 | </property> |
645 | <property stdset="1"> | 645 | <property stdset="1"> |
646 | <name>spacing</name> | 646 | <name>spacing</name> |
647 | <number>2</number> | 647 | <number>2</number> |
648 | </property> | 648 | </property> |
649 | <widget row="4" column="1" > | 649 | <widget row="0" column="1" > |
650 | <class>QLabel</class> | 650 | <class>QLabel</class> |
651 | <property stdset="1"> | 651 | <property stdset="1"> |
652 | <name>name</name> | 652 | <name>name</name> |
653 | <cstring>Frequency_LBL</cstring> | 653 | <cstring>Station_LBL</cstring> |
654 | </property> | ||
655 | <property stdset="1"> | ||
656 | <name>sizePolicy</name> | ||
657 | <sizepolicy> | ||
658 | <hsizetype>7</hsizetype> | ||
659 | <vsizetype>1</vsizetype> | ||
660 | </sizepolicy> | ||
654 | </property> | 661 | </property> |
655 | <property stdset="1"> | 662 | <property stdset="1"> |
656 | <name>frameShape</name> | 663 | <name>frameShape</name> |
657 | <enum>Box</enum> | 664 | <enum>Box</enum> |
658 | </property> | 665 | </property> |
659 | <property stdset="1"> | 666 | <property stdset="1"> |
660 | <name>frameShadow</name> | 667 | <name>frameShadow</name> |
661 | <enum>Plain</enum> | 668 | <enum>Plain</enum> |
662 | </property> | 669 | </property> |
663 | <property stdset="1"> | 670 | <property stdset="1"> |
664 | <name>indent</name> | 671 | <name>indent</name> |
665 | <number>0</number> | 672 | <number>0</number> |
666 | </property> | 673 | </property> |
667 | </widget> | 674 | </widget> |
668 | <widget row="2" column="0" > | 675 | <widget row="0" column="0" > |
669 | <class>QLabel</class> | 676 | <class>QLabel</class> |
670 | <property stdset="1"> | 677 | <property stdset="1"> |
671 | <name>name</name> | 678 | <name>name</name> |
672 | <cstring>TextLabel9_2</cstring> | 679 | <cstring>TextLabel1_3</cstring> |
680 | </property> | ||
681 | <property stdset="1"> | ||
682 | <name>sizePolicy</name> | ||
683 | <sizepolicy> | ||
684 | <hsizetype>1</hsizetype> | ||
685 | <vsizetype>1</vsizetype> | ||
686 | </sizepolicy> | ||
673 | </property> | 687 | </property> |
674 | <property stdset="1"> | 688 | <property stdset="1"> |
675 | <name>text</name> | 689 | <name>text</name> |
676 | <string>AP</string> | 690 | <string>Station</string> |
677 | </property> | 691 | </property> |
678 | </widget> | 692 | </widget> |
679 | <widget row="5" column="1" > | 693 | <widget row="1" column="0" > |
680 | <class>QLabel</class> | 694 | <class>QLabel</class> |
681 | <property stdset="1"> | 695 | <property stdset="1"> |
682 | <name>name</name> | 696 | <name>name</name> |
683 | <cstring>Channel_LBL</cstring> | 697 | <cstring>TextLabel2_3</cstring> |
698 | </property> | ||
699 | <property stdset="1"> | ||
700 | <name>text</name> | ||
701 | <string>ESSID</string> | ||
702 | </property> | ||
703 | </widget> | ||
704 | <widget row="1" column="1" > | ||
705 | <class>QLabel</class> | ||
706 | <property stdset="1"> | ||
707 | <name>name</name> | ||
708 | <cstring>ESSID_LBL</cstring> | ||
709 | </property> | ||
710 | <property stdset="1"> | ||
711 | <name>sizePolicy</name> | ||
712 | <sizepolicy> | ||
713 | <hsizetype>7</hsizetype> | ||
714 | <vsizetype>1</vsizetype> | ||
715 | </sizepolicy> | ||
684 | </property> | 716 | </property> |
685 | <property stdset="1"> | 717 | <property stdset="1"> |
686 | <name>frameShape</name> | 718 | <name>frameShape</name> |
687 | <enum>Box</enum> | 719 | <enum>Box</enum> |
688 | </property> | 720 | </property> |
689 | <property stdset="1"> | 721 | <property stdset="1"> |
690 | <name>frameShadow</name> | 722 | <name>frameShadow</name> |
691 | <enum>Plain</enum> | 723 | <enum>Plain</enum> |
692 | </property> | 724 | </property> |
693 | <property stdset="1"> | 725 | <property stdset="1"> |
694 | <name>indent</name> | 726 | <name>indent</name> |
695 | <number>0</number> | 727 | <number>0</number> |
696 | </property> | 728 | </property> |
697 | </widget> | 729 | </widget> |
698 | <widget row="0" column="1" > | 730 | <widget row="2" column="1" > |
699 | <class>QLabel</class> | 731 | <class>QLabel</class> |
700 | <property stdset="1"> | 732 | <property stdset="1"> |
701 | <name>name</name> | 733 | <name>name</name> |
702 | <cstring>Station_LBL</cstring> | 734 | <cstring>AP_LBL</cstring> |
735 | </property> | ||
736 | <property stdset="1"> | ||
737 | <name>sizePolicy</name> | ||
738 | <sizepolicy> | ||
739 | <hsizetype>7</hsizetype> | ||
740 | <vsizetype>1</vsizetype> | ||
741 | </sizepolicy> | ||
703 | </property> | 742 | </property> |
704 | <property stdset="1"> | 743 | <property stdset="1"> |
705 | <name>frameShape</name> | 744 | <name>frameShape</name> |
706 | <enum>Box</enum> | 745 | <enum>Box</enum> |
707 | </property> | 746 | </property> |
708 | <property stdset="1"> | 747 | <property stdset="1"> |
709 | <name>frameShadow</name> | 748 | <name>frameShadow</name> |
710 | <enum>Plain</enum> | 749 | <enum>Plain</enum> |
711 | </property> | 750 | </property> |
712 | <property stdset="1"> | 751 | <property stdset="1"> |
713 | <name>indent</name> | 752 | <name>indent</name> |
714 | <number>0</number> | 753 | <number>0</number> |
715 | </property> | 754 | </property> |
716 | </widget> | 755 | </widget> |
717 | <widget row="6" column="0" > | 756 | <widget row="2" column="0" > |
718 | <class>QLabel</class> | 757 | <class>QLabel</class> |
719 | <property stdset="1"> | 758 | <property stdset="1"> |
720 | <name>name</name> | 759 | <name>name</name> |
721 | <cstring>TextLabel4_2_2</cstring> | 760 | <cstring>TextLabel9_2</cstring> |
722 | </property> | 761 | </property> |
723 | <property stdset="1"> | 762 | <property stdset="1"> |
724 | <name>text</name> | 763 | <name>text</name> |
725 | <string>Rate</string> | 764 | <string>AP</string> |
726 | </property> | 765 | </property> |
727 | </widget> | 766 | </widget> |
728 | <widget row="6" column="1" > | 767 | </grid> |
768 | </widget> | ||
769 | <widget> | ||
770 | <class>QLayoutWidget</class> | ||
771 | <property stdset="1"> | ||
772 | <name>name</name> | ||
773 | <cstring>Layout7</cstring> | ||
774 | </property> | ||
775 | <property> | ||
776 | <name>layoutSpacing</name> | ||
777 | </property> | ||
778 | <grid> | ||
779 | <property stdset="1"> | ||
780 | <name>margin</name> | ||
781 | <number>0</number> | ||
782 | </property> | ||
783 | <property stdset="1"> | ||
784 | <name>spacing</name> | ||
785 | <number>2</number> | ||
786 | </property> | ||
787 | <widget row="0" column="3" > | ||
729 | <class>QLabel</class> | 788 | <class>QLabel</class> |
730 | <property stdset="1"> | 789 | <property stdset="1"> |
731 | <name>name</name> | 790 | <name>name</name> |
732 | <cstring>Rate_LBL</cstring> | 791 | <cstring>Frequency_LBL</cstring> |
733 | </property> | 792 | </property> |
734 | <property stdset="1"> | 793 | <property stdset="1"> |
735 | <name>sizePolicy</name> | 794 | <name>sizePolicy</name> |
736 | <sizepolicy> | 795 | <sizepolicy> |
737 | <hsizetype>7</hsizetype> | 796 | <hsizetype>7</hsizetype> |
738 | <vsizetype>1</vsizetype> | 797 | <vsizetype>1</vsizetype> |
739 | </sizepolicy> | 798 | </sizepolicy> |
740 | </property> | 799 | </property> |
741 | <property stdset="1"> | 800 | <property stdset="1"> |
742 | <name>frameShape</name> | 801 | <name>frameShape</name> |
743 | <enum>Box</enum> | 802 | <enum>Box</enum> |
744 | </property> | 803 | </property> |
745 | <property stdset="1"> | 804 | <property stdset="1"> |
746 | <name>frameShadow</name> | 805 | <name>frameShadow</name> |
747 | <enum>Plain</enum> | 806 | <enum>Plain</enum> |
748 | </property> | 807 | </property> |
749 | <property stdset="1"> | 808 | <property stdset="1"> |
750 | <name>indent</name> | 809 | <name>indent</name> |
751 | <number>0</number> | 810 | <number>0</number> |
752 | </property> | 811 | </property> |
753 | </widget> | 812 | </widget> |
754 | <widget row="2" column="1" > | 813 | <widget row="1" column="0" > |
755 | <class>QLabel</class> | 814 | <class>QLabel</class> |
756 | <property stdset="1"> | 815 | <property stdset="1"> |
757 | <name>name</name> | 816 | <name>name</name> |
758 | <cstring>AP_LBL</cstring> | 817 | <cstring>TextLabel4_3</cstring> |
818 | </property> | ||
819 | <property stdset="1"> | ||
820 | <name>text</name> | ||
821 | <string>Channel</string> | ||
822 | </property> | ||
823 | </widget> | ||
824 | <widget row="1" column="1" > | ||
825 | <class>QLabel</class> | ||
826 | <property stdset="1"> | ||
827 | <name>name</name> | ||
828 | <cstring>Channel_LBL</cstring> | ||
829 | </property> | ||
830 | <property stdset="1"> | ||
831 | <name>sizePolicy</name> | ||
832 | <sizepolicy> | ||
833 | <hsizetype>7</hsizetype> | ||
834 | <vsizetype>1</vsizetype> | ||
835 | </sizepolicy> | ||
759 | </property> | 836 | </property> |
760 | <property stdset="1"> | 837 | <property stdset="1"> |
761 | <name>frameShape</name> | 838 | <name>frameShape</name> |
762 | <enum>Box</enum> | 839 | <enum>Box</enum> |
763 | </property> | 840 | </property> |
764 | <property stdset="1"> | 841 | <property stdset="1"> |
765 | <name>frameShadow</name> | 842 | <name>frameShadow</name> |
766 | <enum>Plain</enum> | 843 | <enum>Plain</enum> |
767 | </property> | 844 | </property> |
768 | <property stdset="1"> | 845 | <property stdset="1"> |
769 | <name>indent</name> | 846 | <name>indent</name> |
770 | <number>0</number> | 847 | <number>0</number> |
771 | </property> | 848 | </property> |
772 | </widget> | 849 | </widget> |
773 | <widget row="3" column="1" > | 850 | <widget row="1" column="2" > |
774 | <class>QLabel</class> | 851 | <class>QLabel</class> |
775 | <property stdset="1"> | 852 | <property stdset="1"> |
776 | <name>name</name> | 853 | <name>name</name> |
777 | <cstring>Mode_LBL</cstring> | 854 | <cstring>TextLabel4_2_2</cstring> |
778 | </property> | 855 | </property> |
779 | <property stdset="1"> | 856 | <property stdset="1"> |
780 | <name>frameShape</name> | 857 | <name>text</name> |
781 | <enum>Box</enum> | 858 | <string>Rate</string> |
782 | </property> | 859 | </property> |
860 | </widget> | ||
861 | <widget row="0" column="2" > | ||
862 | <class>QLabel</class> | ||
783 | <property stdset="1"> | 863 | <property stdset="1"> |
784 | <name>frameShadow</name> | 864 | <name>name</name> |
785 | <enum>Plain</enum> | 865 | <cstring>TextLabel4_3_2</cstring> |
786 | </property> | 866 | </property> |
787 | <property stdset="1"> | 867 | <property stdset="1"> |
788 | <name>indent</name> | 868 | <name>text</name> |
789 | <number>0</number> | 869 | <string>Freq</string> |
790 | </property> | 870 | </property> |
791 | </widget> | 871 | </widget> |
792 | <widget row="1" column="1" > | 872 | <widget row="0" column="1" > |
793 | <class>QLabel</class> | 873 | <class>QLabel</class> |
794 | <property stdset="1"> | 874 | <property stdset="1"> |
795 | <name>name</name> | 875 | <name>name</name> |
796 | <cstring>ESSID_LBL</cstring> | 876 | <cstring>Mode_LBL</cstring> |
877 | </property> | ||
878 | <property stdset="1"> | ||
879 | <name>sizePolicy</name> | ||
880 | <sizepolicy> | ||
881 | <hsizetype>7</hsizetype> | ||
882 | <vsizetype>1</vsizetype> | ||
883 | </sizepolicy> | ||
797 | </property> | 884 | </property> |
798 | <property stdset="1"> | 885 | <property stdset="1"> |
799 | <name>frameShape</name> | 886 | <name>frameShape</name> |
800 | <enum>Box</enum> | 887 | <enum>Box</enum> |
801 | </property> | 888 | </property> |
802 | <property stdset="1"> | 889 | <property stdset="1"> |
803 | <name>frameShadow</name> | 890 | <name>frameShadow</name> |
804 | <enum>Plain</enum> | 891 | <enum>Plain</enum> |
805 | </property> | 892 | </property> |
806 | <property stdset="1"> | 893 | <property stdset="1"> |
807 | <name>indent</name> | 894 | <name>indent</name> |
808 | <number>0</number> | 895 | <number>0</number> |
809 | </property> | 896 | </property> |
810 | </widget> | 897 | </widget> |
811 | <widget row="3" column="0" > | 898 | <widget row="0" column="0" > |
812 | <class>QLabel</class> | 899 | <class>QLabel</class> |
813 | <property stdset="1"> | 900 | <property stdset="1"> |
814 | <name>name</name> | 901 | <name>name</name> |
815 | <cstring>TextLabel3_3</cstring> | 902 | <cstring>TextLabel3_3</cstring> |
816 | </property> | 903 | </property> |
817 | <property stdset="1"> | 904 | <property stdset="1"> |
818 | <name>text</name> | 905 | <name>text</name> |
819 | <string>Mode</string> | 906 | <string>Mode</string> |
820 | </property> | 907 | </property> |
821 | </widget> | 908 | </widget> |
822 | <widget row="5" column="0" > | 909 | <widget row="1" column="3" > |
823 | <class>QLabel</class> | 910 | <class>QLabel</class> |
824 | <property stdset="1"> | 911 | <property stdset="1"> |
825 | <name>name</name> | 912 | <name>name</name> |
826 | <cstring>TextLabel4_3</cstring> | 913 | <cstring>Rate_LBL</cstring> |
827 | </property> | ||
828 | <property stdset="1"> | ||
829 | <name>text</name> | ||
830 | <string>Channel</string> | ||
831 | </property> | ||
832 | </widget> | ||
833 | <widget row="0" column="0" > | ||
834 | <class>QLabel</class> | ||
835 | <property stdset="1"> | ||
836 | <name>name</name> | ||
837 | <cstring>TextLabel1_3</cstring> | ||
838 | </property> | 914 | </property> |
839 | <property stdset="1"> | 915 | <property stdset="1"> |
840 | <name>text</name> | 916 | <name>sizePolicy</name> |
841 | <string>Station</string> | 917 | <sizepolicy> |
842 | </property> | 918 | <hsizetype>7</hsizetype> |
843 | </widget> | 919 | <vsizetype>1</vsizetype> |
844 | <widget row="1" column="0" > | 920 | </sizepolicy> |
845 | <class>QLabel</class> | ||
846 | <property stdset="1"> | ||
847 | <name>name</name> | ||
848 | <cstring>TextLabel2_3</cstring> | ||
849 | </property> | 921 | </property> |
850 | <property stdset="1"> | 922 | <property stdset="1"> |
851 | <name>text</name> | 923 | <name>frameShape</name> |
852 | <string>ESSID</string> | 924 | <enum>Box</enum> |
853 | </property> | 925 | </property> |
854 | </widget> | ||
855 | <widget row="4" column="0" > | ||
856 | <class>QLabel</class> | ||
857 | <property stdset="1"> | 926 | <property stdset="1"> |
858 | <name>name</name> | 927 | <name>frameShadow</name> |
859 | <cstring>TextLabel4_3_2</cstring> | 928 | <enum>Plain</enum> |
860 | </property> | 929 | </property> |
861 | <property stdset="1"> | 930 | <property stdset="1"> |
862 | <name>text</name> | 931 | <name>indent</name> |
863 | <string>Frequency</string> | 932 | <number>0</number> |
864 | </property> | 933 | </property> |
865 | </widget> | 934 | </widget> |
866 | </grid> | 935 | </grid> |
867 | </widget> | 936 | </widget> |
868 | <widget> | 937 | <widget> |
869 | <class>QGroupBox</class> | 938 | <class>QGroupBox</class> |
870 | <property stdset="1"> | 939 | <property stdset="1"> |
871 | <name>name</name> | 940 | <name>name</name> |
872 | <cstring>GroupBox1</cstring> | 941 | <cstring>GroupBox1</cstring> |
873 | </property> | 942 | </property> |
874 | <property stdset="1"> | 943 | <property stdset="1"> |
875 | <name>margin</name> | 944 | <name>margin</name> |
876 | <number>0</number> | 945 | <number>0</number> |
877 | </property> | 946 | </property> |
878 | <property stdset="1"> | 947 | <property stdset="1"> |
879 | <name>title</name> | 948 | <name>title</name> |
880 | <string>Link Quality</string> | 949 | <string>Link Quality</string> |
881 | </property> | 950 | </property> |
882 | <property> | 951 | <property> |
883 | <name>layoutMargin</name> | 952 | <name>layoutMargin</name> |
884 | </property> | 953 | </property> |
885 | <property> | 954 | <property> |
886 | <name>layoutSpacing</name> | 955 | <name>layoutSpacing</name> |
887 | </property> | 956 | </property> |
888 | <grid> | 957 | <grid> |
889 | <property stdset="1"> | 958 | <property stdset="1"> |
890 | <name>margin</name> | 959 | <name>margin</name> |
891 | <number>2</number> | 960 | <number>2</number> |
892 | </property> | 961 | </property> |
893 | <property stdset="1"> | 962 | <property stdset="1"> |
894 | <name>spacing</name> | 963 | <name>spacing</name> |
895 | <number>0</number> | 964 | <number>0</number> |
896 | </property> | 965 | </property> |
897 | <widget row="1" column="0" > | 966 | <widget row="1" column="0" > |
898 | <class>QLabel</class> | 967 | <class>QLabel</class> |
899 | <property stdset="1"> | 968 | <property stdset="1"> |
900 | <name>name</name> | 969 | <name>name</name> |
901 | <cstring>TextLabel2_2_2</cstring> | 970 | <cstring>TextLabel2_2_2</cstring> |
902 | </property> | 971 | </property> |
903 | <property stdset="1"> | 972 | <property stdset="1"> |
904 | <name>text</name> | 973 | <name>text</name> |
905 | <string>Noise</string> | 974 | <string>Noise</string> |
906 | </property> | 975 | </property> |
907 | </widget> | 976 | </widget> |
908 | <widget row="2" column="0" > | 977 | <widget row="2" column="0" > |
909 | <class>QLabel</class> | 978 | <class>QLabel</class> |
910 | <property stdset="1"> | 979 | <property stdset="1"> |
911 | <name>name</name> | 980 | <name>name</name> |
912 | <cstring>TextLabel3_2_2</cstring> | 981 | <cstring>TextLabel3_2_2</cstring> |
913 | </property> | 982 | </property> |
914 | <property stdset="1"> | 983 | <property stdset="1"> |
915 | <name>text</name> | 984 | <name>text</name> |
916 | <string>Quality</string> | 985 | <string>Quality</string> |
917 | </property> | 986 | </property> |
918 | </widget> | 987 | </widget> |
919 | <widget row="1" column="2" > | 988 | <widget row="1" column="2" > |
920 | <class>QProgressBar</class> | 989 | <class>QProgressBar</class> |
921 | <property stdset="1"> | 990 | <property stdset="1"> |
922 | <name>name</name> | 991 | <name>name</name> |
923 | <cstring>Noise_PB</cstring> | 992 | <cstring>Noise_PB</cstring> |
924 | </property> | 993 | </property> |
925 | <property stdset="1"> | 994 | <property stdset="1"> |
926 | <name>progress</name> | 995 | <name>progress</name> |
927 | <number>10</number> | 996 | <number>10</number> |
928 | </property> | 997 | </property> |
929 | </widget> | 998 | </widget> |
930 | <widget row="2" column="2" > | 999 | <widget row="2" column="2" > |
931 | <class>QProgressBar</class> | 1000 | <class>QProgressBar</class> |
932 | <property stdset="1"> | 1001 | <property stdset="1"> |
933 | <name>name</name> | 1002 | <name>name</name> |
934 | <cstring>Quality_PB</cstring> | 1003 | <cstring>Quality_PB</cstring> |
935 | </property> | 1004 | </property> |
936 | <property stdset="1"> | 1005 | <property stdset="1"> |
937 | <name>progress</name> | 1006 | <name>progress</name> |
938 | <number>10</number> | 1007 | <number>10</number> |
939 | </property> | 1008 | </property> |
940 | </widget> | 1009 | </widget> |
941 | <widget row="0" column="0" > | 1010 | <widget row="0" column="0" > |
942 | <class>QLabel</class> | 1011 | <class>QLabel</class> |
943 | <property stdset="1"> | 1012 | <property stdset="1"> |
944 | <name>name</name> | 1013 | <name>name</name> |
945 | <cstring>TextLabel1_2_2</cstring> | 1014 | <cstring>TextLabel1_2_2</cstring> |
946 | </property> | 1015 | </property> |
947 | <property stdset="1"> | 1016 | <property stdset="1"> |
948 | <name>text</name> | 1017 | <name>text</name> |
949 | <string>Signal</string> | 1018 | <string>Signal</string> |
950 | </property> | 1019 | </property> |
951 | </widget> | 1020 | </widget> |
952 | <widget row="0" column="2" > | 1021 | <widget row="0" column="2" > |
953 | <class>QProgressBar</class> | 1022 | <class>QProgressBar</class> |
954 | <property stdset="1"> | 1023 | <property stdset="1"> |
955 | <name>name</name> | 1024 | <name>name</name> |
956 | <cstring>Signal_PB</cstring> | 1025 | <cstring>Signal_PB</cstring> |
957 | </property> | 1026 | </property> |
958 | <property stdset="1"> | 1027 | <property stdset="1"> |
959 | <name>frameShadow</name> | 1028 | <name>frameShadow</name> |
960 | <enum>Plain</enum> | 1029 | <enum>Plain</enum> |
961 | </property> | 1030 | </property> |
962 | <property stdset="1"> | 1031 | <property stdset="1"> |
963 | <name>lineWidth</name> | 1032 | <name>lineWidth</name> |
964 | <number>1</number> | 1033 | <number>1</number> |
965 | </property> | 1034 | </property> |
966 | <property stdset="1"> | 1035 | <property stdset="1"> |
967 | <name>progress</name> | 1036 | <name>progress</name> |
968 | <number>10</number> | 1037 | <number>10</number> |
969 | </property> | 1038 | </property> |
970 | </widget> | 1039 | </widget> |
971 | </grid> | 1040 | </grid> |
972 | </widget> | 1041 | </widget> |
973 | <spacer> | ||
974 | <property> | ||
975 | <name>name</name> | ||
976 | <cstring>Spacer11</cstring> | ||
977 | </property> | ||
978 | <property stdset="1"> | ||
979 | <name>orientation</name> | ||
980 | <enum>Vertical</enum> | ||
981 | </property> | ||
982 | <property stdset="1"> | ||
983 | <name>sizeType</name> | ||
984 | <enum>Expanding</enum> | ||
985 | </property> | ||
986 | <property> | ||
987 | <name>sizeHint</name> | ||
988 | <size> | ||
989 | <width>20</width> | ||
990 | <height>20</height> | ||
991 | </size> | ||
992 | </property> | ||
993 | </spacer> | ||
994 | <widget> | 1042 | <widget> |
995 | <class>QLayoutWidget</class> | 1043 | <class>QLayoutWidget</class> |
996 | <property stdset="1"> | 1044 | <property stdset="1"> |
997 | <name>name</name> | 1045 | <name>name</name> |
998 | <cstring>Layout21</cstring> | 1046 | <cstring>Layout7</cstring> |
1047 | </property> | ||
1048 | <property> | ||
1049 | <name>layoutSpacing</name> | ||
999 | </property> | 1050 | </property> |
1000 | <hbox> | 1051 | <hbox> |
1001 | <property stdset="1"> | 1052 | <property stdset="1"> |
1002 | <name>margin</name> | 1053 | <name>margin</name> |
1003 | <number>0</number> | 1054 | <number>0</number> |
1004 | </property> | 1055 | </property> |
1005 | <property stdset="1"> | 1056 | <property stdset="1"> |
1006 | <name>spacing</name> | 1057 | <name>spacing</name> |
1007 | <number>6</number> | 1058 | <number>2</number> |
1008 | </property> | 1059 | </property> |
1009 | <widget> | 1060 | <widget> |
1010 | <class>QCheckBox</class> | 1061 | <class>QCheckBox</class> |
1011 | <property stdset="1"> | 1062 | <property stdset="1"> |
1012 | <name>name</name> | 1063 | <name>name</name> |
1013 | <cstring>Refresh_CB</cstring> | 1064 | <cstring>Refresh_CB</cstring> |
1014 | </property> | 1065 | </property> |
1015 | <property stdset="1"> | 1066 | <property stdset="1"> |
1016 | <name>sizePolicy</name> | 1067 | <name>sizePolicy</name> |
1017 | <sizepolicy> | 1068 | <sizepolicy> |
1018 | <hsizetype>1</hsizetype> | 1069 | <hsizetype>1</hsizetype> |
1019 | <vsizetype>5</vsizetype> | 1070 | <vsizetype>5</vsizetype> |
1020 | </sizepolicy> | 1071 | </sizepolicy> |
1021 | </property> | 1072 | </property> |
1022 | <property stdset="1"> | 1073 | <property stdset="1"> |
1023 | <name>text</name> | 1074 | <name>text</name> |
1024 | <string>Live feed </string> | 1075 | <string>Live feed </string> |
1025 | </property> | 1076 | </property> |
1026 | </widget> | 1077 | </widget> |
1027 | <spacer> | 1078 | <spacer> |
1028 | <property> | 1079 | <property> |
1029 | <name>name</name> | 1080 | <name>name</name> |
1030 | <cstring>Spacer16</cstring> | 1081 | <cstring>Spacer16</cstring> |
1031 | </property> | 1082 | </property> |
1032 | <property stdset="1"> | 1083 | <property stdset="1"> |
1033 | <name>orientation</name> | 1084 | <name>orientation</name> |
1034 | <enum>Horizontal</enum> | 1085 | <enum>Horizontal</enum> |
1035 | </property> | 1086 | </property> |
1036 | <property stdset="1"> | 1087 | <property stdset="1"> |
1037 | <name>sizeType</name> | 1088 | <name>sizeType</name> |
1038 | <enum>Expanding</enum> | 1089 | <enum>Expanding</enum> |
1039 | </property> | 1090 | </property> |
1040 | <property> | 1091 | <property> |
1041 | <name>sizeHint</name> | 1092 | <name>sizeHint</name> |
1042 | <size> | 1093 | <size> |
1043 | <width>20</width> | 1094 | <width>20</width> |
1044 | <height>20</height> | 1095 | <height>20</height> |
1045 | </size> | 1096 | </size> |
1046 | </property> | 1097 | </property> |
1047 | </spacer> | 1098 | </spacer> |
1048 | </hbox> | 1099 | </hbox> |
1049 | </widget> | 1100 | </widget> |
1101 | <spacer> | ||
1102 | <property> | ||
1103 | <name>name</name> | ||
1104 | <cstring>Spacer6</cstring> | ||
1105 | </property> | ||
1106 | <property stdset="1"> | ||
1107 | <name>orientation</name> | ||
1108 | <enum>Vertical</enum> | ||
1109 | </property> | ||
1110 | <property stdset="1"> | ||
1111 | <name>sizeType</name> | ||
1112 | <enum>Expanding</enum> | ||
1113 | </property> | ||
1114 | <property> | ||
1115 | <name>sizeHint</name> | ||
1116 | <size> | ||
1117 | <width>20</width> | ||
1118 | <height>20</height> | ||
1119 | </size> | ||
1120 | </property> | ||
1121 | </spacer> | ||
1050 | </vbox> | 1122 | </vbox> |
1051 | </widget> | 1123 | </widget> |
1052 | </widget> | 1124 | </widget> |
1053 | </vbox> | 1125 | </vbox> |
1054 | </widget> | 1126 | </widget> |
1055 | <connections> | 1127 | <connections> |
1056 | <connection> | 1128 | <connection> |
1057 | <sender>EnableWEP_CB</sender> | 1129 | <sender>EnableWEP_CB</sender> |
1058 | <signal>toggled(bool)</signal> | 1130 | <signal>toggled(bool)</signal> |
1059 | <receiver>KeyButtonGroup</receiver> | 1131 | <receiver>KeyButtonGroup</receiver> |
1060 | <slot>setEnabled(bool)</slot> | 1132 | <slot>setEnabled(bool)</slot> |
1061 | </connection> | 1133 | </connection> |
1062 | <connection> | 1134 | <connection> |
1063 | <sender>SpecifyAP_CB</sender> | 1135 | <sender>SpecifyAP_CB</sender> |
1064 | <signal>toggled(bool)</signal> | 1136 | <signal>toggled(bool)</signal> |
1065 | <receiver>APMac_LE</receiver> | 1137 | <receiver>APMac_LE</receiver> |
1066 | <slot>setEnabled(bool)</slot> | 1138 | <slot>setEnabled(bool)</slot> |
1067 | </connection> | 1139 | </connection> |
1068 | <connection> | 1140 | <connection> |
1069 | <sender>SpecifyAP_CB</sender> | 1141 | <sender>SpecifyAP_CB</sender> |
1070 | <signal>toggled(bool)</signal> | 1142 | <signal>toggled(bool)</signal> |
1071 | <receiver>macLabel</receiver> | 1143 | <receiver>macLabel</receiver> |
1072 | <slot>setEnabled(bool)</slot> | 1144 | <slot>setEnabled(bool)</slot> |
1073 | </connection> | 1145 | </connection> |
1074 | <connection> | 1146 | <connection> |
1075 | <sender>EnableWEP_CB</sender> | 1147 | <sender>EnableWEP_CB</sender> |
1076 | <signal>toggled(bool)</signal> | 1148 | <signal>toggled(bool)</signal> |
1077 | <receiver>AcceptNonEncrypted_CB</receiver> | 1149 | <receiver>AcceptNonEncrypted_CB</receiver> |
1078 | <slot>setEnabled(bool)</slot> | 1150 | <slot>setEnabled(bool)</slot> |
1079 | </connection> | 1151 | </connection> |
1080 | <connection> | 1152 | <connection> |
1081 | <sender>Key1_RB</sender> | 1153 | <sender>Key1_RB</sender> |
1082 | <signal>toggled(bool)</signal> | 1154 | <signal>toggled(bool)</signal> |
1083 | <receiver>Key1_LE</receiver> | 1155 | <receiver>Key1_LE</receiver> |
1084 | <slot>setEnabled(bool)</slot> | 1156 | <slot>setEnabled(bool)</slot> |
1085 | </connection> | 1157 | </connection> |
1086 | <connection> | 1158 | <connection> |
1087 | <sender>Key2_RB</sender> | 1159 | <sender>Key2_RB</sender> |
1088 | <signal>toggled(bool)</signal> | 1160 | <signal>toggled(bool)</signal> |
1089 | <receiver>Key2_LE</receiver> | 1161 | <receiver>Key2_LE</receiver> |
1090 | <slot>setEnabled(bool)</slot> | 1162 | <slot>setEnabled(bool)</slot> |
1091 | </connection> | 1163 | </connection> |
1092 | <connection> | 1164 | <connection> |
1093 | <sender>Key3_RB</sender> | 1165 | <sender>Key3_RB</sender> |
1094 | <signal>toggled(bool)</signal> | 1166 | <signal>toggled(bool)</signal> |
1095 | <receiver>Key3_LE</receiver> | 1167 | <receiver>Key3_LE</receiver> |
1096 | <slot>setEnabled(bool)</slot> | 1168 | <slot>setEnabled(bool)</slot> |
1097 | </connection> | 1169 | </connection> |
1098 | <connection> | 1170 | <connection> |
1099 | <sender>Key4_RB</sender> | 1171 | <sender>Key4_RB</sender> |
1100 | <signal>toggled(bool)</signal> | 1172 | <signal>toggled(bool)</signal> |
1101 | <receiver>Key4_LE</receiver> | 1173 | <receiver>Key4_LE</receiver> |
1102 | <slot>setEnabled(bool)</slot> | 1174 | <slot>setEnabled(bool)</slot> |
1103 | </connection> | 1175 | </connection> |
1104 | <connection> | 1176 | <connection> |
1105 | <sender>Refresh_CB</sender> | 1177 | <sender>Refresh_CB</sender> |
1106 | <signal>toggled(bool)</signal> | 1178 | <signal>toggled(bool)</signal> |
1107 | <receiver>WLanGUI</receiver> | 1179 | <receiver>WLanGUI</receiver> |
1108 | <slot>SLOT_AutoRefresh(bool)</slot> | 1180 | <slot>SLOT_AutoRefresh(bool)</slot> |
1109 | </connection> | 1181 | </connection> |
1110 | <slot access="public">SLOT_AutoRefresh(bool)</slot> | 1182 | <slot access="public">SLOT_AutoRefresh(bool)</slot> |
1111 | </connections> | 1183 | </connections> |
1112 | </UI> | 1184 | </UI> |