Changeset 1771 in ntrip for trunk/BNS/bnswindow.cpp
- Timestamp:
- Mar 24, 2009, 10:02:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnswindow.cpp
r1728 r1771 21 21 #include "bnshlpdlg.h" 22 22 #include "bnssettings.h" 23 #include "bnscustomtrafo.h" 23 24 24 25 using namespace std; … … 178 179 _refSys_1_ComboBox = new QComboBox; 179 180 _refSys_1_ComboBox->setEditable(false); 180 _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000 ").split(","));181 _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(",")); 181 182 int ii = _refSys_1_ComboBox->findText(settings.value("refSys_1").toString()); 182 183 if (ii != -1) { … … 196 197 _refSys_2_ComboBox = new QComboBox; 197 198 _refSys_2_ComboBox->setEditable(false); 198 _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000 ").split(","));199 _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(",")); 199 200 ii = _refSys_2_ComboBox->findText(settings.value("refSys_2").toString()); 200 201 if (ii != -1) { … … 214 215 _refSys_3_ComboBox = new QComboBox; 215 216 _refSys_3_ComboBox->setEditable(false); 216 _refSys_3_ComboBox->addItems(QString("IGS05,ETRF2000 ").split(","));217 _refSys_3_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(",")); 217 218 ii = _refSys_3_ComboBox->findText(settings.value("refSys_3").toString()); 218 219 if (ii != -1) { … … 437 438 438 439 tab_cas1->setLayout(layout_cas1); 439 440 connect(_refSys_1_ComboBox, SIGNAL(currentIndexChanged(const QString &)), 441 this, SLOT(customTrafo(const QString))); 440 442 connect(_outHost_1_LineEdit, SIGNAL(textChanged(const QString &)), 441 443 this, SLOT(bnsText(const QString &))); … … 488 490 489 491 tab_cas2->setLayout(layout_cas2); 490 492 connect(_refSys_2_ComboBox, SIGNAL(currentIndexChanged(const QString &)), 493 this, SLOT(customTrafo(const QString))); 491 494 connect(_outHost_2_LineEdit, SIGNAL(textChanged(const QString &)), 492 495 this, SLOT(bnsText(const QString &))); … … 539 542 540 543 tab_cas3->setLayout(layout_cas3); 541 544 connect(_refSys_3_ComboBox, SIGNAL(currentIndexChanged(const QString &)), 545 this, SLOT(customTrafo(const QString))); 542 546 connect(_outHost_3_LineEdit, SIGNAL(textChanged(const QString &)), 543 547 this, SLOT(bnsText(const QString &))); … … 814 818 settings.setValue("outFile_3", _outFile_3_LineEdit->text()); 815 819 settings.setValue("beClocks3", _beClocks2CheckBox->checkState()); 816 817 820 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 818 821 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); … … 954 957 _ephPortLineEdit->setStyleSheet("background-color: white"); 955 958 _ephEchoLineEdit->setStyleSheet("background-color: white"); 959 _ephPortLineEdit->setEnabled(true); 956 960 _ephEchoLineEdit->setEnabled(true); 957 961 } else { 958 962 _ephPortLineEdit->setStyleSheet("background-color: lightGray"); 959 963 _ephEchoLineEdit->setStyleSheet("background-color: lightGray"); 964 _ephPortLineEdit->setEnabled(false); 960 965 _ephEchoLineEdit->setEnabled(false); 961 966 } … … 1109 1114 1110 1115 } 1116 1117 // Custom transformation parameters 1118 //////////////////////////////////////////////////////////////////////////// 1119 void bnsWindow::customTrafo(const QString &text){ 1120 if (text == "Custom" ) { 1121 bnsCustomTrafo* dlg = new bnsCustomTrafo(this); 1122 dlg->exec(); 1123 delete dlg; 1124 } 1125 } 1126
Note:
See TracChangeset
for help on using the changeset viewer.