Changeset 6796 in ntrip
- Timestamp:
- Apr 24, 2015, 4:53:57 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6781 r6796 91 91 92 92 _samplingRate = settings.value("rnxSampl").toInt(); 93 94 _writeRinexFileOnlyWithSkl = settings.value("rnxOnlyWithSKL").toBool(); 93 95 } 94 96 … … 323 325 bncSettings settings; 324 326 327 // Set RINEX Version 328 // ----------------- 329 int intHeaderVers = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked ? 3 : 2); 330 331 // Read Skeleton Header 332 // -------------------- 333 if (readSkeleton()) { 334 _header.set(_sklHeader, intHeaderVers); 335 } 336 else { 337 if (_writeRinexFileOnlyWithSkl) { 338 return; 339 } 340 _header.setDefault(_statID, intHeaderVers); 341 } 342 325 343 // Open the Output File 326 344 // -------------------- … … 343 361 344 362 _out.setf(ios::showpoint | ios::fixed); 345 346 // Set RINEX Version347 // -----------------348 int intHeaderVers = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked ? 3 : 2);349 350 // Read Skeleton Header351 // --------------------352 if (readSkeleton()) {353 _header.set(_sklHeader, intHeaderVers);354 }355 else {356 _header.setDefault(_statID, intHeaderVers);357 }358 363 359 364 // A Few Additional Comments … … 429 434 writeHeader(format, fObs._time); 430 435 } 436 if (!_headerWritten) { 437 return; 438 } 431 439 432 440 // Prepare structure t_rnxEpo -
trunk/BNC/src/bncrinex.h
r6448 r6796 68 68 QString _userName; 69 69 QString _sklName; 70 bool _writeRinexFileOnlyWithSkl; 70 71 QByteArray _latitude; 71 72 QByteArray _longitude; -
trunk/BNC/src/bncwindow.cpp
r6791 r6796 211 211 _rnxSamplSpinBox->setSingleStep(5); 212 212 _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt()); 213 _rnxFileCheckBox = new QCheckBox(); 214 _rnxFileCheckBox->setCheckState(Qt::CheckState(settings.value("rnxOnlyWithSKL").toInt())); 213 215 _rnxSamplSpinBox->setSuffix(" sec"); 214 216 _rnxSkelLineEdit = new QLineEdit(settings.value("rnxSkel").toString()); … … 673 675 oLayout->setColumnMinimumWidth(0,14*ww); 674 676 _rnxIntrComboBox->setMaximumWidth(9*ww); 675 //_rnxSamplSpinBox->setMaximumWidth(9*ww);677 _rnxSamplSpinBox->setMaximumWidth(9*ww); 676 678 677 679 oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50); … … 684 686 oLayout->addWidget(new QLabel("Skeleton extension"), 3, 0); 685 687 oLayout->addWidget(_rnxSkelLineEdit, 3, 1, Qt::AlignLeft); 688 oLayout->addWidget(new QLabel("RINEX File generation only with SKL file"),3, 2); 689 oLayout->addWidget(_rnxFileCheckBox, 3, 3); 686 690 oLayout->addWidget(new QLabel("Script (full path)"), 4, 0); 687 691 oLayout->addWidget(_rnxScrpLineEdit, 4, 1, 1, 15); … … 1704 1708 settings.setValue("rnxSampl", _rnxSamplSpinBox->value()); 1705 1709 settings.setValue("rnxSkel", _rnxSkelLineEdit->text()); 1710 settings.setValue("rnxOnlyWithSKL",_rnxFileCheckBox->checkState()); 1706 1711 settings.setValue("rnxScript", _rnxScrpLineEdit->text()); 1707 1712 settings.setValue("rnxV3", _rnxV3CheckBox->checkState()); … … 2189 2194 enableWidget(enable, _rnxSamplSpinBox); 2190 2195 enableWidget(enable, _rnxSkelLineEdit); 2196 enableWidget(enable, _rnxFileCheckBox); 2191 2197 enableWidget(enable, _rnxScrpLineEdit); 2192 2198 enableWidget(enable, _rnxV2Priority); -
trunk/BNC/src/bncwindow.h
r6751 r6796 159 159 QCheckBox* _ephV3CheckBox; 160 160 QLineEdit* _rnxSkelLineEdit; 161 QCheckBox* _rnxFileCheckBox; 161 162 QLineEdit* _rnxScrpLineEdit; 162 163 QLineEdit* _logFileLineEdit;
Note:
See TracChangeset
for help on using the changeset viewer.