Changeset 2164 in ntrip
- Timestamp:
- Jan 1, 2010, 6:28:21 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigureppp.cpp
r2163 r2164 51 51 bncFigurePPP::bncFigurePPP(QWidget *parent) : QWidget(parent) { 52 52 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 } 65 67 } 66 68 } -
trunk/BNC/bncwindow.cpp
r2145 r2164 338 338 _pppMountLineEdit = new QLineEdit(settings.value("pppMount").toString()); 339 339 _pppNMEALineEdit = new QLineEdit(settings.value("nmeaFile").toString()); 340 _pppRefCrdLineEdit = new QLineEdit(settings.value("pppRefCrd").toString()); 340 341 _pppStaticCheckBox = new QCheckBox(); 341 342 _pppStaticCheckBox->setCheckState(Qt::CheckState( … … 678 679 pppLayout->addWidget(new QLabel("NMEA file (full path)"), 2, 0); 679 680 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); 682 684 pppLayout->addWidget(new QLabel(" "), 5, 0); 685 pppLayout->addWidget(new QLabel(" "), 6, 0); 683 686 pppgroup->setLayout(pppLayout); 684 687 … … 991 994 settings.setValue("pppMount", _pppMountLineEdit->text()); 992 995 settings.setValue("nmeaFile", _pppNMEALineEdit->text()); 996 settings.setValue("pppRefCrd", _pppRefCrdLineEdit->text()); 993 997 settings.setValue("pppStatic", _pppStaticCheckBox->checkState()); 994 998 settings.setValue("pppUsePhase", _pppUsePhaseCheckBox->checkState()); … … 1526 1530 if (!_pppMountLineEdit->text().isEmpty()) { 1527 1531 _pppNMEALineEdit->setPalette(palette_white); 1532 _pppRefCrdLineEdit->setPalette(palette_white); 1528 1533 _pppStaticCheckBox->setPalette(palette_white); 1529 1534 _pppUsePhaseCheckBox->setPalette(palette_white); … … 1531 1536 _pppGLONASSCheckBox->setPalette(palette_white); 1532 1537 _pppNMEALineEdit->setEnabled(true); 1538 _pppRefCrdLineEdit->setEnabled(true); 1533 1539 _pppStaticCheckBox->setEnabled(true); 1534 1540 _pppUsePhaseCheckBox->setEnabled(true); … … 1537 1543 } else { 1538 1544 _pppNMEALineEdit->setPalette(palette_gray); 1545 _pppRefCrdLineEdit->setPalette(palette_gray); 1539 1546 _pppStaticCheckBox->setPalette(palette_gray); 1540 1547 _pppUsePhaseCheckBox->setPalette(palette_gray); … … 1542 1549 _pppGLONASSCheckBox->setPalette(palette_gray); 1543 1550 _pppNMEALineEdit->setEnabled(false); 1551 _pppRefCrdLineEdit->setEnabled(false); 1544 1552 _pppStaticCheckBox->setEnabled(false); 1545 1553 _pppUsePhaseCheckBox->setEnabled(false); -
trunk/BNC/bncwindow.h
r2141 r2164 115 115 QLineEdit* _pppMountLineEdit; 116 116 QLineEdit* _pppNMEALineEdit; 117 QLineEdit* _pppRefCrdLineEdit; 117 118 QCheckBox* _pppStaticCheckBox; 118 119 QCheckBox* _pppUsePhaseCheckBox;
Note:
See TracChangeset
for help on using the changeset viewer.