Changeset 8397 in ntrip for trunk/BNC/src/bncwindow.cpp
- Timestamp:
- Jun 28, 2018, 12:47:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r8369 r8397 227 227 _rnxIntrComboBox->setCurrentIndex(ii); 228 228 } 229 _rnxSamplSpinBox = new QSpinBox(); 230 _rnxSamplSpinBox->setMinimum(0); 231 _rnxSamplSpinBox->setMaximum(60); 232 _rnxSamplSpinBox->setSingleStep(5); 233 _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt()); 229 _rnxSamplComboBox = new QComboBox(); 230 _rnxSamplComboBox->setEditable(false); 231 _rnxSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 232 int ij = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 233 if (ij != -1) { 234 _rnxSamplComboBox->setCurrentIndex(ij); 235 } 234 236 _rnxFileCheckBox = new QCheckBox(); 235 237 _rnxFileCheckBox->setCheckState(Qt::CheckState(settings.value("rnxOnlyWithSKL").toInt())); 236 _rnxSamplSpinBox->setSuffix(" sec");237 238 _rnxSkelLineEdit = new QLineEdit(settings.value("rnxSkel").toString()); 238 239 _rnxSkelLineEdit->setMaximumWidth(5*ww); … … 298 299 _outWaitSpinBox->setSuffix(" sec"); 299 300 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 300 _outSampl SpinBox = new QSpinBox();301 _outSampl SpinBox->setMinimum(0);302 _outSamplSpinBox->setMaximum(60);303 _outSamplSpinBox->setSingleStep(5);304 _outSamplSpinBox->setValue(settings.value("outSampl").toInt());305 _outSamplSpinBox->setSuffix(" sec");301 _outSamplComboBox = new QComboBox(); 302 _outSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 303 int nn = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 304 if (nn != -1) { 305 _rnxSamplComboBox->setCurrentIndex(nn); 306 } 306 307 _outFileLineEdit = new QLineEdit(settings.value("outFile").toString()); 307 308 _outUPortLineEdit = new QLineEdit(settings.value("outUPort").toString()); … … 740 741 oLayout->setColumnMinimumWidth(0,14*ww); 741 742 _rnxIntrComboBox->setMaximumWidth(9*ww); 742 _rnxSampl SpinBox->setMaximumWidth(9*ww);743 _rnxSamplComboBox->setMaximumWidth(9*ww); 743 744 744 745 oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50); … … 748 749 oLayout->addWidget(_rnxIntrComboBox, 2, 1); 749 750 oLayout->addWidget(new QLabel(" Sampling"), 2, 2, Qt::AlignRight); 750 oLayout->addWidget(_rnxSampl SpinBox,2, 3, Qt::AlignLeft);751 oLayout->addWidget(_rnxSamplComboBox, 2, 3, Qt::AlignLeft); 751 752 oLayout->addWidget(new QLabel("Skeleton extension"), 3, 0); 752 753 oLayout->addWidget(_rnxSkelLineEdit, 3, 1, Qt::AlignLeft); … … 809 810 _outPortLineEdit->setMaximumWidth(9*ww); 810 811 _outWaitSpinBox->setMaximumWidth(9*ww); 811 _outSampl SpinBox->setMaximumWidth(9*ww);812 _outSamplComboBox->setMaximumWidth(9*ww); 812 813 _outUPortLineEdit->setMaximumWidth(9*ww); 813 814 … … 816 817 sLayout->addWidget(_outPortLineEdit, 1, 1); 817 818 sLayout->addWidget(new QLabel(" Wait for full obs epoch"), 1, 2, Qt::AlignRight); 818 sLayout->addWidget(_outWaitSpinBox, 1, 3, Qt::AlignLeft);819 sLayout->addWidget(_outWaitSpinBox, 1, 3, Qt::AlignLeft); 819 820 sLayout->addWidget(new QLabel("Sampling"), 2, 0); 820 sLayout->addWidget(_outSampl SpinBox,2, 1, Qt::AlignLeft);821 sLayout->addWidget(_outSamplComboBox, 2, 1, Qt::AlignLeft); 821 822 sLayout->addWidget(new QLabel("File (full path)"), 3, 0); 822 823 sLayout->addWidget(_outFileLineEdit, 3, 1, 1, 10); … … 1295 1296 _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. <i>[key: rnxPath]</i></p>")); 1296 1297 _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file. <i>[key: rnxIntr]</i></p>")); 1297 _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. <i>[key: rnxSampl]</i></p>"));1298 _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. <i>[key: rnxSampl]</i></p>")); 1298 1299 _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. <i>[key: rnxSkel]</i></p>")); 1299 1300 _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. <i>[key: rnxOnlyWithSKL]</i></p>")); … … 1338 1339 _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. <i>[key: outPort]</i></p>")); 1339 1340 _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. <i>[key: outWait]</i></p>")); 1340 _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. <i>[key: outSampl]</i></p>"));1341 _outSamplComboBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds. <i>[key: outSampl]</i></p>")); 1341 1342 _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. <i>[key: outFile]</i></p>")); 1342 1343 _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. <i>[key: outUPort]</i></p>")); … … 1496 1497 delete _rnxPathLineEdit; 1497 1498 delete _rnxIntrComboBox; 1498 delete _rnxSampl SpinBox;1499 delete _rnxSamplComboBox; 1499 1500 delete _rnxFileCheckBox; 1500 1501 delete _rnxSkelLineEdit; … … 1511 1512 delete _outPortLineEdit; 1512 1513 delete _outWaitSpinBox; 1513 delete _outSampl SpinBox;1514 delete _outSamplComboBox; 1514 1515 delete _outFileLineEdit; 1515 1516 delete _outUPortLineEdit; … … 1946 1947 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 1947 1948 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); 1948 settings.setValue("rnxSampl", _rnxSampl SpinBox->value());1949 settings.setValue("rnxSampl", _rnxSamplComboBox->currentText()); 1949 1950 settings.setValue("rnxSkel", _rnxSkelLineEdit->text()); 1950 1951 settings.setValue("rnxOnlyWithSKL",_rnxFileCheckBox->checkState()); … … 1964 1965 settings.setValue("outPort", _outPortLineEdit->text()); 1965 1966 settings.setValue("outWait", _outWaitSpinBox->value()); 1966 settings.setValue("outSampl", _outSampl SpinBox->value());1967 settings.setValue("outSampl", _outSamplComboBox->currentText()); 1967 1968 settings.setValue("outFile", _outFileLineEdit->text()); 1968 1969 settings.setValue("outUPort", _outUPortLineEdit->text()); … … 2276 2277 populateMountPointsTable(); 2277 2278 bncSettings settings; 2278 _outSampl SpinBox->setValue(settings.value("outSampl").toInt());2279 _outSamplComboBox->findText(settings.value("rnxSampl").toString()); 2279 2280 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 2280 2281 QListIterator<bncGetThread*> iTh(threads); … … 2433 2434 enable = !_rnxPathLineEdit->text().isEmpty(); 2434 2435 enableWidget(enable, _rnxIntrComboBox); 2435 enableWidget(enable, _rnxSampl SpinBox);2436 enableWidget(enable, _rnxSamplComboBox); 2436 2437 enableWidget(enable, _rnxSkelLineEdit); 2437 2438 enableWidget(enable, _rnxFileCheckBox); … … 2480 2481 enable = !_outPortLineEdit->text().isEmpty() || !_outFileLineEdit->text().isEmpty(); 2481 2482 enableWidget(enable, _outWaitSpinBox); 2482 enableWidget(enable, _outSampl SpinBox);2483 enableWidget(enable, _outSamplComboBox); 2483 2484 } 2484 2485
Note:
See TracChangeset
for help on using the changeset viewer.