Changeset 8398 in ntrip for branches/BNC_2.12/src/bncwindow.cpp
- Timestamp:
- Jun 28, 2018, 12:53:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncwindow.cpp
r8371 r8398 206 206 _rnxIntrComboBox->setCurrentIndex(ii); 207 207 } 208 _rnxSamplSpinBox = new QSpinBox(); 209 _rnxSamplSpinBox->setMinimum(0); 210 _rnxSamplSpinBox->setMaximum(60); 211 _rnxSamplSpinBox->setSingleStep(5); 212 _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt()); 208 _rnxSamplComboBox = new QComboBox(); 209 _rnxSamplComboBox->setEditable(false); 210 _rnxSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 211 int ij = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 212 if (ij != -1) { 213 _rnxSamplComboBox->setCurrentIndex(ij); 214 } 213 215 _rnxFileCheckBox = new QCheckBox(); 214 216 _rnxFileCheckBox->setCheckState(Qt::CheckState(settings.value("rnxOnlyWithSKL").toInt())); 215 _rnxSamplSpinBox->setSuffix(" sec");216 217 _rnxSkelLineEdit = new QLineEdit(settings.value("rnxSkel").toString()); 217 218 _rnxSkelLineEdit->setMaximumWidth(5*ww); … … 277 278 _outWaitSpinBox->setSuffix(" sec"); 278 279 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 279 _outSampl SpinBox = new QSpinBox();280 _outSampl SpinBox->setMinimum(0);281 _outSamplSpinBox->setMaximum(60);282 _outSamplSpinBox->setSingleStep(5);283 _outSamplSpinBox->setValue(settings.value("outSampl").toInt());284 _outSamplSpinBox->setSuffix(" sec");280 _outSamplComboBox = new QComboBox(); 281 _outSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 282 int nn = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 283 if (nn != -1) { 284 _rnxSamplComboBox->setCurrentIndex(nn); 285 } 285 286 _outFileLineEdit = new QLineEdit(settings.value("outFile").toString()); 286 287 _outUPortLineEdit = new QLineEdit(settings.value("outUPort").toString()); … … 674 675 oLayout->setColumnMinimumWidth(0,14*ww); 675 676 _rnxIntrComboBox->setMaximumWidth(9*ww); 676 _rnxSampl SpinBox->setMaximumWidth(9*ww);677 _rnxSamplComboBox->setMaximumWidth(9*ww); 677 678 678 679 oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50); … … 682 683 oLayout->addWidget(_rnxIntrComboBox, 2, 1); 683 684 oLayout->addWidget(new QLabel(" Sampling"), 2, 2, Qt::AlignRight); 684 oLayout->addWidget(_rnxSampl SpinBox, 2, 3, Qt::AlignLeft);685 oLayout->addWidget(_rnxSamplComboBox, 2, 3, Qt::AlignLeft); 685 686 oLayout->addWidget(new QLabel("Skeleton extension"), 3, 0); 686 687 oLayout->addWidget(_rnxSkelLineEdit, 3, 1, Qt::AlignLeft); … … 743 744 _outPortLineEdit->setMaximumWidth(9*ww); 744 745 _outWaitSpinBox->setMaximumWidth(9*ww); 745 _outSampl SpinBox->setMaximumWidth(9*ww);746 _outSamplComboBox->setMaximumWidth(9*ww); 746 747 _outUPortLineEdit->setMaximumWidth(9*ww); 747 748 … … 752 753 sLayout->addWidget(_outWaitSpinBox, 1, 3, Qt::AlignLeft); 753 754 sLayout->addWidget(new QLabel("Sampling"), 2, 0); 754 sLayout->addWidget(_outSampl SpinBox, 2, 1, Qt::AlignLeft);755 sLayout->addWidget(_outSamplComboBox, 2, 1, Qt::AlignLeft); 755 756 sLayout->addWidget(new QLabel("File (full path)"), 3, 0); 756 757 sLayout->addWidget(_outFileLineEdit, 3, 1, 1, 10); … … 1236 1237 _rnxPathLineEdit->setWhatsThis(tr("<p>Here you specify the path to where the RINEX Observation files will be stored.</p><p>If the specified directory does not exist, BNC will not create RINEX Observation files.</p>")); 1237 1238 _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file.</p>")); 1238 _rnxSampl SpinBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds.</p><p>A value of zero '0' tells BNC to store all received epochs into RINEX Observation files.</p>"));1239 _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. </p>")); 1239 1240 _rnxSkelLineEdit->setWhatsThis(tr("<p>BNC allows using personal RINEX skeleton files that contain the RINEX header records you would like to include. You can derive a skeleton file from information given in an up to date sitelog.</p><p>A file in the RINEX Observations 'Directory' with a 'Skeleton extension' skl or SKL is interpreted by BNC as a personal RINEX header skeleton file for the corresponding stream. In case of 'SKL'/'skl' the 4-char ID forming the base name has to be written in upper/lower cases. </p>")); 1240 1241 _rnxFileCheckBox->setWhatsThis(tr("<p>Tick check box 'Skeleton mandatory' in case you want that RINEX files are only produced if skeleton files are available for BNC. If no skeleton file is available for a particular source then no RINEX Observation file will be produced from the affected stream.</p><p>Note that a skeleton file contains RINEX header information such as receiver and antenna types. In case of stream conversion to RINEX Version 3, a skeleton file should also contain information on potentially available observation types. A missing skeleton file will therefore enforce BNC to only save a default set of RINEX 3 observation types.</p>")); … … 1279 1280 _outPortLineEdit->setWhatsThis(tr("<p>BNC can produce synchronized observations in a plain ASCII format on your local host via IP port.</p><p>Specify a port number to activate this function.</p>")); 1280 1281 _outWaitSpinBox->setWhatsThis(tr("<p>When feeding a real-time GNSS network engine waiting for synchronized input epoch by epoch, BNC drops whatever is received later than 'Wait for full obs epoch' seconds.</p><p>A value of 3 to 5 seconds is recommended, depending on the latency of the incoming streams and the delay acceptable to your real-time GNSS network engine or product.</p>")); 1281 _outSampl SpinBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds.</p><p>A value of zero '0' tells BNC to send/store all received epochs.</p>"));1282 _outSamplComboBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds. </p>")); 1282 1283 _outFileLineEdit->setWhatsThis(tr("<p>Specify the full path to a file where synchronized observations are saved in plain ASCII format.</p><p>Beware that the size of this file can rapidly increase depending on the number of incoming streams.</p>")); 1283 1284 _outUPortLineEdit->setWhatsThis(tr("<p>BNC can produce unsynchronized observations in a plain ASCII format on your local host via IP port.</p><p>Specify a port number to activate this function.</p>")); … … 1439 1440 delete _rnxPathLineEdit; 1440 1441 delete _rnxIntrComboBox; 1441 delete _rnxSampl SpinBox;1442 delete _rnxSamplComboBox; 1442 1443 delete _rnxFileCheckBox; 1443 1444 delete _rnxSkelLineEdit; … … 1454 1455 delete _outPortLineEdit; 1455 1456 delete _outWaitSpinBox; 1456 delete _outSampl SpinBox;1457 delete _outSamplComboBox; 1457 1458 delete _outFileLineEdit; 1458 1459 delete _outUPortLineEdit; … … 1853 1854 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 1854 1855 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); 1855 settings.setValue("rnxSampl", _rnxSamplSpinBox->value());1856 settings.setValue("rnxSampl", _rnxSamplComboBox->currentText()); 1856 1857 settings.setValue("rnxSkel", _rnxSkelLineEdit->text()); 1857 1858 settings.setValue("rnxOnlyWithSKL",_rnxFileCheckBox->checkState()); … … 1863 1864 settings.setValue("ephIntr", _ephIntrComboBox->currentText()); 1864 1865 settings.setValue("ephOutPort", _ephOutPortLineEdit->text()); 1865 settings.setValue("rnxV3", _rnxV3CheckBox->checkState());1866 settings.setValue("ephV3", _ephV3CheckBox->checkState()) 1866 1867 // Broadcast Corrections 1867 1868 settings.setValue("corrPath", _corrPathLineEdit->text()); … … 1871 1872 settings.setValue("outPort", _outPortLineEdit->text()); 1872 1873 settings.setValue("outWait", _outWaitSpinBox->value()); 1873 settings.setValue("outSampl", _outSampl SpinBox->value());1874 settings.setValue("outSampl", _outSamplComboBox->currentText()); 1874 1875 settings.setValue("outFile", _outFileLineEdit->text()); 1875 1876 settings.setValue("outUPort", _outUPortLineEdit->text()); … … 2184 2185 populateMountPointsTable(); 2185 2186 bncSettings settings; 2186 _outSampl SpinBox->setValue(settings.value("outSampl").toInt());2187 _outSamplComboBox->findText(settings.value("rnxSampl").toString()); 2187 2188 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 2188 2189 QListIterator<bncGetThread*> iTh(threads); … … 2341 2342 enable = !_rnxPathLineEdit->text().isEmpty(); 2342 2343 enableWidget(enable, _rnxIntrComboBox); 2343 enableWidget(enable, _rnxSampl SpinBox);2344 enableWidget(enable, _rnxSamplComboBox); 2344 2345 enableWidget(enable, _rnxSkelLineEdit); 2345 2346 enableWidget(enable, _rnxFileCheckBox); … … 2388 2389 enable = !_outPortLineEdit->text().isEmpty() || !_outFileLineEdit->text().isEmpty(); 2389 2390 enableWidget(enable, _outWaitSpinBox); 2390 enableWidget(enable, _outSampl SpinBox);2391 enableWidget(enable, _outSamplComboBox); 2391 2392 } 2392 2393
Note:
See TracChangeset
for help on using the changeset viewer.