- Timestamp:
- Sep 25, 2015, 9:34:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r7324 r7331 356 356 // Outages Options 357 357 // --------------- 358 _ obsRateComboBox = new QComboBox();359 _ obsRateComboBox->setEditable(false);360 _ obsRateComboBox->addItems(QString(",0.1 Hz,0.2 Hz,0.5 Hz,1 Hz,5 Hz").split(","));361 kk = _ obsRateComboBox->findText(settings.value("obsRate").toString());358 _adviseObsRateComboBox = new QComboBox(); 359 _adviseObsRateComboBox->setEditable(false); 360 _adviseObsRateComboBox->addItems(QString(",0.1 Hz,0.2 Hz,0.5 Hz,1 Hz,5 Hz").split(",")); 361 kk = _adviseObsRateComboBox->findText(settings.value("adviseObsRate").toString()); 362 362 if (kk != -1) { 363 _ obsRateComboBox->setCurrentIndex(kk);363 _adviseObsRateComboBox->setCurrentIndex(kk); 364 364 } 365 365 _adviseFailSpinBox = new QSpinBox(); … … 377 377 _adviseScriptLineEdit = new QLineEdit(settings.value("adviseScript").toString()); 378 378 379 connect(_ obsRateComboBox, SIGNAL(currentIndexChanged(const QString &)),379 connect(_adviseObsRateComboBox, SIGNAL(currentIndexChanged(const QString &)), 380 380 this, SLOT(slotBncTextChanged())); 381 381 … … 819 819 QGridLayout* aLayout = new QGridLayout; 820 820 aLayout->setColumnMinimumWidth(0,14*ww); 821 _ obsRateComboBox->setMaximumWidth(9*ww);821 _adviseObsRateComboBox->setMaximumWidth(9*ww); 822 822 _adviseFailSpinBox->setMaximumWidth(9*ww); 823 823 _adviseRecoSpinBox->setMaximumWidth(9*ww); … … 825 825 aLayout->addWidget(new QLabel("Failure and recovery reports, advisory notes.<br>"),0,0,1,50,Qt::AlignLeft); 826 826 aLayout->addWidget(new QLabel("Observation rate"), 1, 0); 827 aLayout->addWidget(_ obsRateComboBox,1, 1);827 aLayout->addWidget(_adviseObsRateComboBox, 1, 1); 828 828 aLayout->addWidget(new QLabel("Failure threshold"), 2, 0); 829 829 aLayout->addWidget(_adviseFailSpinBox, 2, 1); … … 1305 1305 _rnxSamplSpinBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. A value of zero '0' tells BNC to store all received epochs into RINEX.</p>")); 1306 1306 _binSamplSpinBox->setWhatsThis(tr("<p>Select the synchronized observation sampling interval in seconds. A value of zero '0' tells BNC to send/store all received epochs.</p>")); 1307 _ obsRateComboBox->setWhatsThis(tr("<p>BNC can collect all returns (success or failure) coming from a decoder within a certain short time span to then decide whether a stream has an outage or its content is corrupted. The procedure needs a rough estimate of the expected 'Observation rate' of the incoming streams. When a continuous problem is detected, BNC can inform its operator about this event through an advisory note.</p><p>Default is an empty option field, meaning that you don't want BNC to report on stream failures or recoveries when exceeding a threshold time span.</p>"));1307 _adviseObsRateComboBox->setWhatsThis(tr("<p>BNC can collect all returns (success or failure) coming from a decoder within a certain short time span to then decide whether a stream has an outage or its content is corrupted. The procedure needs a rough estimate of the expected 'Observation rate' of the incoming streams. When a continuous problem is detected, BNC can inform its operator about this event through an advisory note.</p><p>Default is an empty option field, meaning that you don't want BNC to report on stream failures or recoveries when exceeding a threshold time span.</p>")); 1308 1308 _adviseRecoSpinBox->setWhatsThis(tr("<p>Following a stream outage or a longer series of bad observations, an advisory note is generated when valid observations are received again throughout the 'Recovery threshold' time span. A value of about 5min (default) is recommended.</p><p>A value of zero '0' means that for any stream recovery, however short, BNC immediately generates an advisory note.</p>")); 1309 1309 _adviseFailSpinBox->setWhatsThis(tr("<p>An advisory note is generated when no (or only corrupted) observations are seen throughout the 'Failure threshold' time span. A value of 15 min (default) is recommended.</p><p>A value of zero '0' means that for any stream failure, however short, BNC immediately generates an advisory note.</p>")); … … 1770 1770 settings.setValue("serialManualNMEASampling", _serialManualNMEASamplingSpinBox->value()); 1771 1771 // Outages 1772 settings.setValue(" obsRate", _obsRateComboBox->currentText());1773 settings.setValue("adviseFail", _adviseFailSpinBox->value());1774 settings.setValue("adviseReco", _adviseRecoSpinBox->value());1775 settings.setValue("adviseScript", _adviseScriptLineEdit->text());1772 settings.setValue("adviseObsRate", _adviseObsRateComboBox->currentText()); 1773 settings.setValue("adviseFail", _adviseFailSpinBox->value()); 1774 settings.setValue("adviseReco", _adviseRecoSpinBox->value()); 1775 settings.setValue("adviseScript", _adviseScriptLineEdit->text()); 1776 1776 // Miscellaneous 1777 1777 settings.setValue("miscMount", _miscMountLineEdit->text()); … … 1919 1919 if (!_serialMountPointLineEdit->text().isEmpty()) 1920 1920 BNC_CORE->slotMessage("Panel 'Serial Output' active", true); 1921 if (!_ obsRateComboBox->currentText().isEmpty())1921 if (!_adviseObsRateComboBox->currentText().isEmpty()) 1922 1922 BNC_CORE->slotMessage("Panel 'Outages' active", true); 1923 1923 if (!_miscMountLineEdit->text().isEmpty()) … … 2295 2295 // Outages 2296 2296 // ------- 2297 if (sender() == 0 || sender() == _ obsRateComboBox) {2298 enable = !_ obsRateComboBox->currentText().isEmpty();2297 if (sender() == 0 || sender() == _adviseObsRateComboBox) { 2298 enable = !_adviseObsRateComboBox->currentText().isEmpty(); 2299 2299 enableWidget(enable, _adviseFailSpinBox); 2300 2300 enableWidget(enable, _adviseRecoSpinBox);
Note:
See TracChangeset
for help on using the changeset viewer.