Changeset 6318 in ntrip for trunk


Ignore:
Timestamp:
Nov 10, 2014, 4:22:47 PM (9 years ago)
Author:
stuerze
Message:

small changes to allow to disable the QC plot generation on request

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r6299 r6318  
    10071007  _reqcSkyPlotSystems = new QComboBox();
    10081008  _reqcSkyPlotSystems->setEditable(false);
    1009   _reqcSkyPlotSystems->addItems(QString("ALL,GPS,GLONASS,Galileo").split(","));
     1009  _reqcSkyPlotSystems->addItems(QString(",ALL,GPS,GLONASS,Galileo").split(","));
    10101010  ik = _reqcSkyPlotSystems->findText(settings.value("reqcSkyPlotSystems").toString());
    10111011  if (ik != -1) {
    10121012    _reqcSkyPlotSystems->setCurrentIndex(ik);
    10131013  }
     1014  connect(_reqcSkyPlotSystems, SIGNAL(currentIndexChanged(const QString &)),
     1015          this, SLOT(slotBncTextChanged()));
    10141016
    10151017  _reqcLogSummaryOnly = new QCheckBox();
     
    21662168  // QC
    21672169  // --
    2168   if (sender() == 0 || sender() == _reqcActionComboBox) {
     2170  if (sender() == 0 || sender() == _reqcActionComboBox || sender() == _reqcSkyPlotSystems) {
    21692171    enable = !_reqcActionComboBox->currentText().isEmpty();
    21702172    bool enable10 = _reqcActionComboBox->currentText() == "Edit/Concatenate";
     2173    bool enablePlot = !_reqcSkyPlotSystems->currentText().isEmpty();
    21712174    enableWidget(enable &&  enable10, _reqcEditOptionButton);
    21722175    enableWidget(enable,              _reqcObsFileChooser);
     
    21752178    enableWidget(enable &&  enable10, _reqcOutNavLineEdit);
    21762179    enableWidget(enable,              _reqcOutLogLineEdit);
    2177     enableWidget(enable && !enable10, _reqcPlotDirLineEdit);
     2180    enableWidget(enable && !enable10 && enablePlot, _reqcPlotDirLineEdit);
    21782181    enableWidget(enable && !enable10, _reqcSkyPlotSystems);
    21792182    enableWidget(enable && !enable10, _reqcLogSummaryOnly);
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6317 r6318  
    492492void t_reqcAnalyze::preparePlotData(const t_rnxObsFile* obsFile) {
    493493
    494   QVector<t_polarPoint*>* dataMP1  = new QVector<t_polarPoint*>;
    495   QVector<t_polarPoint*>* dataMP2  = new QVector<t_polarPoint*>;
    496   QVector<t_polarPoint*>* dataSNR1 = new QVector<t_polarPoint*>;
    497   QVector<t_polarPoint*>* dataSNR2 = new QVector<t_polarPoint*>;
    498 
    499494  bncSettings settings;
    500495  QString reqSkyPlotSystems = settings.value("reqcSkyPlotSystems").toString();
     
    511506    plotGal = true;
    512507  }
    513   else {
     508  else if (reqSkyPlotSystems == "ALL") {
    514509    plotGPS = true;
    515510    plotGlo = true;
    516511    plotGal = true;
    517512  }
     513  else {
     514          return;
     515  }
     516
     517  QVector<t_polarPoint*>* dataMP1  = new QVector<t_polarPoint*>;
     518  QVector<t_polarPoint*>* dataMP2  = new QVector<t_polarPoint*>;
     519  QVector<t_polarPoint*>* dataSNR1 = new QVector<t_polarPoint*>;
     520  QVector<t_polarPoint*>* dataSNR2 = new QVector<t_polarPoint*>;
    518521
    519522  // Loop over all observations
Note: See TracChangeset for help on using the changeset viewer.