Changeset 7331 in ntrip


Ignore:
Timestamp:
Sep 25, 2015, 9:34:20 AM (9 years ago)
Author:
weber
Message:

String obsRate changed to adviseObsRate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r7324 r7331  
    356356  // Outages Options
    357357  // ---------------
    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());
    362362  if (kk != -1) {
    363     _obsRateComboBox->setCurrentIndex(kk);
     363    _adviseObsRateComboBox->setCurrentIndex(kk);
    364364  }
    365365  _adviseFailSpinBox = new QSpinBox();
     
    377377  _adviseScriptLineEdit    = new QLineEdit(settings.value("adviseScript").toString());
    378378
    379   connect(_obsRateComboBox, SIGNAL(currentIndexChanged(const QString &)),
     379  connect(_adviseObsRateComboBox, SIGNAL(currentIndexChanged(const QString &)),
    380380          this, SLOT(slotBncTextChanged()));
    381381
     
    819819  QGridLayout* aLayout = new QGridLayout;
    820820  aLayout->setColumnMinimumWidth(0,14*ww);
    821   _obsRateComboBox->setMaximumWidth(9*ww);
     821  _adviseObsRateComboBox->setMaximumWidth(9*ww);
    822822  _adviseFailSpinBox->setMaximumWidth(9*ww);
    823823  _adviseRecoSpinBox->setMaximumWidth(9*ww);
     
    825825  aLayout->addWidget(new QLabel("Failure and recovery reports, advisory notes.<br>"),0,0,1,50,Qt::AlignLeft);
    826826  aLayout->addWidget(new QLabel("Observation rate"),              1, 0);
    827   aLayout->addWidget(_obsRateComboBox,                            1, 1);
     827  aLayout->addWidget(_adviseObsRateComboBox,                      1, 1);
    828828  aLayout->addWidget(new QLabel("Failure threshold"),             2, 0);
    829829  aLayout->addWidget(_adviseFailSpinBox,                          2, 1);
     
    13051305  _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>"));
    13061306  _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>"));
    13081308  _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>"));
    13091309  _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>"));
     
    17701770  settings.setValue("serialManualNMEASampling", _serialManualNMEASamplingSpinBox->value());
    17711771// 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());
    17761776// Miscellaneous
    17771777  settings.setValue("miscMount",   _miscMountLineEdit->text());
     
    19191919  if (!_serialMountPointLineEdit->text().isEmpty())
    19201920      BNC_CORE->slotMessage("Panel 'Serial Output' active", true);
    1921   if (!_obsRateComboBox->currentText().isEmpty())
     1921  if (!_adviseObsRateComboBox->currentText().isEmpty())
    19221922      BNC_CORE->slotMessage("Panel 'Outages' active", true);
    19231923  if (!_miscMountLineEdit->text().isEmpty())
     
    22952295  // Outages
    22962296  // -------
    2297   if (sender() == 0 || sender() == _obsRateComboBox) {
    2298     enable = !_obsRateComboBox->currentText().isEmpty();
     2297  if (sender() == 0 || sender() == _adviseObsRateComboBox) {
     2298    enable = !_adviseObsRateComboBox->currentText().isEmpty();
    22992299    enableWidget(enable, _adviseFailSpinBox);
    23002300    enableWidget(enable, _adviseRecoSpinBox);
Note: See TracChangeset for help on using the changeset viewer.