summaryrefslogtreecommitdiff
authorwimpie <wimpie>2005-01-12 02:21:58 (UTC)
committer wimpie <wimpie>2005-01-12 02:21:58 (UTC)
commit551fd59bc878f0f95aac939a5a9fdedd14707d17 (patch) (unidiff)
treeaf49b228e04da59895ad77ae691ce9f900ef3d83
parentc48160f6ac67b2f2fc4b6f982b641861ad078237 (diff)
downloadopie-551fd59bc878f0f95aac939a5a9fdedd14707d17.zip
opie-551fd59bc878f0f95aac939a5a9fdedd14707d17.tar.gz
opie-551fd59bc878f0f95aac939a5a9fdedd14707d17.tar.bz2
Fixed problem with selection of lowest node level
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/editconnection.cpp20
-rw-r--r--noncore/settings/networksettings2/wlan/wlanGUI.ui244
2 files changed, 171 insertions, 93 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
@@ -441,10 +441,10 @@ void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) {
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 {
@@ -453,6 +453,7 @@ void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) {
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() ) {
@@ -461,13 +462,16 @@ void EditNetworkSetup::SLOT_SelectNode( QListViewItem * it ) {
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
@@ -529,6 +533,7 @@ 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
@@ -626,6 +631,7 @@ bool EditNetworkSetup::haveCompleteConfig( QListViewItem * it ) {
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
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 @@
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">
@@ -32,7 +32,7 @@
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>
@@ -597,7 +597,7 @@
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>
@@ -632,7 +632,7 @@
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>
@@ -646,11 +646,18 @@
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>
@@ -665,22 +672,47 @@
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>
691 </property>
692 </widget>
693 <widget row="1" column="0" >
694 <class>QLabel</class>
695 <property stdset="1">
696 <name>name</name>
697 <cstring>TextLabel2_3</cstring>
698 </property>
699 <property stdset="1">
700 <name>text</name>
701 <string>ESSID</string>
677 </property> 702 </property>
678 </widget> 703 </widget>
679 <widget row="5" column="1" > 704 <widget row="1" column="1" >
680 <class>QLabel</class> 705 <class>QLabel</class>
681 <property stdset="1"> 706 <property stdset="1">
682 <name>name</name> 707 <name>name</name>
683 <cstring>Channel_LBL</cstring> 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>
@@ -695,11 +727,18 @@
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>
@@ -714,22 +753,42 @@
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>
@@ -751,11 +810,29 @@
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>
@@ -770,30 +847,40 @@
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>
@@ -808,7 +895,7 @@
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>
@@ -819,48 +906,30 @@
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>
824 <property stdset="1">
825 <name>name</name>
826 <cstring>TextLabel4_3</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> 910 <class>QLabel</class>
835 <property stdset="1"> 911 <property stdset="1">
836 <name>name</name> 912 <name>name</name>
837 <cstring>TextLabel1_3</cstring> 913 <cstring>Rate_LBL</cstring>
838 </property>
839 <property stdset="1">
840 <name>text</name>
841 <string>Station</string>
842 </property> 914 </property>
843 </widget>
844 <widget row="1" column="0" >
845 <class>QLabel</class>
846 <property stdset="1"> 915 <property stdset="1">
847 <name>name</name> 916 <name>sizePolicy</name>
848 <cstring>TextLabel2_3</cstring> 917 <sizepolicy>
918 <hsizetype>7</hsizetype>
919 <vsizetype>1</vsizetype>
920 </sizepolicy>
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>
@@ -970,32 +1039,14 @@
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">
@@ -1004,7 +1055,7 @@
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>
@@ -1047,6 +1098,27 @@
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>