Changeset 3199 in ntrip


Ignore:
Timestamp:
Mar 30, 2011, 3:44:48 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsettings.cpp

    r3194 r3199  
    105105    setValue("nmeaPort",         "");
    106106    setValue("combineStreams",   "");
    107     setValue("cmbOutHost",       "");
    108     setValue("cmbOutPort",       "");
    109     setValue("cmbMountpoint",    "");
    110     setValue("cmbPassword",      "");
    111     setValue("cmbOutPath",       "");
    112     setValue("cmbSP3Path",       "");
    113107    setValue("uploadMountpointsOut",   "");
    114108    sync();
  • trunk/BNC/bncwindow.cpp

    r3198 r3199  
    459459  QPushButton* addCmbRowButton = new QPushButton("Add Row");
    460460  QPushButton* delCmbRowButton = new QPushButton("Delete");
    461   _cmbOutHostLineEdit    = new QLineEdit(settings.value("cmbOutHost").toString());
    462   _cmbOutPortLineEdit    = new QLineEdit(settings.value("cmbOutPort").toString());
    463   _cmbMountpointLineEdit = new QLineEdit(settings.value("cmbMountpoint").toString());
    464   _cmbPasswordLineEdit   = new QLineEdit(settings.value("cmbPassword").toString());
    465   _cmbOutPathLineEdit = new QLineEdit(settings.value("cmbOutPath").toString());
    466   _cmbSP3PathLineEdit = new QLineEdit(settings.value("cmbSP3Path").toString());
    467461
    468462  connect(_cmbTable, SIGNAL(itemSelectionChanged()),
    469463          SLOT(slotBncTextChanged()));
    470   connect(_cmbMountpointLineEdit, SIGNAL(textChanged(const QString &)),
    471           this, SLOT(slotBncTextChanged()));
    472464
    473465  // Upload Results
     
    597589  addCmbRowButton->setWhatsThis(tr("Hit 'Add Row' button to add another line to the mountpoints table."));
    598590  delCmbRowButton->setWhatsThis(tr("Hit 'Delete' button to delete the highlighted line from the mountpoints table."));
    599   _cmbOutHostLineEdit->setWhatsThis(tr("Specify the domain name or IP number of an Ntrip Broadcaster for uploading the combination stream."));
    600   _cmbOutPortLineEdit->setWhatsThis(tr("Enter the listening IP port of the specified Ntrip Broadcaster for uploading the combination stream."));
    601   _cmbMountpointLineEdit->setWhatsThis(tr("<p>Enter a mountpoint for the combination stream. 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 directly using the combination stream without prior upload to the Ntrip Broadcaster."));
    602   _cmbPasswordLineEdit->setWhatsThis(tr("Enter the password for uploading the combination stream to the specified Ntrip Broadcaster."));
    603   _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>"));
    604   _cmbSP3PathLineEdit->setWhatsThis(tr("<p>Specify a directory for saving the combination of Broadcast Ephemeris and Broadcast Ephemeris corrections in SP3 format on disk. The SP3 file output already works with only one corrections stream specified for combination.</p><p>Note that this normally requires to also specify the full path to an 'ANTEX File' under the 'PPP (2)' tab.</p>"));
    605591
    606592  // Canvas with Editable Fields
     
    938924  populateCmbTable();
    939925  cmbLayout->addWidget(_cmbTable,0,0,6,3);
    940   cmbLayout->setColumnStretch(0,1);
    941   cmbLayout->setColumnStretch(1,1);
    942   cmbLayout->setColumnStretch(2,1);
    943926
    944927  cmbLayout->addWidget(addCmbRowButton,1,3);
     
    947930  connect(delCmbRowButton, SIGNAL(clicked()), this, SLOT(slotDelCmbRow()));
    948931
    949   cmbLayout->setColumnStretch(4,1);
    950 
    951   cmbLayout->addWidget(new QLabel("    Host"), 0, 4);
    952   cmbLayout->addWidget(_cmbOutHostLineEdit, 0, 5);
    953   cmbLayout->addWidget(new QLabel("    Port"), 0, 6);
    954   _cmbOutPortLineEdit->setMaximumWidth(9*ww);
    955   cmbLayout->addWidget(_cmbOutPortLineEdit, 0, 7);
    956   cmbLayout->addWidget(new QLabel("    Mountpoint"), 1, 4);
    957   _cmbMountpointLineEdit->setMaximumWidth(9*ww);
    958   cmbLayout->addWidget(_cmbMountpointLineEdit, 1, 5);
    959   cmbLayout->addWidget(new QLabel("    Password"), 1, 6);
    960   _cmbPasswordLineEdit->setEchoMode(QLineEdit::PasswordEchoOnEdit);
    961   _cmbPasswordLineEdit->setMaximumWidth(9*ww);
    962   cmbLayout->addWidget(_cmbPasswordLineEdit, 1, 7);
    963   cmbLayout->addWidget(new QLabel("    Directory, ASCII"), 2, 4);
    964   cmbLayout->addWidget(_cmbOutPathLineEdit, 2, 5, 1, 3);
    965   cmbLayout->addWidget(new QLabel("    Directory, SP3"), 3, 4);
    966   cmbLayout->addWidget(_cmbSP3PathLineEdit, 3, 5, 1, 3);
    967   cmbLayout->addWidget(new QLabel(" Combine Broadcast Ephemeris corrections streams."),5,3,1,5);
     932  cmbLayout->addWidget(new QLabel(" Combine Broadcast Ephemeris corrections streams."),5,3,1,3);
    968933
    969934  cmbgroup->setLayout(cmbLayout);
     
    973938  QGridLayout* uploadHlpLayout = new QGridLayout();
    974939
    975   uploadHlpLayout->addWidget(new QLabel("Upload RTNet results to NTRIP caster"),0,0);
     940  uploadHlpLayout->addWidget(new QLabel("Upload RTNet or Combination Results"),0,0);
    976941
    977942  uploadHlpLayout->addWidget(addUploadRowButton,0,1);
     
    14101375    settings.setValue("combineStreams", "");
    14111376  }
    1412   settings.setValue("cmbOutHost",    _cmbOutHostLineEdit->text());
    1413   settings.setValue("cmbOutPort",    _cmbOutPortLineEdit->text());
    1414   settings.setValue("cmbMountpoint", _cmbMountpointLineEdit->text());
    1415   settings.setValue("cmbPassword",   _cmbPasswordLineEdit->text());
    1416   settings.setValue("cmbOutPath",    _cmbOutPathLineEdit->text());
    1417   settings.setValue("cmbSP3Path",    _cmbSP3PathLineEdit->text());
    14181377
    14191378  if (!uploadMountpointsOut.isEmpty()) {
     
    14951454    if (!anxfile.exists()) ((bncApp*)qApp)->slotMessage("Cannot find IGS ANTEX file", true);
    14961455  }
    1497 
    1498   QDir cmbOutDir(settings.value("cmbOutPath").toString());
    1499   if (!cmbOutDir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find directory for saving combination results in ASCII format", true);
    1500 
    1501   QDir cmbSP3dir(settings.value("cmbSP3Path").toString());
    1502   if (!cmbSP3dir.exists()) ((bncApp*)qApp)->slotMessage("Cannot find directory for saving combination results in SP3 format", true);
    15031456
    15041457  _caster->slotReadMountPoints();
     
    21232076    }
    21242077  }
    2125 
    2126   // Combination
    2127   // ----------
    2128   if (sender() == 0
    2129      || sender() == _cmbTable
    2130      || sender() == _cmbMountpointLineEdit) {
    2131     if (_cmbTable->rowCount() > 0) {
    2132       _cmbMountpointLineEdit->setPalette(palette_white);
    2133       _cmbSP3PathLineEdit->setPalette(palette_white);
    2134       _cmbMountpointLineEdit->setEnabled(true);
    2135       _cmbSP3PathLineEdit->setEnabled(true);
    2136       if (!_cmbMountpointLineEdit->text().isEmpty()) {
    2137         _cmbOutHostLineEdit->setPalette(palette_white);
    2138         _cmbOutPortLineEdit->setPalette(palette_white);
    2139         _cmbPasswordLineEdit->setPalette(palette_white);
    2140         _cmbOutPathLineEdit->setPalette(palette_white);
    2141         _cmbOutHostLineEdit->setEnabled(true);
    2142         _cmbOutPortLineEdit->setEnabled(true);
    2143         _cmbPasswordLineEdit->setEnabled(true);
    2144         _cmbOutPathLineEdit->setEnabled(true);
    2145       } else {
    2146       _cmbOutHostLineEdit->setPalette(palette_gray);
    2147       _cmbOutPortLineEdit->setPalette(palette_gray);
    2148       _cmbPasswordLineEdit->setPalette(palette_gray);
    2149       _cmbOutPathLineEdit->setPalette(palette_gray);
    2150       _cmbOutHostLineEdit->setEnabled(false);
    2151       _cmbOutPortLineEdit->setEnabled(false);
    2152       _cmbPasswordLineEdit->setEnabled(false);
    2153       _cmbOutPathLineEdit->setEnabled(false);
    2154       }
    2155     } else {
    2156       _cmbMountpointLineEdit->setPalette(palette_gray);
    2157       _cmbOutHostLineEdit->setPalette(palette_gray);
    2158       _cmbOutPortLineEdit->setPalette(palette_gray);
    2159       _cmbPasswordLineEdit->setPalette(palette_gray);
    2160       _cmbOutPathLineEdit->setPalette(palette_gray);
    2161       _cmbSP3PathLineEdit->setPalette(palette_gray);
    2162       _cmbMountpointLineEdit->setEnabled(false);
    2163       _cmbOutHostLineEdit->setEnabled(false);
    2164       _cmbOutPortLineEdit->setEnabled(false);
    2165       _cmbPasswordLineEdit->setEnabled(false);
    2166       _cmbOutPathLineEdit->setEnabled(false);
    2167       _cmbSP3PathLineEdit->setEnabled(false);
    2168     }
    2169   }
    21702078}
    21712079
  • trunk/BNC/bncwindow.h

    r3197 r3199  
    196196
    197197    QTableWidget* _cmbTable;
    198     QLineEdit*    _cmbOutHostLineEdit;
    199     QLineEdit*    _cmbOutPortLineEdit;
    200     QLineEdit*    _cmbMountpointLineEdit;
    201     QLineEdit*    _cmbPasswordLineEdit;
    202     QLineEdit*    _cmbOutPathLineEdit;
    203     QLineEdit*    _cmbSP3PathLineEdit;
    204198
    205199    QTableWidget* _uploadTable;
Note: See TracChangeset for help on using the changeset viewer.