Changeset 2303 in ntrip


Ignore:
Timestamp:
Feb 19, 2010, 11:50:25 AM (14 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsettings.cpp

    r2188 r2303  
    8484    setValue("pppRefCrdY",       "");
    8585    setValue("pppRefCrdZ",       "");
     86    setValue("pppOrigin",        "");
    8687    setValue("nmeaFile",         "");
    8788    setValue("nmeaPort",         "");
  • trunk/BNC/bncwindow.cpp

    r2282 r2303  
    342342  _pppRefCrdYLineEdit  = new QLineEdit(settings.value("pppRefCrdY").toString());
    343343  _pppRefCrdZLineEdit  = new QLineEdit(settings.value("pppRefCrdZ").toString());
     344  _pppOriginComboBox = new QComboBox();
     345  _pppOriginComboBox->setEditable(false);
     346  _pppOriginComboBox->addItems(QString(",Start position,X Y Z").split(","));
     347  int ij = _pppOriginComboBox->findText(settings.value("pppOrigin").toString());
     348  if (ij != -1) {
     349    _pppOriginComboBox->setCurrentIndex(ij);
     350  }
    344351  _pppStaticCheckBox   = new QCheckBox();
    345352  _pppStaticCheckBox->setCheckState(Qt::CheckState(
     
    356363
    357364  connect(_pppMountLineEdit, SIGNAL(textChanged(const QString &)),
     365          this, SLOT(slotBncTextChanged()));
     366
     367  connect(_pppOriginComboBox, SIGNAL(currentIndexChanged(const QString &)),
    358368          this, SLOT(slotBncTextChanged()));
    359369
     
    439449  _pppNMEALineEdit->setWhatsThis(tr("<p>Specify the full path to a file where PPP results are saved as NMEA messages.</p>"));
    440450  _pppNMEAPortLineEdit->setWhatsThis(tr("<p>Specify an IP port number to output PPP results as NMEA messages through an IP port.</p>"));
    441   _pppRefCrdXLineEdit->setWhatsThis(tr("<p>You may enter reference coordinates of the receiver position if known. The time series plots shown in the 'PPP' tab will then be referred to these values.</p>"));
    442   _pppRefCrdYLineEdit->setWhatsThis(tr("<p>You may enter reference coordinates of the receiver position if known. The time series plots shown inthe 'PPP' tab will then be referred to these values.</p>"));
    443   _pppRefCrdZLineEdit->setWhatsThis(tr("<p>You may enter reference coordinates of the receiver position if known. The time series plots shown inthe 'PPP' tab will then be referred to these values.</p>"));
    444   _bncFigurePPP->setWhatsThis(tr("PPP time series of North (red), East (green) and Up (blue) coordinate components are shown in the 'PPP' tab when the 'Static' PPP option is applied. Values are either referred to reference coordinates (if specified) or referred to the first estimated set of coordinate compoments. The sliding PPP time series window covers the period of the latest 5 minutes."));
     451  _pppOriginComboBox->setWhatsThis(tr("<p>Select an origion for North/East/Up time series plots in the 'PPP Plot' tab. This option makes only sense for a stationary receiver.</p>"));
     452  _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>"));
     453  _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>"));
     454  _pppRefCrdZLineEdit->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>"));
     455  _bncFigurePPP->setWhatsThis(tr("PPP time series of North (red), East (green) and Up (blue) coordinate components are shown in the 'PPP Plot' tab when a 'Plot origin' PPP option is applied. Values are either referred to reference coordinates (if specified) or referred to the first estimated set of coordinate compoments. The sliding PPP time series window covers the period of the latest 5 minutes."));
    445456
    446457  // Canvas with Editable Fields
     
    477488  _loggroup->addTab(_bncFigure,tr("Throughput"));
    478489  _loggroup->addTab(_bncFigureLate,tr("Latency"));
    479   _loggroup->addTab(_bncFigurePPP,tr("Static PPP"));
     490  _loggroup->addTab(_bncFigurePPP,tr("PPP Plot"));
    480491
    481492  // Proxy Tab
     
    678689  _pppRefCrdYLineEdit->setMaximumWidth(14*ww);
    679690  _pppRefCrdZLineEdit->setMaximumWidth(14*ww);
     691  _pppNMEAPortLineEdit->setMaximumWidth(14*ww);
     692  _pppOriginComboBox->setMaximumWidth(14*ww);
    680693  pppLayout->setColumnMinimumWidth(0,14*ww);
    681694  pppLayout->addWidget(new QLabel("Mountpoint"),             0, 0);
     
    690703  pppLayout->addWidget(_pppGLONASSCheckBox,                  1, 7);
    691704  pppLayout->addWidget(new QLabel("Use GLONASS"),            1, 8);
    692   pppLayout->addWidget(new QLabel("Ref. coordinates"),       2, 0);
    693   pppLayout->addWidget(_pppRefCrdXLineEdit,                  2, 1, 1, 2);
    694   pppLayout->addWidget(new QLabel("X"),                      2, 3);
    695   pppLayout->addWidget(_pppRefCrdYLineEdit,                  2, 4);
    696   pppLayout->addWidget(new QLabel("Y"),                      2, 5);
    697   pppLayout->addWidget(_pppRefCrdZLineEdit,                  2, 6);
    698   pppLayout->addWidget(new QLabel("Z"),                      2, 7);
     705  pppLayout->addWidget(new QLabel("Plot origin"),            2, 0);
     706  pppLayout->addWidget(_pppOriginComboBox,                   2, 1, 1, 2);
     707  pppLayout->addWidget(new QLabel("  "),                     2, 3);
     708  pppLayout->addWidget(_pppRefCrdXLineEdit,                  2, 4);
     709  pppLayout->addWidget(new QLabel("  "),                     2, 5);
     710  pppLayout->addWidget(_pppRefCrdYLineEdit,                  2, 6);
     711  pppLayout->addWidget(new QLabel("  "),                     2, 7);
     712  pppLayout->addWidget(_pppRefCrdZLineEdit,                  2, 8);
    699713  pppLayout->addWidget(new QLabel("NMEA File (full path)"),  3, 0);
    700714  pppLayout->addWidget(_pppNMEALineEdit,                     3, 1, 1, 6);
    701715  pppLayout->addWidget(new QLabel("Port"),                   3, 7);
    702   pppLayout->addWidget(_pppNMEAPortLineEdit,                 3, 8, 1, 2);
     716  pppLayout->addWidget(_pppNMEAPortLineEdit,                 3, 8);
     717//pppLayout->addWidget(_pppNMEAPortLineEdit,                 3, 8, 1, 1);
    703718  pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),4, 0,1,15);
    704719  pppLayout->addWidget(new QLabel("    "),                   5, 0);
     
    10211036  settings.setValue("pppEstTropo", _pppEstTropoCheckBox->checkState());
    10221037  settings.setValue("pppGLONASS",  _pppGLONASSCheckBox->checkState());
     1038  settings.setValue("pppOrigin",   _pppOriginComboBox->currentText());
    10231039  settings.setValue("mountPoints", mountPoints);
    10241040  settings.setValue("obsRate",     _obsRateComboBox->currentText());
     
    15511567  // PPP Client
    15521568  // ----------
    1553   if (sender() == 0 || sender() == _pppMountLineEdit) {
     1569  if (sender() == 0 || sender() == _pppMountLineEdit
     1570     || sender() == _pppOriginComboBox) {
    15541571    if (!_pppMountLineEdit->text().isEmpty()) {
    15551572      _pppNMEALineEdit->setPalette(palette_white);
     
    15621579      _pppEstTropoCheckBox->setPalette(palette_white);
    15631580      _pppGLONASSCheckBox->setPalette(palette_white);
     1581      _pppOriginComboBox->setPalette(palette_white);
    15641582      _pppNMEALineEdit->setEnabled(true);
    15651583      _pppNMEAPortLineEdit->setEnabled(true);
     
    15711589      _pppEstTropoCheckBox->setEnabled(true);
    15721590      _pppGLONASSCheckBox->setEnabled(true);
     1591      _pppOriginComboBox->setEnabled(true);
     1592      if (_pppOriginComboBox->currentText() == "X Y Z" ) {
     1593        _pppRefCrdXLineEdit->setPalette(palette_white);
     1594        _pppRefCrdXLineEdit->setEnabled(true);
     1595        _pppRefCrdYLineEdit->setPalette(palette_white);
     1596        _pppRefCrdYLineEdit->setEnabled(true);
     1597        _pppRefCrdZLineEdit->setPalette(palette_white);
     1598        _pppRefCrdZLineEdit->setEnabled(true);
     1599      }
     1600      else {
     1601        _pppRefCrdXLineEdit->setPalette(palette_gray);
     1602        _pppRefCrdXLineEdit->setEnabled(false);
     1603        _pppRefCrdYLineEdit->setPalette(palette_gray);
     1604        _pppRefCrdYLineEdit->setEnabled(false);
     1605        _pppRefCrdZLineEdit->setPalette(palette_gray);
     1606        _pppRefCrdZLineEdit->setEnabled(false);
     1607      }
    15731608    } else {
    15741609      _pppNMEALineEdit->setPalette(palette_gray);
     
    15811616      _pppEstTropoCheckBox->setPalette(palette_gray);
    15821617      _pppGLONASSCheckBox->setPalette(palette_gray);
     1618      _pppOriginComboBox->setPalette(palette_gray);
    15831619      _pppNMEALineEdit->setEnabled(false);
    15841620      _pppNMEAPortLineEdit->setEnabled(false);
     
    15901626      _pppEstTropoCheckBox->setEnabled(false);
    15911627      _pppGLONASSCheckBox->setEnabled(false);
    1592     }
    1593   }
    1594 }
     1628      _pppOriginComboBox->setEnabled(false);
     1629    }
     1630  }
     1631}
  • trunk/BNC/bncwindow.h

    r2185 r2303  
    160160
    161161    QComboBox*  _onTheFlyComboBox;
     162    QComboBox*  _pppOriginComboBox;
    162163
    163164    QTextEdit*  _log;
Note: See TracChangeset for help on using the changeset viewer.