Changeset 11066 in ntrip for trunk/BNC/src/bncwindow.cpp


Ignore:
Timestamp:
Oct 5, 2026, 12:31:32 PM (33 hours ago)
Author:
stuerze
Message:

further fixes and initial import for ssr qc

File:
1 edited

Legend:

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

    r11022 r11066  
    298298  }
    299299  _corrPortLineEdit = new QLineEdit(settings.value("corrPort").toString());
     300  _ssrQcFileLineEdit = new QLineEdit(settings.value("ssrQcFile").toString());
     301  _ssrQcIntrComboBox = new QComboBox();
     302  _ssrQcIntrComboBox->setEditable(false);
     303  _ssrQcIntrComboBox->addItems(QString("5 min,15 min,30 min,1 hour,1 day").split(","));
     304  bi = _ssrQcIntrComboBox->findText(settings.value("ssrQcIntr").toString());
     305  if (bi != -1) {
     306    _ssrQcIntrComboBox->setCurrentIndex(bi);
     307  }
     308  else {
     309    _ssrQcIntrComboBox->setCurrentIndex(_ssrQcIntrComboBox->findText("1 hour"));
     310  }
     311  connect(_ssrQcFileLineEdit, SIGNAL(textChanged(const QString&)),
     312          this, SLOT(slotBncTextChanged()));
    300313
    301314  connect(_corrPathLineEdit, SIGNAL(textChanged(const QString&)),
    … …  
    894907  _corrIntrComboBox->setMaximumWidth(9 * ww);
    895908  _corrPortLineEdit->setMaximumWidth(9 * ww);
     909  _ssrQcIntrComboBox->setMaximumWidth(9 * ww);
    896910
    897911  cLayout->addWidget(new QLabel("Saving Broadcast Ephemeris correction files and correction output through IP port.<br>"), 0, 0, 1, 70);
    … …  
    902916  cLayout->addWidget(new QLabel("Port"), 3, 0);
    903917  cLayout->addWidget(_corrPortLineEdit, 3, 1);
    904   cLayout->addWidget(new QLabel(""), 4, 1);
     918  cLayout->addWidget(new QLabel("QC Logfile"), 4, 0);
     919  cLayout->addWidget(_ssrQcFileLineEdit, 4, 1, 1, 30);
     920  cLayout->addWidget(new QLabel("QC Interval"), 5, 0);
     921  cLayout->addWidget(_ssrQcIntrComboBox, 5, 1);
     922  cLayout->addWidget(new QLabel(""), 6, 1);
    905923  cLayout->setRowStretch(7, 999);
    906924  cgroup->setLayout(cLayout);
    … …  
    15701588  _corrPathLineEdit->setWhatsThis(tr("<p>Specify a directory for saving Broadcast Ephemeris Correction files.</p><p>If the specified directory does not exist, BNC will not create the files. <i>[key: corrPath]</i></p>"));
    15711589  _corrIntrComboBox->setWhatsThis(tr("<p>Select the length of Broadcast Ephemeris Correction files. <i>[key: corrIntr]</i></p>"));
     1590  _ssrQcFileLineEdit->setWhatsThis(tr("<p>Specify the full path to a logfile for the quality control of all decoded Broadcast Correction streams: epochs, update intervals, gaps, latency, completeness, IODs, code biases of the reference signals, clock jumps and orbit correction size.</p><p>Default is an empty option field, meaning that no SSR QC is done. <i>[key: ssrQcFile]</i></p>"));
     1591  _ssrQcIntrComboBox->setWhatsThis(tr("<p>Select the interval of the SSR QC reports. <i>[key: ssrQcIntr]</i></p>"));
    15721592  _corrPortLineEdit->setWhatsThis(tr("<p>BNC can produce Broadcast Ephemeris Corrections on your local host through an IP port.</p><p>Specify a port number here to activate this function. <i>[key: corrPort]</i></p>"));
    15731593
    … …  
    18431863  delete _corrPathLineEdit;
    18441864  delete _corrIntrComboBox;
     1865  delete _ssrQcFileLineEdit;
     1866  delete _ssrQcIntrComboBox;
    18451867  delete _corrPortLineEdit;
    18461868  delete _outPortLineEdit;
    … …  
    23692391  settings.setValue("corrPath", _corrPathLineEdit->text());
    23702392  settings.setValue("corrIntr", _corrIntrComboBox->currentText());
     2393  settings.setValue("ssrQcFile", _ssrQcFileLineEdit->text());
     2394  settings.setValue("ssrQcIntr", _ssrQcIntrComboBox->currentText());
    23712395  settings.setValue("corrPort", _corrPortLineEdit->text());
    23722396  // Feed Engine
    … …  
    25382562  BNC_CORE->setPortCorr(_corrPortLineEdit->text().toInt());
    25392563  BNC_CORE->initCombination();
     2564  BNC_CORE->initSsrQc();
    25402565
    25412566  connect(_caster, SIGNAL(getThreadsFinished()), this, SLOT(slotGetThreadsFinished()));
    … …  
    26072632    BNC_CORE->stopPPP();
    26082633    BNC_CORE->stopCombination();
     2634    BNC_CORE->stopSsrQc();
    26092635    delete _caster;    _caster = 0; BNC_CORE->setCaster(0);
    26102636    delete _casterEph; _casterEph = 0;
    … …  
    29002926    enable = !_corrPathLineEdit->text().isEmpty() || !_corrPortLineEdit->text().isEmpty();
    29012927    enableWidget(enable, _corrIntrComboBox);
     2928  }
     2929  if (sender() == 0 || sender() == _ssrQcFileLineEdit) {
     2930    enableWidget(!_ssrQcFileLineEdit->text().isEmpty(), _ssrQcIntrComboBox);
    29022931  }
    29032932
Note: See TracChangeset for help on using the changeset viewer.