Changeset 2164 in ntrip


Ignore:
Timestamp:
Jan 1, 2010, 6:28:21 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigureppp.cpp

    r2163 r2164  
    5151bncFigurePPP::bncFigurePPP(QWidget *parent) : QWidget(parent) {
    5252
    53   QString refCrdStr = "";
    54 
    55   QStringList refCrdStrList = refCrdStr.split(' ', QString::SkipEmptyParts);
    56   if (refCrdStrList.size() == 3) {
    57     _xyzRef[0] = refCrdStrList[0].toDouble();   
    58     _xyzRef[1] = refCrdStrList[1].toDouble();   
    59     _xyzRef[2] = refCrdStrList[2].toDouble();   
    60   }
    61   else {
    62     _xyzRef[0] = 0.0;   
    63     _xyzRef[1] = 0.0;   
    64     _xyzRef[2] = 0.0;   
     53  bncSettings settings;
     54
     55  _xyzRef[0] = 0.0;   
     56  _xyzRef[1] = 0.0;   
     57  _xyzRef[2] = 0.0;   
     58
     59  QString refCrdStr = settings.value("pppRefCrd").toString();
     60  if (!refCrdStr.isEmpty()) {
     61    QStringList refCrdStrList = refCrdStr.split(' ', QString::SkipEmptyParts);
     62    if (refCrdStrList.size() == 3) {
     63      _xyzRef[0] = refCrdStrList[0].toDouble();   
     64      _xyzRef[1] = refCrdStrList[1].toDouble();   
     65      _xyzRef[2] = refCrdStrList[2].toDouble();   
     66    }
    6567  }
    6668}
  • trunk/BNC/bncwindow.cpp

    r2145 r2164  
    338338  _pppMountLineEdit  = new QLineEdit(settings.value("pppMount").toString());
    339339  _pppNMEALineEdit   = new QLineEdit(settings.value("nmeaFile").toString());
     340  _pppRefCrdLineEdit = new QLineEdit(settings.value("pppRefCrd").toString());
    340341  _pppStaticCheckBox = new QCheckBox();
    341342  _pppStaticCheckBox->setCheckState(Qt::CheckState(
     
    678679  pppLayout->addWidget(new QLabel("NMEA file (full path)"),  2, 0);
    679680  pppLayout->addWidget(_pppNMEALineEdit,                     2, 1, 1, 6);
    680   pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),3, 0,1,30);
    681   pppLayout->addWidget(new QLabel("    "),                4, 0);
     681  pppLayout->addWidget(new QLabel("Reference Coordinates"),  3, 0);
     682  pppLayout->addWidget(_pppRefCrdLineEdit,                   3, 1, 1, 6);
     683  pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),4, 0,1,30);
    682684  pppLayout->addWidget(new QLabel("    "),                5, 0);
     685  pppLayout->addWidget(new QLabel("    "),                6, 0);
    683686  pppgroup->setLayout(pppLayout);
    684687
     
    991994  settings.setValue("pppMount",    _pppMountLineEdit->text());
    992995  settings.setValue("nmeaFile",    _pppNMEALineEdit->text());
     996  settings.setValue("pppRefCrd",   _pppRefCrdLineEdit->text());
    993997  settings.setValue("pppStatic",   _pppStaticCheckBox->checkState());
    994998  settings.setValue("pppUsePhase", _pppUsePhaseCheckBox->checkState());
     
    15261530    if (!_pppMountLineEdit->text().isEmpty()) {
    15271531      _pppNMEALineEdit->setPalette(palette_white);
     1532      _pppRefCrdLineEdit->setPalette(palette_white);
    15281533      _pppStaticCheckBox->setPalette(palette_white);
    15291534      _pppUsePhaseCheckBox->setPalette(palette_white);
     
    15311536      _pppGLONASSCheckBox->setPalette(palette_white);
    15321537      _pppNMEALineEdit->setEnabled(true);
     1538      _pppRefCrdLineEdit->setEnabled(true);
    15331539      _pppStaticCheckBox->setEnabled(true);
    15341540      _pppUsePhaseCheckBox->setEnabled(true);
     
    15371543    } else {
    15381544      _pppNMEALineEdit->setPalette(palette_gray);
     1545      _pppRefCrdLineEdit->setPalette(palette_gray);
    15391546      _pppStaticCheckBox->setPalette(palette_gray);
    15401547      _pppUsePhaseCheckBox->setPalette(palette_gray);
     
    15421549      _pppGLONASSCheckBox->setPalette(palette_gray);
    15431550      _pppNMEALineEdit->setEnabled(false);
     1551      _pppRefCrdLineEdit->setEnabled(false);
    15441552      _pppStaticCheckBox->setEnabled(false);
    15451553      _pppUsePhaseCheckBox->setEnabled(false);
  • trunk/BNC/bncwindow.h

    r2141 r2164  
    115115    QLineEdit* _pppMountLineEdit;
    116116    QLineEdit* _pppNMEALineEdit;
     117    QLineEdit* _pppRefCrdLineEdit;
    117118    QCheckBox* _pppStaticCheckBox;
    118119    QCheckBox* _pppUsePhaseCheckBox;
Note: See TracChangeset for help on using the changeset viewer.