Changeset 2473 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- May 7, 2010, 4:20:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r2436 r2473 341 341 _pppNMEALineEdit = new QLineEdit(settings.value("nmeaFile").toString()); 342 342 _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString()); 343 _pppSigCLineEdit = new QLineEdit(settings.value("pppSigC").toString()); 343 344 _pppRefCrdXLineEdit = new QLineEdit(settings.value("pppRefCrdX").toString()); 344 345 _pppRefCrdYLineEdit = new QLineEdit(settings.value("pppRefCrdY").toString()); 345 346 _pppRefCrdZLineEdit = new QLineEdit(settings.value("pppRefCrdZ").toString()); 347 346 348 _pppOriginComboBox = new QComboBox(); 347 349 _pppOriginComboBox->setEditable(false); … … 351 353 _pppOriginComboBox->setCurrentIndex(ij); 352 354 } 355 353 356 _pppSPPComboBox = new QComboBox(); 354 357 _pppSPPComboBox->setEditable(false); … … 375 378 376 379 connect(_pppOriginComboBox, SIGNAL(currentIndexChanged(const QString &)), 380 this, SLOT(slotBncTextChanged())); 381 382 connect(_pppUsePhaseCheckBox, SIGNAL(stateChanged(int)), 377 383 this, SLOT(slotBncTextChanged())); 378 384 … … 462 468 _pppNMEAPortLineEdit->setWhatsThis(tr("<p>Specify an IP port number to output PPP results as NMEA messages through an IP port.</p>")); 463 469 _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>")); 470 _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>")); 464 471 _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>")); 465 472 _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>")); … … 699 706 // ---------- 700 707 QGridLayout* pppLayout = new QGridLayout; 708 _pppSigCLineEdit->setMaximumWidth(5*ww); 701 709 _pppRefCrdXLineEdit->setMaximumWidth(14*ww); 702 710 _pppRefCrdYLineEdit->setMaximumWidth(14*ww); … … 718 726 pppLayout->addWidget(_pppGLONASSCheckBox, 1, 7); 719 727 pppLayout->addWidget(new QLabel("Use GLONASS"), 1, 8); 720 pppLayout->addWidget(new QLabel("Plot origin"), 2, 0); 721 pppLayout->addWidget(_pppOriginComboBox, 2, 1, 1, 2); 722 pppLayout->addWidget(new QLabel(" "), 2, 3); 723 pppLayout->addWidget(_pppRefCrdXLineEdit, 2, 4); 724 pppLayout->addWidget(new QLabel(" "), 2, 5); 725 pppLayout->addWidget(_pppRefCrdYLineEdit, 2, 6); 726 pppLayout->addWidget(new QLabel(" "), 2, 7); 727 pppLayout->addWidget(_pppRefCrdZLineEdit, 2, 8); 728 pppLayout->addWidget(new QLabel("NMEA File (full path)"), 3, 0); 729 pppLayout->addWidget(_pppNMEALineEdit, 3, 1, 1, 6); 730 pppLayout->addWidget(new QLabel("Port"), 3, 7); 731 pppLayout->addWidget(_pppNMEAPortLineEdit, 3, 8); 732 pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),4, 0,1,15); 733 pppLayout->addWidget(new QLabel(" "), 5, 0); 728 pppLayout->addWidget(new QLabel("Sigma code"), 2, 0); 729 pppLayout->addWidget(_pppSigCLineEdit, 2, 1); 730 pppLayout->addWidget(new QLabel("Plot origin"), 3, 0); 731 pppLayout->addWidget(_pppOriginComboBox, 3, 1, 1, 2); 732 pppLayout->addWidget(new QLabel(" "), 3, 3); 733 pppLayout->addWidget(_pppRefCrdXLineEdit, 3, 4); 734 pppLayout->addWidget(new QLabel(" "), 3, 5); 735 pppLayout->addWidget(_pppRefCrdYLineEdit, 3, 6); 736 pppLayout->addWidget(new QLabel(" "), 3, 7); 737 pppLayout->addWidget(_pppRefCrdZLineEdit, 3, 8); 738 pppLayout->addWidget(new QLabel("NMEA File (full path)"), 4, 0); 739 pppLayout->addWidget(_pppNMEALineEdit, 4, 1, 1, 6); 740 pppLayout->addWidget(new QLabel("Port"), 4, 7); 741 pppLayout->addWidget(_pppNMEAPortLineEdit, 4, 8); 742 743 pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),5, 0,1,15); 734 744 pppgroup->setLayout(pppLayout); 735 745 … … 1045 1055 settings.setValue("nmeaFile", _pppNMEALineEdit->text()); 1046 1056 settings.setValue("nmeaPort", _pppNMEAPortLineEdit->text()); 1057 settings.setValue("pppSigC", _pppSigCLineEdit->text()); 1047 1058 settings.setValue("pppRefCrdX", _pppRefCrdXLineEdit->text()); 1048 1059 settings.setValue("pppRefCrdY", _pppRefCrdYLineEdit->text()); … … 1397 1408 QPalette palette_white(QColor(255, 255, 255)); 1398 1409 QPalette palette_gray(QColor(230, 230, 230)); 1410 bncSettings settings; 1399 1411 1400 1412 // Proxy … … 1586 1598 // ---------- 1587 1599 if (sender() == 0 || sender() == _pppMountLineEdit 1588 || sender() == _pppOriginComboBox ) {1600 || sender() == _pppOriginComboBox || sender() == _pppUsePhaseCheckBox ) { 1589 1601 if (!_pppMountLineEdit->text().isEmpty()) { 1590 1602 _pppSPPComboBox->setPalette(palette_white); … … 1626 1638 _pppRefCrdZLineEdit->setEnabled(false); 1627 1639 } 1640 if (_pppUsePhaseCheckBox->isChecked() 1641 && !_pppMountLineEdit->text().isEmpty()) { 1642 _pppSigCLineEdit->setPalette(palette_white); 1643 _pppSigCLineEdit->setEnabled(true); 1644 } 1645 else { 1646 _pppSigCLineEdit->setPalette(palette_gray); 1647 _pppSigCLineEdit->setEnabled(false); 1648 } 1628 1649 } else { 1629 1650 _pppSPPComboBox->setPalette(palette_gray); … … 1638 1659 _pppGLONASSCheckBox->setPalette(palette_gray); 1639 1660 _pppOriginComboBox->setPalette(palette_gray); 1661 _pppSigCLineEdit->setPalette(palette_gray); 1640 1662 _pppSPPComboBox->setEnabled(false); 1641 1663 _pppNMEALineEdit->setEnabled(false); … … 1649 1671 _pppGLONASSCheckBox->setEnabled(false); 1650 1672 _pppOriginComboBox->setEnabled(false); 1651 } 1652 } 1653 } 1673 _pppSigCLineEdit->setEnabled(false); 1674 } 1675 } 1676 }
Note:
See TracChangeset
for help on using the changeset viewer.