Changeset 8905 in ntrip for trunk/BNC/src/pppWidgets.cpp
- Timestamp:
- Mar 18, 2020, 11:13:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/pppWidgets.cpp
r8773 r8905 82 82 _lcGalileo = new QComboBox(); _lcGalileo ->setObjectName("PPP/lcGalileo"); _widgets << _lcGalileo; 83 83 _lcBDS = new QComboBox(); _lcBDS ->setObjectName("PPP/lcBDS"); _widgets << _lcBDS; 84 _modelObs = new QComboBox(); _modelObs ->setObjectName("PPP/modelObs"); _widgets << _modelObs; 85 _pseudoObs = new QComboBox(); _pseudoObs ->setObjectName("PPP/pseudoObs"); _widgets << _pseudoObs; 84 86 _sigmaC1 = new QLineEdit(); _sigmaC1 ->setObjectName("PPP/sigmaC1"); _widgets << _sigmaC1; 85 87 _sigmaL1 = new QLineEdit(); _sigmaL1 ->setObjectName("PPP/sigmaL1"); _widgets << _sigmaL1; … … 111 113 _dataSource->addItems(QString(",Real-Time Streams,RINEX Files").split(",")); 112 114 connect(_dataSource, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets())); 113 114 connect(_snxtroPath, SIGNAL(textChanged(const QString &)), 115 this, SLOT(slotPPPTextChanged())); 116 117 connect(_snxtroAc, SIGNAL(textChanged(const QString &)), 118 this, SLOT(slotPPPTextChanged())); 119 120 connect(_snxtroSol, SIGNAL(textChanged(const QString &)), 121 this, SLOT(slotPPPTextChanged())); 115 connect(_modelObs, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets())); 116 connect(_snxtroPath, SIGNAL(textChanged(const QString &)), this, SLOT(slotPPPTextChanged())); 117 connect(_snxtroAc, SIGNAL(textChanged(const QString &)), this, SLOT(slotPPPTextChanged())); 118 connect(_snxtroSol, SIGNAL(textChanged(const QString &)), this, SLOT(slotPPPTextChanged())); 122 119 123 120 slotEnableWidgets(); … … 127 124 _lcGPS->addItems(QString("P3,P3&L3").split(",")); 128 125 #else 129 _lcGPS->addItems(QString("no,Pi,Li,Pi&Li ,P3,L3,P3&L3").split(","));126 _lcGPS->addItems(QString("no,Pi,Li,Pi&Li").split(",")); 130 127 #endif 131 128 … … 134 131 _lcGLONASS->addItems(QString("no,P3,L3,P3&L3").split(",")); 135 132 #else 136 _lcGLONASS->addItems(QString("no,Pi,Li,Pi&Li ,P3,L3,P3&L3").split(","));133 _lcGLONASS->addItems(QString("no,Pi,Li,Pi&Li").split(",")); 137 134 #endif 138 135 … … 141 138 _lcGalileo->addItems(QString("no,P3,L3,P3&L3").split(",")); 142 139 #else 143 _lcGalileo->addItems(QString("no,Pi,Li,Pi&Li ,P3,L3,P3&L3").split(","));140 _lcGalileo->addItems(QString("no,Pi,Li,Pi&Li").split(",")); 144 141 #endif 145 142 … … 148 145 _lcBDS->addItems(QString("no,P3,L3,P3&L3").split(",")); 149 146 #else 150 _lcBDS->addItems(QString("no,Pi,Li,Pi&Li,P3,L3,P3&L3").split(",")); 147 _lcBDS->addItems(QString("no,Pi,Li,Pi&Li").split(",")); 148 #endif 149 150 _modelObs->setEditable(false); 151 _pseudoObs->setEditable(false); 152 #ifdef USE_PPP_SSR_I 153 _modelObs->addItems(QString("Ionosphere-free PPP").split(",")); 154 _pseudoObs->addItems(QString("no").split(",")); 155 #else 156 _modelObs->addItems(QString("Ionosphere-free PPP,Uncombined PPP,PPP-RTK,DCM with Code Biases,DCM with Phase Biases").split(",")); 157 _pseudoObs->addItems(QString("no,Ionosphere").split(",")); 151 158 #endif 152 159 … … 247 254 delete _lcGalileo; 248 255 delete _lcBDS; 256 delete _modelObs; 257 delete _pseudoObs; 249 258 delete _sigmaC1; 250 259 delete _sigmaL1; … … 297 306 _lcBDS->setCurrentIndex(ii); 298 307 } 308 ii = _modelObs->findText(settings.value(_modelObs->objectName()).toString()); 309 if (ii != -1) { 310 _modelObs->setCurrentIndex(ii); 311 } 312 ii = _pseudoObs->findText(settings.value(_pseudoObs->objectName()).toString()); 313 if (ii != -1) { 314 _pseudoObs->setCurrentIndex(ii); 315 } 299 316 ii = _snxtroIntr->findText(settings.value(_snxtroIntr->objectName()).toString()); 300 317 if (ii != -1) { … … 433 450 settings.setValue(_lcGalileo ->objectName(), _lcGalileo ->currentText()); 434 451 settings.setValue(_lcBDS ->objectName(), _lcBDS ->currentText()); 452 settings.setValue(_modelObs ->objectName(), _modelObs ->currentText()); 453 settings.setValue(_pseudoObs ->objectName(), _pseudoObs ->currentText()); 435 454 settings.setValue(_sigmaC1 ->objectName(), _sigmaC1 ->text()); 436 455 settings.setValue(_sigmaL1 ->objectName(), _sigmaL1 ->text()); … … 477 496 bool realTime = _dataSource->currentText() == "Real-Time Streams"; 478 497 bool rinexFiles = _dataSource->currentText() == "RINEX Files"; 498 bool enablePseudoObs; 499 if (_modelObs->currentText() == "PPP-RTK" || 500 _modelObs->currentText() == "Ionosphere-free PPP") { 501 enablePseudoObs = false; 502 } 503 else { 504 enablePseudoObs = true; 505 } 479 506 480 507 QListIterator<QWidget*> it(_widgets); … … 490 517 } 491 518 else if (rinexFiles) { 492 _corrMount->setEnabled(false); 493 // _plotCoordinates->setEnabled(false); 494 // _audioResponse->setEnabled(false); 519 _corrMount ->setEnabled(false); 520 _audioResponse->setEnabled(false); 495 521 } 496 522 … … 506 532 _snxtroAc ->setEnabled(false); 507 533 _snxtroSol ->setEnabled(false); 534 } 535 536 if (enablePseudoObs) { 537 _pseudoObs->setEnabled(true); 538 } else { 539 _pseudoObs->setEnabled(false); 508 540 } 509 541 … … 592 624 } 593 625 } 594 } 626 627 628 }
Note:
See TracChangeset
for help on using the changeset viewer.