- Timestamp:
- Feb 19, 2010, 11:50:25 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsettings.cpp
r2188 r2303 84 84 setValue("pppRefCrdY", ""); 85 85 setValue("pppRefCrdZ", ""); 86 setValue("pppOrigin", ""); 86 87 setValue("nmeaFile", ""); 87 88 setValue("nmeaPort", ""); -
trunk/BNC/bncwindow.cpp
r2282 r2303 342 342 _pppRefCrdYLineEdit = new QLineEdit(settings.value("pppRefCrdY").toString()); 343 343 _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 } 344 351 _pppStaticCheckBox = new QCheckBox(); 345 352 _pppStaticCheckBox->setCheckState(Qt::CheckState( … … 356 363 357 364 connect(_pppMountLineEdit, SIGNAL(textChanged(const QString &)), 365 this, SLOT(slotBncTextChanged())); 366 367 connect(_pppOriginComboBox, SIGNAL(currentIndexChanged(const QString &)), 358 368 this, SLOT(slotBncTextChanged())); 359 369 … … 439 449 _pppNMEALineEdit->setWhatsThis(tr("<p>Specify the full path to a file where PPP results are saved as NMEA messages.</p>")); 440 450 _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.")); 445 456 446 457 // Canvas with Editable Fields … … 477 488 _loggroup->addTab(_bncFigure,tr("Throughput")); 478 489 _loggroup->addTab(_bncFigureLate,tr("Latency")); 479 _loggroup->addTab(_bncFigurePPP,tr(" Static PPP"));490 _loggroup->addTab(_bncFigurePPP,tr("PPP Plot")); 480 491 481 492 // Proxy Tab … … 678 689 _pppRefCrdYLineEdit->setMaximumWidth(14*ww); 679 690 _pppRefCrdZLineEdit->setMaximumWidth(14*ww); 691 _pppNMEAPortLineEdit->setMaximumWidth(14*ww); 692 _pppOriginComboBox->setMaximumWidth(14*ww); 680 693 pppLayout->setColumnMinimumWidth(0,14*ww); 681 694 pppLayout->addWidget(new QLabel("Mountpoint"), 0, 0); … … 690 703 pppLayout->addWidget(_pppGLONASSCheckBox, 1, 7); 691 704 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); 699 713 pppLayout->addWidget(new QLabel("NMEA File (full path)"), 3, 0); 700 714 pppLayout->addWidget(_pppNMEALineEdit, 3, 1, 1, 6); 701 715 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); 703 718 pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),4, 0,1,15); 704 719 pppLayout->addWidget(new QLabel(" "), 5, 0); … … 1021 1036 settings.setValue("pppEstTropo", _pppEstTropoCheckBox->checkState()); 1022 1037 settings.setValue("pppGLONASS", _pppGLONASSCheckBox->checkState()); 1038 settings.setValue("pppOrigin", _pppOriginComboBox->currentText()); 1023 1039 settings.setValue("mountPoints", mountPoints); 1024 1040 settings.setValue("obsRate", _obsRateComboBox->currentText()); … … 1551 1567 // PPP Client 1552 1568 // ---------- 1553 if (sender() == 0 || sender() == _pppMountLineEdit) { 1569 if (sender() == 0 || sender() == _pppMountLineEdit 1570 || sender() == _pppOriginComboBox) { 1554 1571 if (!_pppMountLineEdit->text().isEmpty()) { 1555 1572 _pppNMEALineEdit->setPalette(palette_white); … … 1562 1579 _pppEstTropoCheckBox->setPalette(palette_white); 1563 1580 _pppGLONASSCheckBox->setPalette(palette_white); 1581 _pppOriginComboBox->setPalette(palette_white); 1564 1582 _pppNMEALineEdit->setEnabled(true); 1565 1583 _pppNMEAPortLineEdit->setEnabled(true); … … 1571 1589 _pppEstTropoCheckBox->setEnabled(true); 1572 1590 _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 } 1573 1608 } else { 1574 1609 _pppNMEALineEdit->setPalette(palette_gray); … … 1581 1616 _pppEstTropoCheckBox->setPalette(palette_gray); 1582 1617 _pppGLONASSCheckBox->setPalette(palette_gray); 1618 _pppOriginComboBox->setPalette(palette_gray); 1583 1619 _pppNMEALineEdit->setEnabled(false); 1584 1620 _pppNMEAPortLineEdit->setEnabled(false); … … 1590 1626 _pppEstTropoCheckBox->setEnabled(false); 1591 1627 _pppGLONASSCheckBox->setEnabled(false); 1592 } 1593 } 1594 } 1628 _pppOriginComboBox->setEnabled(false); 1629 } 1630 } 1631 } -
trunk/BNC/bncwindow.h
r2185 r2303 160 160 161 161 QComboBox* _onTheFlyComboBox; 162 QComboBox* _pppOriginComboBox; 162 163 163 164 QTextEdit* _log;
Note:
See TracChangeset
for help on using the changeset viewer.