Index: /trunk/BNC/bncwindow.cpp
===================================================================
--- /trunk/BNC/bncwindow.cpp	(revision 2595)
+++ /trunk/BNC/bncwindow.cpp	(revision 2596)
@@ -115,5 +115,5 @@
   _actStop->setEnabled(false);
 
-  _actwhatsthis= new QAction(tr("Help=Shift+F1"),this);
+  _actwhatsthis= new QAction(tr("Help ?=Shift+F1"),this);
   connect(_actwhatsthis, SIGNAL(triggered()), SLOT(slotWhatsThis()));
 
@@ -342,4 +342,5 @@
   _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString());
   _pppSigCLineEdit  = new QLineEdit(settings.value("pppSigmaCode").toString());
+  _pppAverageLineEdit  = new QLineEdit(settings.value("pppAverage").toString());
   _pppRefCrdXLineEdit  = new QLineEdit(settings.value("pppRefCrdX").toString());
   _pppRefCrdYLineEdit  = new QLineEdit(settings.value("pppRefCrdY").toString());
@@ -469,4 +470,5 @@
   _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>"));
   _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>"));
+  _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>"));
   _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>"));
   _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>"));
@@ -707,4 +709,5 @@
   QGridLayout* pppLayout = new QGridLayout;
   _pppSigCLineEdit->setMaximumWidth(5*ww);
+  _pppAverageLineEdit->setMaximumWidth(5*ww);
   _pppRefCrdXLineEdit->setMaximumWidth(14*ww);
   _pppRefCrdYLineEdit->setMaximumWidth(14*ww);
@@ -726,6 +729,9 @@
   pppLayout->addWidget(_pppGLONASSCheckBox,                  1, 7);
   pppLayout->addWidget(new QLabel("Use GLONASS"),            1, 8);
-  pppLayout->addWidget(new QLabel("Sigma code"),             2, 0);
+  pppLayout->addWidget(new QLabel("Options cont'd"),         2, 0);
   pppLayout->addWidget(_pppSigCLineEdit,                     2, 1);
+  pppLayout->addWidget(new QLabel("Sigma code"),             2, 2);
+  pppLayout->addWidget(_pppAverageLineEdit,                  2, 4);
+  pppLayout->addWidget(new QLabel("Averaging"),              2, 4, Qt::AlignRight);  
   pppLayout->addWidget(new QLabel("Plot origin"),            3, 0);
   pppLayout->addWidget(_pppOriginComboBox,                   3, 1, 1, 2);
@@ -1056,4 +1062,5 @@
   settings.setValue("nmeaPort",    _pppNMEAPortLineEdit->text());
   settings.setValue("pppSigmaCode",_pppSigCLineEdit->text());
+  settings.setValue("pppAverage",  _pppAverageLineEdit->text());
   settings.setValue("pppRefCrdX",  _pppRefCrdXLineEdit->text());
   settings.setValue("pppRefCrdY",  _pppRefCrdYLineEdit->text());
@@ -1638,4 +1645,12 @@
         _pppRefCrdZLineEdit->setEnabled(false);
       }
+      if (_pppOriginComboBox->currentText() != "No plot" ) {
+        _pppAverageLineEdit->setPalette(palette_white);
+        _pppAverageLineEdit->setEnabled(true);
+      }
+      else {
+        _pppAverageLineEdit->setPalette(palette_gray);
+        _pppAverageLineEdit->setEnabled(false);
+      }
       if (_pppUsePhaseCheckBox->isChecked() 
          && !_pppMountLineEdit->text().isEmpty()) {
@@ -1660,4 +1675,5 @@
       _pppOriginComboBox->setPalette(palette_gray);
       _pppSigCLineEdit->setPalette(palette_gray);
+      _pppAverageLineEdit->setPalette(palette_gray);
       _pppSPPComboBox->setEnabled(false);
       _pppNMEALineEdit->setEnabled(false);
@@ -1672,5 +1688,6 @@
       _pppOriginComboBox->setEnabled(false);
       _pppSigCLineEdit->setEnabled(false);
-    }
-  }
-}
+      _pppAverageLineEdit->setEnabled(false);
+    }
+  }
+}
