00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 void TGo4ConnectServer::init()
00017 {
00018 ClientNode->setText(go4sett->getClientNode());
00019 PortNumber->setValue(go4sett->getClientPort());
00020 ModeCombo->setCurrentItem(go4sett->getClientControllerMode());
00021 bool def = go4sett->getClientDefaultPass();
00022 DefaultPassCheck->setChecked(def);
00023 PasswordEdit->setEnabled(!def);
00024 }
00025
00026 void TGo4ConnectServer::setPassword(const char* pass)
00027 {
00028 if (PasswordEdit->isEnabled())
00029 PasswordEdit->setText(pass);
00030 }
00031
00032 QString TGo4ConnectServer::getInput()
00033 {
00034 go4sett->setClientNode(ClientNode->text());
00035 go4sett->setClientPort(PortNumber->value());
00036 go4sett->setClientControllerMode(ModeCombo->currentItem());
00037 bool def = DefaultPassCheck->isChecked();
00038 go4sett->setClientDefaultPass(def);
00039 QString res;
00040 if (!def) res = PasswordEdit->text();
00041 return res;
00042 }
00043
00044 void TGo4ConnectServer::DefaultPassCheck_toggled( bool on )
00045 {
00046 PasswordEdit->setEnabled(!on);
00047 }
00048
00049
00050
00051