Changeset 3871
- Timestamp:
- 05/05/09 19:54:08 (10 months ago)
- Location:
- pcbsd
- Files:
-
- 20 modified
-
trunk-current/wificonfig/dialogwpaenterprise.cpp (modified) (1 diff)
-
trunk-current/wificonfig/dialogwpaenterprise.h (modified) (1 diff)
-
trunk-current/wificonfig/dialogwpaenterprise.ui (modified) (5 diffs)
-
trunk-current/wificonfig/dialogwpapersonal.cpp (modified) (1 diff)
-
trunk-current/wificonfig/dialogwpapersonal.h (modified) (1 diff)
-
trunk-current/wificonfig/dialogwpapersonal.ui (modified) (4 diffs)
-
trunk-current/wificonfig/wepconfig.cpp (modified) (1 diff)
-
trunk-current/wificonfig/wepconfig.h (modified) (1 diff)
-
trunk-current/wificonfig/wepconfig.ui (modified) (3 diffs)
-
trunk-current/wificonfig/wificonfigwidgetbase.cpp (modified) (6 diffs)
-
trunk/wificonfig/dialogwpaenterprise.cpp (modified) (1 diff)
-
trunk/wificonfig/dialogwpaenterprise.h (modified) (1 diff)
-
trunk/wificonfig/dialogwpaenterprise.ui (modified) (5 diffs)
-
trunk/wificonfig/dialogwpapersonal.cpp (modified) (1 diff)
-
trunk/wificonfig/dialogwpapersonal.h (modified) (1 diff)
-
trunk/wificonfig/dialogwpapersonal.ui (modified) (4 diffs)
-
trunk/wificonfig/wepconfig.cpp (modified) (1 diff)
-
trunk/wificonfig/wepconfig.h (modified) (1 diff)
-
trunk/wificonfig/wepconfig.ui (modified) (3 diffs)
-
trunk/wificonfig/wificonfigwidgetbase.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pcbsd/trunk-current/wificonfig/dialogwpaenterprise.cpp
r2166 r3871 142 142 143 143 } 144 145 void dialogWPAEnterprise::slotShowKey() 146 { 147 if(checkShowKey->isChecked()) 148 { 149 linePrivateKeyPassword->setEchoMode(QLineEdit::Normal); 150 linePrivateKeyPassword2->setEchoMode(QLineEdit::Normal); 151 } else { 152 linePrivateKeyPassword->setEchoMode(QLineEdit::Password); 153 linePrivateKeyPassword2->setEchoMode(QLineEdit::Password); 154 } 155 } -
pcbsd/trunk-current/wificonfig/dialogwpaenterprise.h
r2166 r3871 29 29 void slotSelectClientCert(); 30 30 void slotSelectPrivateKeyFile(); 31 void slotShowKey(); 31 32 32 33 private: -
pcbsd/trunk-current/wificonfig/dialogwpaenterprise.ui
r2166 r3871 6 6 <x>0</x> 7 7 <y>0</y> 8 <width> 395</width>9 <height>3 38</height>8 <width>424</width> 9 <height>378</height> 10 10 </rect> 11 11 </property> … … 49 49 <string>WPA Enterprise Configuration</string> 50 50 </property> 51 <layout class="QGridLayout" >51 <layout class="QGridLayout" name="gridLayout" > 52 52 <item row="0" column="0" colspan="2" > 53 53 <widget class="QLabel" name="textLabel1" > … … 57 57 <property name="wordWrap" > 58 58 <bool>false</bool> 59 </property>60 </widget>61 </item>62 <item row="2" column="1" colspan="2" >63 <widget class="QLineEdit" name="lineEAPIdentity" />64 </item>65 <item row="2" column="0" >66 <widget class="QLabel" name="textLabel2" >67 <property name="text" >68 <string>EAP Identity:</string>69 </property>70 <property name="alignment" >71 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>72 </property>73 <property name="wordWrap" >74 <bool>false</bool>75 </property>76 </widget>77 </item>78 <item row="3" column="0" >79 <widget class="QLabel" name="textCACert" >80 <property name="text" >81 <string>CA Certificate:</string>82 </property>83 <property name="alignment" >84 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>85 </property>86 <property name="wordWrap" >87 <bool>false</bool>88 </property>89 </widget>90 </item>91 <item row="4" column="0" >92 <widget class="QLabel" name="textClientCert" >93 <property name="text" >94 <string>Client Certificate:</string>95 </property>96 <property name="alignment" >97 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>98 </property>99 <property name="wordWrap" >100 <bool>false</bool>101 </property>102 </widget>103 </item>104 <item row="5" column="0" >105 <widget class="QLabel" name="textPrivateKeyFile" >106 <property name="text" >107 <string>Private Key File:</string>108 </property>109 <property name="alignment" >110 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>111 </property>112 <property name="wordWrap" >113 <bool>false</bool>114 </property>115 </widget>116 </item>117 <item row="3" column="1" >118 <widget class="QLineEdit" name="lineCACert" >119 <property name="readOnly" >120 <bool>true</bool>121 </property>122 </widget>123 </item>124 <item row="4" column="1" >125 <widget class="QLineEdit" name="lineClientCert" >126 <property name="readOnly" >127 <bool>true</bool>128 </property>129 </widget>130 </item>131 <item row="5" column="1" >132 <widget class="QLineEdit" name="linePrivateKeyFile" >133 <property name="readOnly" >134 <bool>true</bool>135 </property>136 </widget>137 </item>138 <item row="3" column="2" >139 <widget class="QPushButton" name="pushSelectCACert" >140 <property name="text" >141 <string/>142 </property>143 </widget>144 </item>145 <item row="6" column="0" >146 <widget class="QLabel" name="textPrivateKey" >147 <property name="text" >148 <string>Password:</string>149 </property>150 <property name="alignment" >151 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>152 </property>153 <property name="wordWrap" >154 <bool>false</bool>155 </property>156 </widget>157 </item>158 <item row="7" column="0" >159 <widget class="QLabel" name="textPrivateKey2" >160 <property name="text" >161 <string>Repeat Password:</string>162 </property>163 <property name="alignment" >164 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>165 </property>166 <property name="wordWrap" >167 <bool>false</bool>168 </property>169 </widget>170 </item>171 <item row="7" column="1" colspan="2" >172 <widget class="QLineEdit" name="linePrivateKeyPassword2" >173 <property name="echoMode" >174 <enum>QLineEdit::Password</enum>175 </property>176 </widget>177 </item>178 <item row="6" column="1" colspan="2" >179 <widget class="QLineEdit" name="linePrivateKeyPassword" >180 <property name="echoMode" >181 <enum>QLineEdit::Password</enum>182 </property>183 </widget>184 </item>185 <item row="4" column="2" >186 <widget class="QPushButton" name="pushSelectClientCert" >187 <property name="text" >188 <string/>189 </property>190 </widget>191 </item>192 <item row="5" column="2" >193 <widget class="QPushButton" name="pushSelectPrivateKeyFile" >194 <property name="text" >195 <string/>196 59 </property> 197 60 </widget> … … 225 88 </layout> 226 89 </item> 90 <item row="2" column="0" > 91 <widget class="QLabel" name="textLabel2" > 92 <property name="text" > 93 <string>EAP Identity:</string> 94 </property> 95 <property name="alignment" > 96 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 97 </property> 98 <property name="wordWrap" > 99 <bool>false</bool> 100 </property> 101 </widget> 102 </item> 103 <item row="2" column="1" colspan="2" > 104 <widget class="QLineEdit" name="lineEAPIdentity" /> 105 </item> 106 <item row="3" column="0" > 107 <widget class="QLabel" name="textCACert" > 108 <property name="text" > 109 <string>CA Certificate:</string> 110 </property> 111 <property name="alignment" > 112 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 113 </property> 114 <property name="wordWrap" > 115 <bool>false</bool> 116 </property> 117 </widget> 118 </item> 119 <item row="3" column="1" > 120 <widget class="QLineEdit" name="lineCACert" > 121 <property name="readOnly" > 122 <bool>true</bool> 123 </property> 124 </widget> 125 </item> 126 <item row="3" column="2" > 127 <widget class="QPushButton" name="pushSelectCACert" > 128 <property name="text" > 129 <string/> 130 </property> 131 </widget> 132 </item> 133 <item row="4" column="0" > 134 <widget class="QLabel" name="textClientCert" > 135 <property name="text" > 136 <string>Client Certificate:</string> 137 </property> 138 <property name="alignment" > 139 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 140 </property> 141 <property name="wordWrap" > 142 <bool>false</bool> 143 </property> 144 </widget> 145 </item> 146 <item row="4" column="1" > 147 <widget class="QLineEdit" name="lineClientCert" > 148 <property name="readOnly" > 149 <bool>true</bool> 150 </property> 151 </widget> 152 </item> 153 <item row="4" column="2" > 154 <widget class="QPushButton" name="pushSelectClientCert" > 155 <property name="text" > 156 <string/> 157 </property> 158 </widget> 159 </item> 160 <item row="5" column="0" > 161 <widget class="QLabel" name="textPrivateKeyFile" > 162 <property name="text" > 163 <string>Private Key File:</string> 164 </property> 165 <property name="alignment" > 166 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 167 </property> 168 <property name="wordWrap" > 169 <bool>false</bool> 170 </property> 171 </widget> 172 </item> 173 <item row="5" column="1" > 174 <widget class="QLineEdit" name="linePrivateKeyFile" > 175 <property name="readOnly" > 176 <bool>true</bool> 177 </property> 178 </widget> 179 </item> 180 <item row="5" column="2" > 181 <widget class="QPushButton" name="pushSelectPrivateKeyFile" > 182 <property name="text" > 183 <string/> 184 </property> 185 </widget> 186 </item> 187 <item row="6" column="0" > 188 <widget class="QLabel" name="textPrivateKey" > 189 <property name="text" > 190 <string>Password:</string> 191 </property> 192 <property name="alignment" > 193 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 194 </property> 195 <property name="wordWrap" > 196 <bool>false</bool> 197 </property> 198 </widget> 199 </item> 200 <item row="6" column="1" colspan="2" > 201 <widget class="QLineEdit" name="linePrivateKeyPassword" > 202 <property name="echoMode" > 203 <enum>QLineEdit::Password</enum> 204 </property> 205 </widget> 206 </item> 207 <item row="7" column="0" > 208 <widget class="QLabel" name="textPrivateKey2" > 209 <property name="text" > 210 <string>Repeat Password:</string> 211 </property> 212 <property name="alignment" > 213 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 214 </property> 215 <property name="wordWrap" > 216 <bool>false</bool> 217 </property> 218 </widget> 219 </item> 220 <item row="7" column="1" colspan="2" > 221 <widget class="QLineEdit" name="linePrivateKeyPassword2" > 222 <property name="echoMode" > 223 <enum>QLineEdit::Password</enum> 224 </property> 225 </widget> 226 </item> 227 <item row="8" column="0" colspan="3" > 228 <widget class="QCheckBox" name="checkShowKey" > 229 <property name="text" > 230 <string>Show Key</string> 231 </property> 232 </widget> 233 </item> 227 234 </layout> 228 235 </widget> … … 359 366 </hints> 360 367 </connection> 368 <connection> 369 <sender>checkShowKey</sender> 370 <signal>clicked()</signal> 371 <receiver>dialogWPAEnterprise</receiver> 372 <slot>slotShowKey()</slot> 373 <hints> 374 <hint type="sourcelabel" > 375 <x>211</x> 376 <y>299</y> 377 </hint> 378 <hint type="destinationlabel" > 379 <x>211</x> 380 <y>188</y> 381 </hint> 382 </hints> 383 </connection> 361 384 </connections> 362 385 </ui> -
pcbsd/trunk-current/wificonfig/dialogwpapersonal.cpp
r2904 r3871 38 38 close(); 39 39 } 40 41 void dialogWPAPersonal::slotShowKey() 42 { 43 if(checkShowKey->isChecked()) 44 { 45 lineKey2->setEchoMode(QLineEdit::Normal); 46 lineKey->setEchoMode(QLineEdit::Normal); 47 } else { 48 lineKey2->setEchoMode(QLineEdit::Password); 49 lineKey->setEchoMode(QLineEdit::Password); 50 } 51 } 52 -
pcbsd/trunk-current/wificonfig/dialogwpapersonal.h
r2166 r3871 23 23 private slots: 24 24 void slotClose(); 25 void slotShowKey(); 25 26 26 27 private: -
pcbsd/trunk-current/wificonfig/dialogwpapersonal.ui
r2166 r3871 6 6 <x>0</x> 7 7 <y>0</y> 8 <width>3 08</width>9 <height>1 49</height>8 <width>319</width> 9 <height>174</height> 10 10 </rect> 11 11 </property> … … 17 17 <normaloff>:/tray_wifi85.png</normaloff>:/tray_wifi85.png</iconset> 18 18 </property> 19 <layout class="QGridLayout" >20 <item row=" 1" column="1" >21 <widget class="Q PushButton" name="pushClose" >22 <property name="t ext" >23 <string> &Close</string>19 <layout class="QGridLayout" name="gridLayout_2" > 20 <item row="0" column="0" colspan="2" > 21 <widget class="Q3GroupBox" name="groupBox3" > 22 <property name="title" > 23 <string>Wireless Network Key</string> 24 24 </property> 25 <property name=" shortcut" >26 < string>Alt+C</string>25 <property name="frameShape" > 26 <enum>Q3GroupBox::GroupBoxPanel</enum> 27 27 </property> 28 <property name="frameShadow" > 29 <enum>Q3GroupBox::Sunken</enum> 30 </property> 31 <layout class="QGridLayout" name="gridLayout" > 32 <item row="0" column="0" > 33 <widget class="QLabel" name="textLabel1" > 34 <property name="text" > 35 <string>Network Key</string> 36 </property> 37 <property name="wordWrap" > 38 <bool>false</bool> 39 </property> 40 </widget> 41 </item> 42 <item row="0" column="1" > 43 <widget class="QLineEdit" name="lineKey" > 44 <property name="minimumSize" > 45 <size> 46 <width>150</width> 47 <height>0</height> 48 </size> 49 </property> 50 <property name="echoMode" > 51 <enum>QLineEdit::Password</enum> 52 </property> 53 </widget> 54 </item> 55 <item row="1" column="0" > 56 <widget class="QLabel" name="textLabel1_2" > 57 <property name="text" > 58 <string>Network Key (Repeat)</string> 59 </property> 60 <property name="wordWrap" > 61 <bool>false</bool> 62 </property> 63 </widget> 64 </item> 65 <item row="1" column="1" > 66 <widget class="QLineEdit" name="lineKey2" > 67 <property name="minimumSize" > 68 <size> 69 <width>150</width> 70 <height>0</height> 71 </size> 72 </property> 73 <property name="echoMode" > 74 <enum>QLineEdit::Password</enum> 75 </property> 76 </widget> 77 </item> 78 <item row="2" column="0" colspan="2" > 79 <widget class="QCheckBox" name="checkShowKey" > 80 <property name="text" > 81 <string>Show Key</string> 82 </property> 83 </widget> 84 </item> 85 </layout> 28 86 </widget> 29 87 </item> … … 44 102 </spacer> 45 103 </item> 46 <item row=" 0" column="0" colspan="2" >47 <widget class="Q 3GroupBox" name="groupBox3" >48 <property name="t itle" >49 <string> Wireless network key</string>104 <item row="1" column="1" > 105 <widget class="QPushButton" name="pushClose" > 106 <property name="text" > 107 <string>&Close</string> 50 108 </property> 51 <property name=" frameShape" >52 < enum>Q3GroupBox::GroupBoxPanel</enum>109 <property name="shortcut" > 110 <string>Alt+C</string> 53 111 </property> 54 <property name="frameShadow" >55 <enum>Q3GroupBox::Sunken</enum>56 </property>57 <layout class="QGridLayout" >58 <item row="0" column="0" >59 <widget class="QLabel" name="textLabel1" >60 <property name="text" >61 <string>Network Key</string>62 </property>63 <property name="wordWrap" >64 <bool>false</bool>65 </property>66 </widget>67 </item>68 <item row="0" column="1" >69 <widget class="QLineEdit" name="lineKey" >70 <property name="echoMode" >71 <enum>QLineEdit::Password</enum>72 </property>73 </widget>74 </item>75 <item row="1" column="1" >76 <widget class="QLineEdit" name="lineKey2" >77 <property name="echoMode" >78 <enum>QLineEdit::Password</enum>79 </property>80 </widget>81 </item>82 <item row="1" column="0" >83 <widget class="QLabel" name="textLabel1_2" >84 <property name="text" >85 <string>Network Key (Repeat)</string>86 </property>87 <property name="wordWrap" >88 <bool>false</bool>89 </property>90 </widget>91 </item>92 </layout>93 112 </widget> 94 113 </item> … … 128 147 </hints> 129 148 </connection> 149 <connection> 150 <sender>checkShowKey</sender> 151 <signal>clicked()</signal> 152 <receiver>dialogWPAPersonal</receiver> 153 <slot>slotShowKey()</slot> 154 <hints> 155 <hint type="sourcelabel" > 156 <x>129</x> 157 <y>85</y> 158 </hint> 159 <hint type="destinationlabel" > 160 <x>129</x> 161 <y>73</y> 162 </hint> 163 </hints> 164 </connection> 130 165 </connections> 131 166 </ui> -
pcbsd/trunk-current/wificonfig/wepconfig.cpp
r2446 r3871 56 56 } 57 57 } 58 59 void wepConfig::slotShowKey() 60 { 61 if(checkShowKey->isChecked()) 62 { 63 lineKey2->setEchoMode(QLineEdit::Normal); 64 lineKey->setEchoMode(QLineEdit::Normal); 65 } else { 66 lineKey2->setEchoMode(QLineEdit::Password); 67 lineKey->setEchoMode(QLineEdit::Password); 68 } 69 } 70 -
pcbsd/trunk-current/wificonfig/wepconfig.h
r2446 r3871 23 23 private slots: 24 24 void slotClose(); 25 void slotShowKey(); 25 26 26 27 private: -
pcbsd/trunk-current/wificonfig/wepconfig.ui
r2446 r3871 6 6 <x>0</x> 7 7 <y>0</y> 8 <width>3 24</width>9 <height>2 22</height>8 <width>342</width> 9 <height>234</height> 10 10 </rect> 11 11 </property> … … 114 114 </property> 115 115 </spacer> 116 </item> 117 <item row="4" column="0" colspan="3" > 118 <widget class="QCheckBox" name="checkShowKey" > 119 <property name="text" > 120 <string>Show Key</string> 121 </property> 122 </widget> 116 123 </item> 117 124 </layout> … … 179 186 </hints> 180 187 </connection> 188 <connection> 189 <sender>checkShowKey</sender> 190 <signal>clicked()</signal> 191 <receiver>wepConfig</receiver> 192 <slot>slotShowKey()</slot> 193 <hints> 194 <hint type="sourcelabel" > 195 <x>170</x> 196 <y>177</y> 197 </hint> 198 <hint type="destinationlabel" > 199 <x>170</x> 200 <y>116</y> 201 </hint> 202 </hints> 203 </connection> 181 204 </connections> 182 205 </ui> -
pcbsd/trunk-current/wificonfig/wificonfigwidgetbase.cpp
r3870 r3871 403 403 int tmpInt; 404 404 bool tmpBool; 405 int curRow = 1; 406 bool MovedItem = false; 405 407 406 408 // Check if we have a selection to work with … … 465 467 WPAEType[i-1] = WPAEType[i]; 466 468 WPAEType[i] = tmpInt; 469 curRow=i-1; 470 MovedItem=true; 467 471 break; 468 472 } … … 470 474 471 475 // Refresh the SSID list and enable the apply button 472 slotRefreshSSIDList(); 473 pushApply->setEnabled(TRUE); 476 if ( MovedItem) { 477 slotRefreshSSIDList(); 478 pushApply->setEnabled(TRUE); 479 listWifi->setCurrentRow(curRow); 480 } 474 481 } 475 482 } … … 482 489 int tmpInt; 483 490 bool tmpBool; 491 int curRow = 1; 492 bool MovedItem = false; 484 493 485 494 // Check if we have a selection to work with … … 544 553 WPAEType[i+1] = WPAEType[i]; 545 554 WPAEType[i] = tmpInt; 555 curRow=i+1; 556 MovedItem=true; 546 557 break; 547 558 } … … 549 560 550 561 // Refresh the SSID list and enable the apply button 551 slotRefreshSSIDList(); 552 pushApply->setEnabled(TRUE); 562 if ( MovedItem) { 563 slotRefreshSSIDList(); 564 pushApply->setEnabled(TRUE); 565 listWifi->setCurrentRow(curRow); 566 } 567 553 568 } 554 569 } -
pcbsd/trunk/wificonfig/dialogwpaenterprise.cpp
r2166 r3871 142 142 143 143 } 144 145 void dialogWPAEnterprise::slotShowKey() 146 { 147 if(checkShowKey->isChecked()) 148 { 149 linePrivateKeyPassword->setEchoMode(QLineEdit::Normal); 150 linePrivateKeyPassword2->setEchoMode(QLineEdit::Normal); 151 } else { 152 linePrivateKeyPassword->setEchoMode(QLineEdit::Password); 153 linePrivateKeyPassword2->setEchoMode(QLineEdit::Password); 154 } 155 } -
pcbsd/trunk/wificonfig/dialogwpaenterprise.h
r2166 r3871 29 29 void slotSelectClientCert(); 30 30 void slotSelectPrivateKeyFile(); 31 void slotShowKey(); 31 32 32 33 private: -
pcbsd/trunk/wificonfig/dialogwpaenterprise.ui
r2166 r3871 6 6 <x>0</x> 7 7 <y>0</y> 8 <width> 395</width>9 <height>3 38</height>8 <width>424</width> 9 <height>378</height> 10 10 </rect> 11 11 </property> … … 49 49 <string>WPA Enterprise Configuration</string> 50 50 </property> 51 <layout class="QGridLayout" >51 <layout class="QGridLayout" name="gridLayout" > 52 52 <item row="0" column="0" colspan="2" > 53 53 <widget class="QLabel" name="textLabel1" > … … 57 57 <property name="wordWrap" > 58 58 <bool>false</bool> 59 </property>60 </widget>61 </item>62 <item row="2" column="1" colspan="2" >63 <widget class="QLineEdit" name="lineEAPIdentity" />64 </item>65 <item row="2" column="0" >66 <widget class="QLabel" name="textLabel2" >67 <property name="text" >68 <string>EAP Identity:</string>69 </property>70 <property name="alignment" >71 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>72 </property>73 <property name="wordWrap" >74 <bool>false</bool>75 </property>76 </widget>77 </item>78 <item row="3" column="0" >79 <widget class="QLabel" name="textCACert" >80 <property name="text" >81 <string>CA Certificate:</string>82 </property>83 <property name="alignment" >84 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>85 </property>86 <property name="wordWrap" >87 <bool>false</bool>88 </property>89 </widget>90 </item>91 <item row="4" column="0" >92 <widget class="QLabel" name="textClientCert" >93 <property name="text" >94 <string>Client Certificate:</string>95 </property>96 <property name="alignment" >97 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>98 </property>99 <property name="wordWrap" >100 <bool>false</bool>101 </property>102 </widget>103 </item>104 <item row="5" column="0" >105 <widget class="QLabel" name="textPrivateKeyFile" >106 <property name="text" >107 <string>Private Key File:</string>108 </property>109 <property name="alignment" >110 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>111 </property>112 <property name="wordWrap" >113 <bool>false</bool>114 </property>115 </widget>116 </item>117 <item row="3" column="1" >118 <widget class="QLineEdit" name="lineCACert" >119 <property name="readOnly" >120 <bool>true</bool>121 </property>122 </widget>123 </item>124 <item row="4" column="1" >125 <widget class="QLineEdit" name="lineClientCert" >126 <property name="readOnly" >127 <bool>true</bool>128 </property>129 </widget>130 </item>131 <item row="5" column="1" >132 <widget class="QLineEdit" name="linePrivateKeyFile" >133 <property name="readOnly" >134 <bool>true</bool>135 </property>136 </widget>137 </item>138 <item row="3" column="2" >139 <widget class="QPushButton" name="pushSelectCACert" >140 <property name="text" >141 <string/>142 </property>143 </widget>144 </item>145 <item row="6" column="0" >146 <widget class="QLabel" name="textPrivateKey" >147 <property name="text" >148 <string>Password:</string>149 </property>150 <property name="alignment" >151 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>152 </property>153 <property name="wordWrap" >154 <bool>false</bool>155 </property>156 </widget>157 </item>158 <item row="7" column="0" >159 <widget class="QLabel" name="textPrivateKey2" >160 <property name="text" >161 <string>Repeat Password:</string>162 </property>163 <property name="alignment" >164 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>165 </property>166 <property name="wordWrap" >167 <bool>false</bool>168 </property>169 </widget>170 </item>171 <item row="7" column="1" colspan="2" >172 <widget class="QLineEdit" name="linePrivateKeyPassword2" >173 <property name="echoMode" >174 <enum>QLineEdit::Password</enum>175 </property>176 </widget>177 </item>178 <item row="6" column="1" colspan="2" >179 <widget class="QLineEdit" name="linePrivateKeyPassword" >180 <property name="echoMode" >181 <enum>QLineEdit::Password</enum>182 </property>183 </widget>184 </item>185 <item row="4" column="2" >186 <widget class="QPushButton" name="pushSelectClientCert" >187 <property name="text" >188 <string/>189 </property>190 </widget>191 </item>192 <item row="5" column="2" >193 <widget class="QPushButton" name="pushSelectPrivateKeyFile" >194 <property name="text" >195 <string/>196 59 </property> 197 60 </widget> … … 225 88 </layout> 226 89 </item> 90 <item row="2" column="0" > 91 <widget class="QLabel" name="textLabel2" > 92 <property name="text" > 93 <string>EAP Identity:</string> 94 </property> 95 <property name="alignment" > 96 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 97 </property> 98 <property name="wordWrap" > 99 <bool>false</bool> 100 </property> 101 </widget> 102 </item> 103 <item row="2" column="1" colspan="2" > 104 <widget class="QLineEdit" name="lineEAPIdentity" /> 105 </item> 106 <item row="3" column="0" > 107 <widget class="QLabel" name="textCACert" > 108 <property name="text" > 109 <string>CA Certificate:</string> 110 </property> 111 <property name="alignment" > 112 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 113 </property> 114 <property name="wordWrap" > 115 <bool>false</bool> 116 </property> 117 </widget> 118 </item> 119 <item row="3" column="1" > 120 <widget class="QLineEdit" name="lineCACert" > 121 <property name="readOnly" > 122 <bool>true</bool> 123 </property> 124 </widget> 125 </item> 126 <item row="3" column="2" > 127 <widget class="QPushButton" name="pushSelectCACert" > 128 <property name="text" > 129 <string/> 130 </property> 131 </widget> 132 </item> 133 <item row="4" column="0" > 134 <widget class="QLabel" name="textClientCert" > 135 <property name="text" > 136 <string>Client Certificate:</string> 137 </property> 138 <property name="alignment" > 139 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 140 </property> 141 <property name="wordWrap" > 142 <bool>false</bool> 143 </property> 144 </widget> 145 </item> 146 <item row="4" column="1" > 147 <widget class="QLineEdit" name="lineClientCert" > 148 <property name="readOnly" > 149 <bool>true</bool> 150 </property> 151 </widget> 152 </item> 153 <item row="4" column="2" > 154 <widget class="QPushButton" name="pushSelectClientCert" > 155 <property name="text" > 156 <string/> 157 </property> 158 </widget> 159 </item> 160 <item row="5" column="0" > 161 <widget class="QLabel" name="textPrivateKeyFile" > 162 <property name="text" > 163 <string>Private Key File:</string> 164 </property> 165 <property name="alignment" > 166 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 167 </property> 168 <property name="wordWrap" > 169 <bool>false</bool> 170 </property> 171 </widget> 172 </item> 173 <item row="5" column="1" > 174 <widget class="QLineEdit" name="linePrivateKeyFile" > 175 <property name="readOnly" > 176 <bool>true</bool> 177 </property> 178 </widget> 179 </item> 180 <item row="5" column="2" > 181 <widget class="QPushButton" name="pushSelectPrivateKeyFile" > 182 <property name="text" > 183 <string/> 184 </property> 185 </widget> 186 </item> 187 <item row="6" column="0" > 188 <widget class="QLabel" name="textPrivateKey" > 189 <property name="text" > 190 <string>Password:</string> 191 </property> 192 <property name="alignment" > 193 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 194 </property> 195 <property name="wordWrap" > 196 <bool>false</bool> 197 </property> 198 </widget> 199 </item> 200 <item row="6" column="1" colspan="2" > 201 <widget class="QLineEdit" name="linePrivateKeyPassword" > 202 <property name="echoMode" > 203 <enum>QLineEdit::Password</enum> 204 </property> 205 </widget> 206 </item> 207 <item row="7" column="0" > 208 <widget class="QLabel" name="textPrivateKey2" > 209 <property name="text" > 210 <string>Repeat Password:</string> 211 </property> 212 <property name="alignment" > 213 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 214 </property> 215 <property name="wordWrap" > 216 <bool>false</bool> 217 </property> 218 </widget> 219 </item> 220 <item row="7" column="1" colspan="2" > 221 <widget class="QLineEdit" name="linePrivateKeyPassword2" > 222 <property name="echoMode" > 223 <enum>QLineEdit::Password</enum> 224 </property> 225 </widget> 226 </item> 227 <item row="8" column="0" colspan="3" > 228 <widget class="QCheckBox" name="checkShowKey" > 229 <property name="text" > 230 <string>Show Key</string> 231 </property> 232 </widget> 233 </item> 227 234 </layout> 228 235 </widget> … … 359 366 </hints> 360 367 </connection> 368 <connection> 369 <sender>checkShowKey</sender> 370 <signal>clicked()</signal> 371 <receiver>dialogWPAEnterprise</receiver> 372 <slot>slotShowKey()</slot> 373 <hints> 374 <hint type="sourcelabel" > 375 <x>211</x> 376 <y>299</y> 377 </hint> 378 <hint type="destinationlabel" > 379 <x>211</x> 380 <y>188</y> 381 </hint> 382 </hints> 383 </connection> 361 384 </connections> 362 385 </ui> -
pcbsd/trunk/wificonfig/dialogwpapersonal.cpp
r2904 r3871 38 38 close(); 39 39 } 40 41 void dialogWPAPersonal::slotShowKey() 42 { 43 if(checkShowKey->isChecked()) 44 { 45 lineKey2->setEchoMode(QLineEdit::Normal); 46 lineKey->setEchoMode(QLineEdit::Normal); 47 } else { 48 lineKey2->setEchoMode(QLineEdit::Password); 49 lineKey->setEchoMode(QLineEdit::Password); 50 } 51 } 52 -
pcbsd/trunk/wificonfig/dialogwpapersonal.h
r2166 r3871 23 23 private slots: 24 24 void slotClose(); 25 void slotShowKey(); 25 26 26 27 private: -
pcbsd/trunk/wificonfig/dialogwpapersonal.ui
r2166 r3871 6 6 <x>0</x> 7 7 <y>0</y> 8 <width>3 08</width>9 <height>1 49</height>8 <width>319</width> 9 <height>174</height> 10 10 </rect> 11 11 </property> … … 17 17 <normaloff>:/tray_wifi85.png</normaloff>:/tray_wifi85.png</iconset> 18 18 </property> 19 <layout class="QGridLayout" >20 <item row=" 1" column="1" >21 <widget class="Q PushButton" name="pushClose" >22 <property name="t ext" >23 <string> &Close</string>19 <layout class="QGridLayout" name="gridLayout_2" > 20 <item row="0" column="0" colspan="2" > 21 <widget class="Q3GroupBox" name="groupBox3" > 22 <property name="title" > 23 <string>Wireless Network Key</string> 24 24 </property> 25 <property name=" shortcut" >26 < string>Alt+C</string>25 <property name="frameShape" > 26 <enum>Q3GroupBox::GroupBoxPanel</enum> 27 27 </property> 28 <property name="frameShadow" > 29 <enum>Q3GroupBox::Sunken</enum> 30 </property> 31 <layout class="QGridLayout" name="gridLayout" > 32 <item row="0" column="0" > 33 <widget class="QLabel" name="textLabel1" > 34 <property name="text" > 35 <string>Network Key</string> 36 </property> 37 <property name="wordWrap" > 38 <bool>false</bool> 39 </property> 40 </widget> 41 </item> 42 <item row="0" column="1" > 43 <widget class="QLineEdit" name="lineKey" > 44 <property name="minimumSize" > 45 <size> 46 <width>150</width> 47 <height>0</height> 48 </size> 49 </property> 50 <property name="echoMode" > 51 <enum>QLineEdit::Password</enum> 52 </property> 53 </widget> 54 </item> 55 <item row="1" column="0" > 56 <widget class="QLabel" name="textLabel1_2" > 57 <property name="text" > 58 <string>Network Key (Repeat)</string> 59 </property> 60 <property name="wordWrap" > 61 <bool>false</bool> 62 </property> 63 </widget> 64 </item> 65 <item row="1" column="1" > 66 <widget class="QLineEdit" name="lineKey2" > 67 <property name="minimumSize" > 68 <size> 69 <width>150</width> 70 <height>0</height> 71 </size> 72 </property> 73 <property name="echoMode" > 74 <enum>QLineEdit::Password</enum> 75 </property> 76 </widget> 77 </item> 78 <item row="2" column="0" colspan="2" > 79 <widget class="QCheckBox" name="checkShowKey" > 80 <property name="text" > 81 <string>Show Key</string> 82 </property> 83 </widget> 84 </item> 85 </layout> 28 86 </widget> 29 87 </item> … … 44 102 </spacer> 45 103 </item> 46 <item row=" 0" column="0" colspan="2" >47 <widget class="Q 3GroupBox" name="groupBox3" >48 <property name="t itle" >49 <string> Wireless network key</string>104 <item row="1" column="1" > 105 <widget class="QPushButton" name="pushClose" > 106 <property name="text" > 107 <string>&Close</string> 50 108 </property> 51 <property name=" frameShape" >52 < enum>Q3GroupBox::GroupBoxPanel</enum>109 <property name="shortcut" > 110 <string>Alt+C</string> 53 111 </property> 54 <property name="frameShadow" >55 <enum>Q3GroupBox::Sunken</enum>56 </property>57 <layout class="QGridLayout" >58 <item row="0" column="0" >59 <widget class="QLabel" name="textLabel1" >60 <property name="text" >61 <string>Network Key</string>62 </property>63 <property name="wordWrap" >64 <bool>false</bool>65 </property>66 </widget>67 </item>68 <item row="0" column="1" >69 <widget class="QLineEdit" name="lineKey" >70 <property name="echoMode" >71 <enum>QLineEdit::Password</enum>72 </property>73 </widget>74 </item>75 <item row="1" column="1" >76 <widget class="QLineEdit" name="lineKey2" >77 <property name="echoMode" >78 <enum>QLineEdit::Password</enum>79 </property>80 </widget>81 </item>82 <item row="1" column="0" >83 <widget class="QLabel" name="textLabel1_2" >84 <property name="text" >85 <string>Network Key (Repeat)</string>86 </property>87 <property name="wordWrap" >88 <bool>false</bool>89 </property>90 </widget>91 </item>92 </layout>93 112 </widget> 94 113 </item> … … 128 147 </hints> 129 148 </connection> 149 <connection> 150 <sender>checkShowKey</sender> 151 <signal>clicked()</signal> 152 <receiver>dialogWPAPersonal</receiver> 153 <slot>slotShowKey()</slot> 154 <hints> 155 <hint type="sourcelabel" > 156 <x>129</x> 157 <y>85</y> 158 </hint> 159 <hint type="destinationlabel" > 160 <x>129</x> 161 <y>73</y> 162 </hint> 163 </hints> 164 </connection> 130 165 </connections> 131 166 </ui> -
pcbsd/trunk/wificonfig/wepconfig.cpp
r2446 r3871 56 56 } 57 57 } 58 59 void wepConfig::slotShowKey() 60 { 61 if(checkShowKey->isChecked()) 62 { 63 lineKey2->setEchoMode(QLineEdit::Normal); 64 lineKey->setEchoMode(QLineEdit::Normal); 65 } else { 66 lineKey2->setEchoMode(QLineEdit::Password); 67 lineKey->setEchoMode(QLineEdit::Password); 68 } 69 } 70 -
pcbsd/trunk/wificonfig/wepconfig.h
r2446 r3871 23 23 private slots: 24 24 void slotClose(); 25 void slotShowKey(); 25 26 26 27 private: -
pcbsd/trunk/wificonfig/wepconfig.ui
r2446 r3871 6 6 <x>0</x> 7 7 <y>0</y> 8 <width>3 24</width>9 <height>2 22</height>8 <width>342</width> 9 <height>234</height> 10 10 </rect> 11 11 </property> … … 114 114 </property> 115 115 </spacer> 116 </item> 117 <item row="4" column="0" colspan="3" > 118 <widget class="QCheckBox" name="checkShowKey" > 119 <property name="text" > 120 <string>Show Key</string> 121 </property> 122 </widget> 116 123 </item> 117 124 </layout> … … 179 186 </hints> 180 187 </connection> 188 <connection> 189 <sender>checkShowKey</sender> 190 <signal>clicked()</signal> 191 <receiver>wepConfig</receiver> 192 <slot>slotShowKey()</slot> 193 <hints> 194 <hint type="sourcelabel" > 195 <x>170</x> 196 <y>177</y> 197 </hint> 198 <hint type="destinationlabel" > 199 <x>170</x> 200 <y>116</y> 201 </hint> 202 </hints> 203 </connection> 181 204 </connections> 182 205 </ui> -
pcbsd/trunk/wificonfig/wificonfigwidgetbase.cpp
r3870 r3871 403 403 int tmpInt; 404 404 bool tmpBool; 405 int curRow = 1; 406 bool MovedItem = false; 405 407 406 408 // Check if we have a selection to work with … … 465 467 WPAEType[i-1] = WPAEType[i]; 466 468 WPAEType[i] = tmpInt; 469 curRow=i-1; 470 MovedItem=true; 467 471 break; 468 472 } … … 470 474 471 475 // Refresh the SSID list and enable the apply button 472 slotRefreshSSIDList(); 473 pushApply->setEnabled(TRUE); 476 if ( MovedItem) { 477 slotRefreshSSIDList(); 478 pushApply->setEnabled(TRUE); 479 listWifi->setCurrentRow(curRow); 480 } 474 481 } 475 482 } … … 482 489 int tmpInt; 483 490 bool tmpBool; 491 int curRow = 1; 492 bool MovedItem = false; 484 493 485 494 // Check if we have a selection to work with … … 544 553 WPAEType[i+1] = WPAEType[i]; 545 554 WPAEType[i] = tmpInt; 555 curRow=i+1; 556 MovedItem=true; 546 557 break; 547 558 } … … 549 560 550 561 // Refresh the SSID list and enable the apply button 551 slotRefreshSSIDList(); 552 pushApply->setEnabled(TRUE); 562 if ( MovedItem) { 563 slotRefreshSSIDList(); 564 pushApply->setEnabled(TRUE); 565 listWifi->setCurrentRow(curRow); 566 } 567 553 568 } 554 569 }
