Changeset 2473 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
May 7, 2010, 4:20:41 PM (14 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r2436 r2473  
    341341  _pppNMEALineEdit     = new QLineEdit(settings.value("nmeaFile").toString());
    342342  _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString());
     343  _pppSigCLineEdit  = new QLineEdit(settings.value("pppSigC").toString());
    343344  _pppRefCrdXLineEdit  = new QLineEdit(settings.value("pppRefCrdX").toString());
    344345  _pppRefCrdYLineEdit  = new QLineEdit(settings.value("pppRefCrdY").toString());
    345346  _pppRefCrdZLineEdit  = new QLineEdit(settings.value("pppRefCrdZ").toString());
     347
    346348  _pppOriginComboBox = new QComboBox();
    347349  _pppOriginComboBox->setEditable(false);
     
    351353    _pppOriginComboBox->setCurrentIndex(ij);
    352354  }
     355
    353356  _pppSPPComboBox = new QComboBox();
    354357  _pppSPPComboBox->setEditable(false);
     
    375378
    376379  connect(_pppOriginComboBox, SIGNAL(currentIndexChanged(const QString &)),
     380          this, SLOT(slotBncTextChanged()));
     381
     382  connect(_pppUsePhaseCheckBox, SIGNAL(stateChanged(int)),
    377383          this, SLOT(slotBncTextChanged()));
    378384
     
    462468  _pppNMEAPortLineEdit->setWhatsThis(tr("<p>Specify an IP port number to output PPP results as NMEA messages through an IP port.</p>"));
    463469  _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>"));
    464471  _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>"));
    465472  _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>"));
     
    699706  // ----------
    700707  QGridLayout* pppLayout = new QGridLayout;
     708  _pppSigCLineEdit->setMaximumWidth(5*ww);
    701709  _pppRefCrdXLineEdit->setMaximumWidth(14*ww);
    702710  _pppRefCrdYLineEdit->setMaximumWidth(14*ww);
     
    718726  pppLayout->addWidget(_pppGLONASSCheckBox,                  1, 7);
    719727  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);
    734744  pppgroup->setLayout(pppLayout);
    735745
     
    10451055  settings.setValue("nmeaFile",    _pppNMEALineEdit->text());
    10461056  settings.setValue("nmeaPort",    _pppNMEAPortLineEdit->text());
     1057  settings.setValue("pppSigC",     _pppSigCLineEdit->text());
    10471058  settings.setValue("pppRefCrdX",  _pppRefCrdXLineEdit->text());
    10481059  settings.setValue("pppRefCrdY",  _pppRefCrdYLineEdit->text());
     
    13971408  QPalette palette_white(QColor(255, 255, 255));
    13981409  QPalette palette_gray(QColor(230, 230, 230));
     1410  bncSettings settings;
    13991411
    14001412  // Proxy
     
    15861598  // ----------
    15871599  if (sender() == 0 || sender() == _pppMountLineEdit
    1588      || sender() == _pppOriginComboBox) {
     1600     || sender() == _pppOriginComboBox || sender() == _pppUsePhaseCheckBox ) {
    15891601    if (!_pppMountLineEdit->text().isEmpty()) {
    15901602      _pppSPPComboBox->setPalette(palette_white);
     
    16261638        _pppRefCrdZLineEdit->setEnabled(false);
    16271639      }
     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      }
    16281649    } else {
    16291650      _pppSPPComboBox->setPalette(palette_gray);
     
    16381659      _pppGLONASSCheckBox->setPalette(palette_gray);
    16391660      _pppOriginComboBox->setPalette(palette_gray);
     1661      _pppSigCLineEdit->setPalette(palette_gray);
    16401662      _pppSPPComboBox->setEnabled(false);
    16411663      _pppNMEALineEdit->setEnabled(false);
     
    16491671      _pppGLONASSCheckBox->setEnabled(false);
    16501672      _pppOriginComboBox->setEnabled(false);
    1651     }
    1652   }
    1653 }
     1673      _pppSigCLineEdit->setEnabled(false);
     1674    }
     1675  }
     1676}
Note: See TracChangeset for help on using the changeset viewer.