Changeset 2596 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Sep 8, 2010, 4:08:14 PM (14 years ago)
Author:
weber
Message:

Output of moving average

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r2483 r2596  
    115115  _actStop->setEnabled(false);
    116116
    117   _actwhatsthis= new QAction(tr("Help=Shift+F1"),this);
     117  _actwhatsthis= new QAction(tr("Help ?=Shift+F1"),this);
    118118  connect(_actwhatsthis, SIGNAL(triggered()), SLOT(slotWhatsThis()));
    119119
     
    342342  _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString());
    343343  _pppSigCLineEdit  = new QLineEdit(settings.value("pppSigmaCode").toString());
     344  _pppAverageLineEdit  = new QLineEdit(settings.value("pppAverage").toString());
    344345  _pppRefCrdXLineEdit  = new QLineEdit(settings.value("pppRefCrdX").toString());
    345346  _pppRefCrdYLineEdit  = new QLineEdit(settings.value("pppRefCrdY").toString());
     
    469470  _pppOriginComboBox->setWhatsThis(tr("<p>Select an origin for North/East/Up time series plots in the 'PPP Plot' tab. This option makes only sense for a stationary receiver.</p>"));
    470471  _pppSigCLineEdit->setWhatsThis(tr("<p>Enter a sigma for your code observations in meters.</p><p>5.0 (default) is likely to be an appropriate choice.</p>"));
     472  _pppAverageLineEdit->setWhatsThis(tr("<p>Enter the length of a sliding time window in minutes. BNC will continuously output moving average positions computed from those individual positions obtained most recently throughout this period.</p><p>An empty option field (default) means that you don't wont BNC to output moving average positions into the log file.</p>"));
    471473  _pppRefCrdXLineEdit->setWhatsThis(tr("<p>You may enter reference coordinates of the receiver position if known. The time series plots shown in the 'PPP Plot' tab will then be referred to these values.</p>"));
    472474  _pppRefCrdYLineEdit->setWhatsThis(tr("<p>You may enter reference coordinates of the receiver position if known. The time series plots shown in the 'PPP Plot' tab will then be referred to these values.</p>"));
     
    707709  QGridLayout* pppLayout = new QGridLayout;
    708710  _pppSigCLineEdit->setMaximumWidth(5*ww);
     711  _pppAverageLineEdit->setMaximumWidth(5*ww);
    709712  _pppRefCrdXLineEdit->setMaximumWidth(14*ww);
    710713  _pppRefCrdYLineEdit->setMaximumWidth(14*ww);
     
    726729  pppLayout->addWidget(_pppGLONASSCheckBox,                  1, 7);
    727730  pppLayout->addWidget(new QLabel("Use GLONASS"),            1, 8);
    728   pppLayout->addWidget(new QLabel("Sigma code"),             2, 0);
     731  pppLayout->addWidget(new QLabel("Options cont'd"),         2, 0);
    729732  pppLayout->addWidget(_pppSigCLineEdit,                     2, 1);
     733  pppLayout->addWidget(new QLabel("Sigma code"),             2, 2);
     734  pppLayout->addWidget(_pppAverageLineEdit,                  2, 4);
     735  pppLayout->addWidget(new QLabel("Averaging"),              2, 4, Qt::AlignRight); 
    730736  pppLayout->addWidget(new QLabel("Plot origin"),            3, 0);
    731737  pppLayout->addWidget(_pppOriginComboBox,                   3, 1, 1, 2);
     
    10561062  settings.setValue("nmeaPort",    _pppNMEAPortLineEdit->text());
    10571063  settings.setValue("pppSigmaCode",_pppSigCLineEdit->text());
     1064  settings.setValue("pppAverage",  _pppAverageLineEdit->text());
    10581065  settings.setValue("pppRefCrdX",  _pppRefCrdXLineEdit->text());
    10591066  settings.setValue("pppRefCrdY",  _pppRefCrdYLineEdit->text());
     
    16381645        _pppRefCrdZLineEdit->setEnabled(false);
    16391646      }
     1647      if (_pppOriginComboBox->currentText() != "No plot" ) {
     1648        _pppAverageLineEdit->setPalette(palette_white);
     1649        _pppAverageLineEdit->setEnabled(true);
     1650      }
     1651      else {
     1652        _pppAverageLineEdit->setPalette(palette_gray);
     1653        _pppAverageLineEdit->setEnabled(false);
     1654      }
    16401655      if (_pppUsePhaseCheckBox->isChecked()
    16411656         && !_pppMountLineEdit->text().isEmpty()) {
     
    16601675      _pppOriginComboBox->setPalette(palette_gray);
    16611676      _pppSigCLineEdit->setPalette(palette_gray);
     1677      _pppAverageLineEdit->setPalette(palette_gray);
    16621678      _pppSPPComboBox->setEnabled(false);
    16631679      _pppNMEALineEdit->setEnabled(false);
     
    16721688      _pppOriginComboBox->setEnabled(false);
    16731689      _pppSigCLineEdit->setEnabled(false);
    1674     }
    1675   }
    1676 }
     1690      _pppAverageLineEdit->setEnabled(false);
     1691    }
     1692  }
     1693}
Note: See TracChangeset for help on using the changeset viewer.