Changeset 3066 in ntrip


Ignore:
Timestamp:
Mar 4, 2011, 3:54:32 PM (14 years ago)
Author:
weber
Message:

Design on combination modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3060 r3066  
    461461  _cmbOutPathLineEdit = new QLineEdit(settings.value("cmbOutPath").toString());
    462462  _cmbSP3PathLineEdit = new QLineEdit(settings.value("cmbSP3Path").toString());
     463
     464  connect(_cmbTable, SIGNAL(itemSelectionChanged()),
     465          SLOT(slotBncTextChanged()));
     466  connect(_cmbMountpointLineEdit, SIGNAL(textChanged(const QString &)),
     467          this, SLOT(slotBncTextChanged()));
    463468
    464469  // WhatsThis
     
    543548  _pppAntennaLineEdit->setWhatsThis(tr("<p>Specify the receiver's antenna name as defined in your ANTEX file. Observations will be corrected for the antenna phase center's offset which may result in a reduction of a few centimeters at max. Corrections for phase center variations are not yet applied by BNC. The specified name must consist of 20 characters. Add trailing blanks if the antenna name has less then 20 characters.</p><p>Default is an empty option field meaning that you don't want to correct observations for antenna phase center offsets.</p>"));
    544549  _pppApplySatAntCheckBox->setWhatsThis(tr("<p>This option is not yet working.</p><p>Satellite orbit and clock corrections refer to the satellite's antenna phase centers and hence observations are actually <u>not</u> to be corrected for satellite antenna phase center offsets. However, you may like to tick 'Apply Offsets' to force BNC to correct observations for satellite antenna phase center offsets.</p><p>Default is to <u>not</u> correct observations for satellite antenna phase center offsets."));
    545   _cmbTable->setWhatsThis(tr("<p>Double click on the 'Mountpoint' field, enter a Broadcast Ephemeris corrections mountpoint from the 'Streams' section below and hit Enter. Then double click on the 'AC Name' field to enter your choice of an abbreviation for the Analysis Center (AC) providing the stream. Finally, double click on the 'Weight' field to enter a weight to be applied for this stream in the combination.</p><p>Note that an appropriate 'Wait for full epoch' value needs to be specified for the combination under the 'Broadcast Corrections' tab. A value of 15 seconds would make sense for that if the update rate of incoming clock corrections is i.e. 10 seconds.</p>"));
     550  _cmbTable->setWhatsThis(tr("<p>Double click on the 'Mountpoint' field to enter a Broadcast Ephemeris corrections mountpoint from the 'Streams' section below and hit Enter. Then double click on the 'AC Name' field to enter your choice of an abbreviation for the Analysis Center (AC) providing the stream. Finally, double click on the 'Weight' field to enter a weight to be applied for this stream in the combination.</p><p>Note that an appropriate 'Wait for full epoch' value needs to be specified for the combination under the 'Broadcast Corrections' tab. A value of 15 seconds would make sense there if the update rate of incoming clock corrections is i.e. 10 seconds.</p><p>Note further that the sequence of rows in the 'Combination Table' is of importance because the orbit information in the final combination stream is just copied from the orbits in the stream listed in the first row.</p><p>Note also that the combination process requires Broadcast Ephemeris. Besides the orbit and clock corrections streams BNC must therefore pull a stream carrying Broadcast Ephemeris in the form of RTCM Version 3 message. Stream RTCM3EPH on caster products.igs-ip.net:2101 is an example for that.</p>"));
    546551  addCmbRowButton->setWhatsThis(tr("Hit 'Add Row' button to add another line to the mountpoints table."));
    547552  delCmbRowButton->setWhatsThis(tr("Hit 'Delete' button to delete the highlited line from the mountpoints table."));
     
    550555  _cmbMountpointLineEdit->setWhatsThis(tr("<p>Enter a mountpoint for the combination stream. The combination will only be carried out if a mountpoint is defined.</p><p>If 'Host', 'Port' and 'Password' are set, the combination stream will be uploaded to the specified Ntrip Broadcaster.</p><p>Note that the mountpoint defined here can be introduce as 'Obs Mountpoint' under the 'PPP (1)' tab to carry out a Precise Point Positioning through using the combination stream without pulling it from the Ntrip Broadcaster."));
    551556  _cmbPasswordLineEdit->setWhatsThis(tr("Enter the password for uploading the combination stream to the specified Ntrip Broadcaster."));
    552   _cmbOutPathLineEdit->setWhatsThis(tr("Specify a directory for saving the combined Broadcast Ephemeris corrections on disc in a plain ASCII format."));
    553   _cmbSP3PathLineEdit->setWhatsThis(tr("Specify a directory for saving the combined Broadcast Ephemeris corrections on disc in SP3 format."));
     557  _cmbOutPathLineEdit->setWhatsThis(tr("<p>Specify a directory for saving the combined Broadcast Ephemeris corrections in a plain ASCII format on disk.</p><p>The length of the Broadcast Ephemeris corrections files is defined through option 'Interval' under the 'Broadcast Corrections' tab.</p>"));
     558  _cmbSP3PathLineEdit->setWhatsThis(tr("<p>Specify a directory for saving the combined Broadcast Ephemeris corrections in SP3 format on disk.</p><p>Note that this normally requires to also specify the full path to an 'ANTEX File' under the 'PPP (2)' tab.</p>"));
    554559
    555560  // Canvas with Editable Fields
     
    679684  _corrTimeSpinBox->setMaximumWidth(9*ww);
    680685
    681   cLayout->addWidget(new QLabel("Directory"),                     0, 0);
     686  cLayout->addWidget(new QLabel("Directory, ASCII"),              0, 0);
    682687  cLayout->addWidget(_corrPathLineEdit,                           0, 1,1,20);
    683688  cLayout->addWidget(new QLabel("Interval"),                      1, 0);
     
    886891  cmbLayout->setColumnStretch(2,1);
    887892
    888   cmbLayout->addWidget(addCmbRowButton,0,3);
     893  cmbLayout->addWidget(addCmbRowButton,1,3);
    889894  connect(addCmbRowButton, SIGNAL(clicked()), this, SLOT(slotAddCmbRow()));
    890 
    891   cmbLayout->addWidget(delCmbRowButton,1,3);
     895  cmbLayout->addWidget(delCmbRowButton,2,3);
    892896  connect(delCmbRowButton, SIGNAL(clicked()), this, SLOT(slotDelCmbRow()));
    893897
     
    906910  _cmbPasswordLineEdit->setMaximumWidth(9*ww);
    907911  cmbLayout->addWidget(_cmbPasswordLineEdit, 1, 7);
    908   cmbLayout->addWidget(new QLabel("    Directory, output"), 2, 4);
     912  cmbLayout->addWidget(new QLabel("    Directory, ASCII"), 2, 4);
    909913  cmbLayout->addWidget(_cmbOutPathLineEdit, 2, 5, 1, 3);
    910914  cmbLayout->addWidget(new QLabel("    Directory, SP3"), 3, 4);
    911915  cmbLayout->addWidget(_cmbSP3PathLineEdit, 3, 5, 1, 3);
    912   cmbLayout->addWidget(new QLabel("   Combine Broadcast Ephemeris correction streams."),5,3,1,5);
     916  cmbLayout->addWidget(new QLabel(" Combine Broadcast Ephemeris corrections streams."),5,3,1,5);
    913917
    914918  cmbgroup->setLayout(cmbLayout);
     
    13701374  }
    13711375
     1376  QDir cmbOutDir(settings.value("cmbOutPath").toString());
     1377  if (!cmbOutDir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find directory for combination results in ASCII format", true);
     1378
     1379  QDir cmbSP3dir(settings.value("cmbSP3Path").toString());
     1380  if (!cmbSP3dir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find directory for combination results in SP3 format", true);
     1381
    13721382  _caster->slotReadMountPoints();
    13731383}
     
    16921702    }
    16931703    else {
    1694       _corrIntrComboBox->setStyleSheet("background-color: lightGray");
    1695       _corrIntrComboBox->setEnabled(false);
     1704      _corrIntrComboBox->setStyleSheet("background-color: white");
     1705      _corrIntrComboBox->setEnabled(true);
    16961706    }
    16971707  }
     
    19331943      _pppAverageLineEdit->setPalette(palette_gray);
    19341944      _pppQuickStartLineEdit->setPalette(palette_gray);
    1935       _pppAntexLineEdit->setPalette(palette_gray);
     1945      _pppAntexLineEdit->setPalette(palette_white);
    19361946      _pppAntennaLineEdit->setPalette(palette_gray);
    19371947      _pppApplySatAntCheckBox->setPalette(palette_gray);
     
    19561966      _pppAverageLineEdit->setEnabled(false);
    19571967      _pppQuickStartLineEdit->setEnabled(false);
    1958       _pppAntexLineEdit->setEnabled(false);
     1968      _pppAntexLineEdit->setEnabled(true);
    19591969      _pppAntennaLineEdit->setEnabled(false);
    19601970      _pppApplySatAntCheckBox->setEnabled(false);
     
    19771987    }
    19781988  }
     1989
     1990  // Combination
     1991  // ----------
     1992  if (sender() == 0
     1993     || sender() == _cmbTable
     1994     || sender() == _cmbMountpointLineEdit) {
     1995    if (_cmbTable->rowCount() > 0) {
     1996      _cmbMountpointLineEdit->setPalette(palette_white);
     1997      _cmbOutPathLineEdit->setPalette(palette_white);
     1998      _cmbMountpointLineEdit->setEnabled(true);
     1999      _cmbOutPathLineEdit->setEnabled(true);
     2000      if (!_cmbMountpointLineEdit->text().isEmpty()) {
     2001        _cmbOutHostLineEdit->setPalette(palette_white);
     2002        _cmbOutPortLineEdit->setPalette(palette_white);
     2003        _cmbPasswordLineEdit->setPalette(palette_white);
     2004        _cmbSP3PathLineEdit->setPalette(palette_white);
     2005        _cmbOutHostLineEdit->setEnabled(true);
     2006        _cmbOutPortLineEdit->setEnabled(true);
     2007        _cmbPasswordLineEdit->setEnabled(true);
     2008        _cmbSP3PathLineEdit->setEnabled(true);
     2009      } else {
     2010      _cmbOutHostLineEdit->setPalette(palette_gray);
     2011      _cmbOutPortLineEdit->setPalette(palette_gray);
     2012      _cmbPasswordLineEdit->setPalette(palette_gray);
     2013      _cmbSP3PathLineEdit->setPalette(palette_gray);
     2014      _cmbOutHostLineEdit->setEnabled(false);
     2015      _cmbOutPortLineEdit->setEnabled(false);
     2016      _cmbPasswordLineEdit->setEnabled(false);
     2017      _cmbSP3PathLineEdit->setEnabled(false);
     2018      }
     2019    } else {
     2020      _cmbMountpointLineEdit->setPalette(palette_gray);
     2021      _cmbOutHostLineEdit->setPalette(palette_gray);
     2022      _cmbOutPortLineEdit->setPalette(palette_gray);
     2023      _cmbPasswordLineEdit->setPalette(palette_gray);
     2024      _cmbOutPathLineEdit->setPalette(palette_gray);
     2025      _cmbSP3PathLineEdit->setPalette(palette_gray);
     2026      _cmbMountpointLineEdit->setEnabled(false);
     2027      _cmbOutHostLineEdit->setEnabled(false);
     2028      _cmbOutPortLineEdit->setEnabled(false);
     2029      _cmbPasswordLineEdit->setEnabled(false);
     2030      _cmbOutPathLineEdit->setEnabled(false);
     2031      _cmbSP3PathLineEdit->setEnabled(false);
     2032    }
     2033  }
    19792034}
    19802035
Note: See TracChangeset for help on using the changeset viewer.