From 551fd59bc878f0f95aac939a5a9fdedd14707d17 Mon Sep 17 00:00:00 2001 From: wimpie Date: Wed, 12 Jan 2005 02:21:58 +0000 Subject: Fixed problem with selection of lowest node level --- 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 @@ -441,10 +441,10 @@ void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) { NN = (*Mapping)[ it ]; if( ! NN ) { - // intermediate node + // intermediate (controller) node NN = (*Mapping)[ it->parent() ]; if( NN ) { - // figure out type of this node -> produce mesage + // figure out type of this node -> produce message Description_LBL->setText( NSResources->netNode2Description( NN->needs()[0]) ); } else { @@ -453,6 +453,7 @@ void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) { return; } + // clicked on regular node Description_LBL->setText( NN->nodeDescription() ); if( ! it->isSelectable() ) { @@ -461,13 +462,16 @@ void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) { ANetNode::NetNodeList & NNL = NN->alternatives(); - if( NNL.size() != 1 ) { - if( NNL.size() == 0 || - ! ((MyQCheckListItem *)it)->isOn() - ) { - // not clicked on Check or Radio item - return; - } + if( NNL.size() == 0 ) { + // this item has no alternatives -> end node + TmpIsValid = 0; + updateGUI( it, NN ); + return; + } + + if( ! ((MyQCheckListItem *)it)->isOn() ) { + // not clicked on Check or Radio item + return; } // item has really changed -> update @@ -529,6 +533,7 @@ void EditNetworkSetup::updateGUI( QListViewItem * it, ANetNode * NN ) { bool HCC = haveCompleteConfig( it ); Tab_TB->setTabEnabled( Setup_FRM, HCC ); + Log(( "COMPLETE CONFIG %d\n", HCC )); Setup_FRM->setEnabled( HCC ); // disable children of all siblings at same level @@ -626,6 +631,7 @@ bool EditNetworkSetup::haveCompleteConfig( QListViewItem * it ) { } if( ! Found ) { + Log(( "Setup not complete\n" )); return 0; // no not complete -> a radio should have been chkd } 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 @@ -11,8 +11,8 @@ 0 0 - 207 - 313 + 199 + 311 @@ -32,7 +32,7 @@ spacing - 1 + 2 QTabWidget @@ -597,7 +597,7 @@ sizeType - Expanding + MinimumExpanding sizeHint @@ -632,7 +632,7 @@ QLayoutWidget name - Layout13 + Layout8 layoutSpacing @@ -646,11 +646,18 @@ spacing 2 - + QLabel name - Frequency_LBL + Station_LBL + + + sizePolicy + + 7 + 1 + frameShape @@ -665,22 +672,47 @@ 0 - + QLabel name - TextLabel9_2 + TextLabel1_3 + + + sizePolicy + + 1 + 1 + text - AP + Station - + QLabel name - Channel_LBL + TextLabel2_3 + + + text + ESSID + + + + QLabel + + name + ESSID_LBL + + + sizePolicy + + 7 + 1 + frameShape @@ -695,11 +727,18 @@ 0 - + QLabel name - Station_LBL + AP_LBL + + + sizePolicy + + 7 + 1 + frameShape @@ -714,22 +753,42 @@ 0 - + QLabel name - TextLabel4_2_2 + TextLabel9_2 text - Rate + AP - + + + + QLayoutWidget + + name + Layout7 + + + layoutSpacing + + + + margin + 0 + + + spacing + 2 + + QLabel name - Rate_LBL + Frequency_LBL sizePolicy @@ -751,11 +810,29 @@ 0 - + QLabel name - AP_LBL + TextLabel4_3 + + + text + Channel + + + + QLabel + + name + Channel_LBL + + + sizePolicy + + 7 + 1 + frameShape @@ -770,30 +847,40 @@ 0 - + QLabel name - Mode_LBL + TextLabel4_2_2 - frameShape - Box + text + Rate + + + QLabel - frameShadow - Plain + name + TextLabel4_3_2 - indent - 0 + text + Freq - + QLabel name - ESSID_LBL + Mode_LBL + + + sizePolicy + + 7 + 1 + frameShape @@ -808,7 +895,7 @@ 0 - + QLabel name @@ -819,48 +906,30 @@ Mode - + QLabel name - TextLabel4_3 - - - text - Channel - - - - QLabel - - name - TextLabel1_3 + Rate_LBL - text - Station - - - - QLabel - - name - TextLabel2_3 + sizePolicy + + 7 + 1 + - text - ESSID + frameShape + Box - - - QLabel - name - TextLabel4_3_2 + frameShadow + Plain - text - Frequency + indent + 0 @@ -970,32 +1039,14 @@ - - - name - Spacer11 - - - orientation - Vertical - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - QLayoutWidget name - Layout21 + Layout7 + + + layoutSpacing @@ -1004,7 +1055,7 @@ spacing - 6 + 2 QCheckBox @@ -1047,6 +1098,27 @@ + + + name + Spacer6 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + -- cgit v0.9.0.2