Changeset 7292 in ntrip


Ignore:
Timestamp:
Sep 21, 2015, 3:35:30 PM (7 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r7225 r7292  
    3535 * Created:    24-Dec-2005
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    4242
    4343#include <unistd.h>
    44 #include "bncwindow.h" 
    45 #include "bnccore.h" 
    46 #include "bncgetthread.h" 
    47 #include "bnctabledlg.h" 
    48 #include "bncipport.h" 
    49 #include "bncudpport.h" 
    50 #include "bncserialport.h" 
    51 #include "bnchlpdlg.h" 
    52 #include "bnchtml.h" 
     44#include "bncwindow.h"
     45#include "bnccore.h"
     46#include "bncgetthread.h"
     47#include "bnctabledlg.h"
     48#include "bncipport.h"
     49#include "bncudpport.h"
     50#include "bncserialport.h"
     51#include "bnchlpdlg.h"
     52#include "bnchtml.h"
    5353#include "bnctableitem.h"
    5454#include "bncsettings.h"
     
    111111
    112112  int ww = QFontMetrics(this->font()).width('w');
    113  
     113
    114114  static const QStringList labels = QString("account, Streams:   resource loader / mountpoint, decoder, country, lat, long, nmea, ntrip, bytes").split(",");
    115115
     
    118118  setWindowTitle(tr("BKG Ntrip Client (BNC) Version " BNCVERSION));
    119119
    120   connect(BNC_CORE, SIGNAL(newMessage(QByteArray,bool)), 
     120  connect(BNC_CORE, SIGNAL(newMessage(QByteArray,bool)),
    121121          this, SLOT(slotWindowMessage(QByteArray,bool)));
    122122
     
    170170  _proxyPortLineEdit  = new QLineEdit(settings.value("proxyPort").toString());
    171171
    172   connect(_proxyHostLineEdit, SIGNAL(textChanged(const QString &)), 
     172  connect(_proxyHostLineEdit, SIGNAL(textChanged(const QString &)),
    173173          this, SLOT(slotBncTextChanged()));
    174174
     
    227227  _rnxV2Priority = new QLineEdit(hlp);
    228228
    229   connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), 
     229  connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)),
    230230          this, SLOT(slotBncTextChanged()));
    231231  connect(_rnxV3CheckBox, SIGNAL(stateChanged(int)),
     
    419419  _mountPointsTable->hideColumn(0);
    420420  _mountPointsTable->hideColumn(3);
    421   connect(_mountPointsTable, SIGNAL(itemSelectionChanged()), 
     421  connect(_mountPointsTable, SIGNAL(itemSelectionChanged()),
    422422          SLOT(slotSelectionChanged()));
    423423  populateMountPointsTable();
     
    436436  _cmbTable->setSelectionBehavior(QAbstractItemView::SelectRows);
    437437  _cmbTable->setMaximumWidth(30*ww);
    438   _cmbTable->horizontalHeader()->resizeSection(0,10*ww); 
    439   _cmbTable->horizontalHeader()->resizeSection(1,8*ww); 
    440   _cmbTable->horizontalHeader()->resizeSection(2,8*ww); 
     438  _cmbTable->horizontalHeader()->resizeSection(0,10*ww);
     439  _cmbTable->horizontalHeader()->resizeSection(1,8*ww);
     440  _cmbTable->horizontalHeader()->resizeSection(2,8*ww);
    441441  _cmbTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
    442442  _cmbTable->horizontalHeader()->setStretchLastSection(true);
    443443  _cmbTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    444  
     444
    445445  _cmbMaxresLineEdit = new QLineEdit(settings.value("cmbMaxres").toString());
    446446  _cmbUseGlonass     = new QCheckBox();
     
    459459
    460460  connect(_cmbTable, SIGNAL(itemSelectionChanged()),
    461           SLOT(slotBncTextChanged())); 
     461          SLOT(slotBncTextChanged()));
    462462
    463463  _cmbMethodComboBox = new QComboBox();
     
    475475    enableWidget(true, _cmbSamplSpinBox);
    476476    enableWidget(true, _cmbUseGlonass);
    477   } 
     477  }
    478478  else {
    479479    enableWidget(false, _cmbMethodComboBox);
     
    489489  _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection);
    490490  _uploadTable->setSelectionBehavior(QAbstractItemView::SelectRows);
    491   _uploadTable->horizontalHeader()->resizeSection( 0,13*ww); 
    492   _uploadTable->horizontalHeader()->resizeSection( 1, 5*ww); 
    493   _uploadTable->horizontalHeader()->resizeSection( 2, 6*ww); 
    494   _uploadTable->horizontalHeader()->resizeSection( 3, 8*ww); 
    495   _uploadTable->horizontalHeader()->resizeSection( 4,11*ww); 
    496   _uploadTable->horizontalHeader()->resizeSection( 5, 4*ww); 
    497   _uploadTable->horizontalHeader()->resizeSection( 6,15*ww); 
    498   _uploadTable->horizontalHeader()->resizeSection( 7,15*ww); 
    499   _uploadTable->horizontalHeader()->resizeSection( 8, 4*ww); 
    500   _uploadTable->horizontalHeader()->resizeSection( 9, 4*ww); 
    501   _uploadTable->horizontalHeader()->resizeSection(10, 4*ww); 
    502   _uploadTable->horizontalHeader()->resizeSection(11,12*ww); 
     491  _uploadTable->horizontalHeader()->resizeSection( 0,13*ww);
     492  _uploadTable->horizontalHeader()->resizeSection( 1, 5*ww);
     493  _uploadTable->horizontalHeader()->resizeSection( 2, 6*ww);
     494  _uploadTable->horizontalHeader()->resizeSection( 3, 8*ww);
     495  _uploadTable->horizontalHeader()->resizeSection( 4,11*ww);
     496  _uploadTable->horizontalHeader()->resizeSection( 5, 4*ww);
     497  _uploadTable->horizontalHeader()->resizeSection( 6,15*ww);
     498  _uploadTable->horizontalHeader()->resizeSection( 7,15*ww);
     499  _uploadTable->horizontalHeader()->resizeSection( 8, 4*ww);
     500  _uploadTable->horizontalHeader()->resizeSection( 9, 4*ww);
     501  _uploadTable->horizontalHeader()->resizeSection(10, 4*ww);
     502  _uploadTable->horizontalHeader()->resizeSection(11,12*ww);
    503503  _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
    504504  _uploadTable->horizontalHeader()->setStretchLastSection(true);
    505505  _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    506506
    507   connect(_uploadTable, SIGNAL(itemSelectionChanged()), 
     507  connect(_uploadTable, SIGNAL(itemSelectionChanged()),
    508508          SLOT(slotBncTextChanged()));
    509509
     
    553553    enableWidget(true, _uploadSamplClkRnxSpinBox);
    554554    enableWidget(true, _uploadAntexFile);
    555   } 
     555  }
    556556  else {
    557557    enableWidget(false, _uploadIntrComboBox);
     
    684684  _rnxSamplSpinBox->setMaximumWidth(9*ww);
    685685
    686   _rnxV2Priority->setMaximumWidth(9*ww);
     686  _rnxV2Priority->setMaximumWidth(19*ww);
    687687
    688688  oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50);
     
    869869  int ir = 0;
    870870  pppLayout1->addWidget(new QLabel("Precise Point Positioning - Input and Output."), ir, 0, 1, 7, Qt::AlignLeft);
    871   ++ir;     
     871  ++ir;
    872872  pppLayout1->addWidget(new QLabel("Data source"),           ir, 0);
    873873  pppLayout1->addWidget(_pppWidgets._dataSource,             ir, 1);
     
    945945  _pppWidgets._lcGPS->setWhatsThis(tr("<p>Specify which kind of GPS observations you want to use and on which kind of ionosphere-free linear combination of GPS observations you want to base ambiguity resolutions.</p><p><ul><li>Specifying 'P3' means that you request BNC to use code data and the so-called P3 ionosphere-free linear combination of code observations.</li><li>'L3' means that you request BNC to use phase data and the so-called L3 ionosphere-free linear combination of phase observations.</li> <li>'P3&L3' means that you request BNC to use both, code and phase data and the so-called P3 and L3 ionosphere-free linear combination of code and phase observations.</li></ul></p><p>Note that most geodetic receivers support the observation of GPS code and phase data. Hence specifying 'P3&L3' would be a good choice when processing data from such a receiver.</p><p>Specifying 'no' means that you don't want BNC to use GPS data.</p>"));
    946946
    947   _pppWidgets._lcGLONASS->setWhatsThis(tr("<p>Specify which kind of GLONASS observations you want to use and on which kind of ionosphere-free linear combination of GLONASS observations you want to base ambiguity resolutions.</p><p><ul><li>Specifying 'P3' means that you request BNC to use code data and the so-called P3 ionosphere-free linear combination of code observations.</li><li>'L3' means that you request BNC to use phase data and the so-called L3 ionosphere-free linear combination of phase observations.</li> <li>'P3&L3' means that you request BNC to use both, code and phase data and the so-called P3 and L3 ionosphere-free linear combination of code and phase observations.</li></ul></p><p>Specifying 'no' means that you don't want BNC to use GLONASS data.</p>")); 
     947  _pppWidgets._lcGLONASS->setWhatsThis(tr("<p>Specify which kind of GLONASS observations you want to use and on which kind of ionosphere-free linear combination of GLONASS observations you want to base ambiguity resolutions.</p><p><ul><li>Specifying 'P3' means that you request BNC to use code data and the so-called P3 ionosphere-free linear combination of code observations.</li><li>'L3' means that you request BNC to use phase data and the so-called L3 ionosphere-free linear combination of phase observations.</li> <li>'P3&L3' means that you request BNC to use both, code and phase data and the so-called P3 and L3 ionosphere-free linear combination of code and phase observations.</li></ul></p><p>Specifying 'no' means that you don't want BNC to use GLONASS data.</p>"));
    948948
    949949  _pppWidgets._lcGalileo->setWhatsThis(tr("<p>Specify which kind of Galileo observations you want to use and on which kind of of ionosphere-free linear combination of Galileo observations you want to base ambiguity resolutions.</p><p><ul><li>Specifying 'P3' means that you request BNC to use code data and the so-called P3 ionosphere-free linear combination of code observations.</li><li>'L3' means that you request BNC to use phase data and the so-called L3 ionosphere-free linear combination of phase observations.</li> <li>'P3&L3' means that you request BNC to use both, code and phase data and the so-called P3 and L3 ionosphere-free linear combination of code and phase observations.</li></ul></p><p>Specifying on of these options makes only sense if Galileo data are part ot the processed observation stream.</p><p>Specifying 'no' means that you don't want BNC to use Galileo data.</p>"));
     
    958958  pppLayout2sub->addWidget(_pppWidgets._delStaButton);
    959959  pppLayout2sub->addStretch(99);
    960  
     960
    961961  pppLayout2->addLayout(pppLayout2sub);
    962962
     
    966966  ir = 0;
    967967  pppLayout3->addWidget(new QLabel("Precise Point Positioning - Options.<br>"), ir, 0, 1, 2, Qt::AlignLeft);
    968   ++ir;     
     968  ++ir;
    969969  pppLayout3->addWidget(new QLabel("GPS LCs"),              ir, 0, Qt::AlignLeft);
    970970  pppLayout3->addWidget(_pppWidgets._lcGPS,                 ir, 1);
     
    10851085  _reqcSkyPlotSignals = new QLineEdit(settings.value("reqcSkyPlotSignals").toString());
    10861086  _reqcSkyPlotSignals->setWhatsThis(tr("<p>BNC can produce plots for multipath, signal-to-noise ratio, satellite availability, satellite elevation, and PDOP values. The 'Plots for signals' option lets you exactly specify the observation signals to be used for that and also enables the plot production. You can specify the navigation system, the frequency, and the tracking mode or channel as defined in RINEX Version 3. Specifications for fequency and tracking mode or channel must be seperated by ampersand character '&'. Specifications for each navigation systems must be seperated by blank character ' '.</p><p>Examples for 'Plots for signals' option:<ul><li> G:1&2 R:1&2 J:1&2 E:1&7 C:1&6 S:1<br>(Plots will be based on GPS observations on 1st and 2nd frequency, GLONASS observations on 1st and 2nd frequency, QZSS observations on 1st and 2nd frequency, Galileo observations on 1st and 7th frequency, BeiDou observations on 1st and 6th frequency, SBAS observations on 1st frequency.)</li><li>G:1C&5X<br>(Plots will be based on GPS observations on 1st frequency in C tracking mode and GPS observations on 5th frequency in X tracking mode.)</li><li>C:6I&7I<br>(Plots will be based on BeiDou observations on 6th frequency in I tracking mode and BeiDou observations on 7th frequency in I tracking mode.)<li></ul></p><p>Default is 'C:2&7 E:1&5 G:1&2 J:1&2 R:1&2 S:1&5'. Specifying an empty option string would be overruled by this default.</p>"));
    1087  
    1088   connect(_reqcSkyPlotSignals, SIGNAL(textChanged(const QString &)), 
     1087
     1088  connect(_reqcSkyPlotSignals, SIGNAL(textChanged(const QString &)),
    10891089          this, SLOT(slotBncTextChanged()));
    10901090
     
    11411141  reqcgroup->setLayout(reqcLayout);
    11421142
    1143   connect(_reqcEditOptionButton, SIGNAL(clicked()), 
     1143  connect(_reqcEditOptionButton, SIGNAL(clicked()),
    11441144          this, SLOT(slotReqcEditOption()));
    11451145
     
    12621262  uploadLayoutEph->addWidget(_uploadEphSampleSpinBox,             3, 1);
    12631263  uploadLayoutEph->addWidget(new QLabel("Uploaded"),              4, 0);
    1264   uploadLayoutEph->addWidget(_uploadEphBytesCounter,              4, 1); 
     1264  uploadLayoutEph->addWidget(_uploadEphBytesCounter,              4, 1);
    12651265  uploadLayoutEph->setRowStretch(5, 999);
    12661266
     
    12931293  _outEphPortLineEdit->setWhatsThis(tr("BNC can produce ephemeris data in RINEX ASCII format on your local host through an IP port. Specify a port number here to activate this function."));
    12941294  _corrPortLineEdit->setWhatsThis(tr("BNC can produce Broadcast Ephemeris Corrections on your local host through an IP port. Specify a port number here to activate this function."));
    1295   _rnxPathLineEdit->setWhatsThis(tr("Here you specify the path to where the RINEX Observation files will be stored. If the specified directory does not exist, BNC will not create RINEX Observation files.")); 
     1295  _rnxPathLineEdit->setWhatsThis(tr("Here you specify the path to where the RINEX Observation files will be stored. If the specified directory does not exist, BNC will not create RINEX Observation files."));
    12961296  _ephPathLineEdit->setWhatsThis(tr("Specify the path for saving Broadcast Ephemeris data as RINEX Navigation files. If the specified directory does not exist, BNC will not create RINEX Navigation files."));
    12971297  _corrPathLineEdit->setWhatsThis(tr("Specify a directory for saving Broadcast Ephemeris Correction files. If the specified directory does not exist, BNC will not create the files."));
     
    13571357  _uploadSamplClkRnxSpinBox->setWhatsThis(tr("Select the Clock RINEX file sampling interval in seconds. A value of zero '0' tells BNC to store all available samples into Clock RINEX files."));
    13581358  _uploadSamplSp3SpinBox->setWhatsThis(tr("Select the SP3 orbit file sampling interval in minutes. A value of zero '0' tells BNC to store all available samples into SP3 orbit files."));
    1359   setUploadTrafoButton->setWhatsThis(tr("Hit 'Custom Trafo' to specify your own 14 parameter Helmert Transformation instead of selecting a predefined transformation through 'System' button.")); 
    1360   _uploadAntexFile->setWhatsThis(tr("<p>When producing SP3 files or referring orbit and clock corrections to the satellite's Center of Mass (CoM) instead of Antenna Phase Center (APC), an offset has to be applied which is available from the IGS 'ANTEX file'. You must therefore specify the 'ANTEX file' path if you want to save the stream contents in SP3 format and/or refer correctors to CoM.</p><p>If you don't specify an 'ANTEX file' path, the SP3 file contents as well as the orbit and clock correctors will be referred to satellite APCs.</p>")); 
     1359  setUploadTrafoButton->setWhatsThis(tr("Hit 'Custom Trafo' to specify your own 14 parameter Helmert Transformation instead of selecting a predefined transformation through 'System' button."));
     1360  _uploadAntexFile->setWhatsThis(tr("<p>When producing SP3 files or referring orbit and clock corrections to the satellite's Center of Mass (CoM) instead of Antenna Phase Center (APC), an offset has to be applied which is available from the IGS 'ANTEX file'. You must therefore specify the 'ANTEX file' path if you want to save the stream contents in SP3 format and/or refer correctors to CoM.</p><p>If you don't specify an 'ANTEX file' path, the SP3 file contents as well as the orbit and clock correctors will be referred to satellite APCs.</p>"));
    13611361  _uploadEphHostLineEdit->setWhatsThis(tr("BNC can upload a Broadcast Ephemeris stream in RTCM Version 3 format. Specify the host IP of an Ntrip Broadcaster to upload the stream. An empty option field means that you don't want to upload Broadcast Ephemeris."));
    13621362  _uploadEphPortLineEdit->setWhatsThis(tr("Specify the IP port of an Ntrip Broadcaster to upload the stream. Default is port 80."));
     
    13671367  _actDeleteMountPoints->setWhatsThis(tr("<p>Delete stream(s) from selection presented in the 'Streams' canvas.</p>"));
    13681368  _actAddMountPoints->setWhatsThis(tr("<p>Add stream(s) to selection presented in the 'Streams' canvas.</p>"));
    1369   _actMapMountPoints->setWhatsThis(tr("<p> Draw distribution map of stream selection presented in the 'Streams' canvas. Use the mouse to zoom in or out.</p><p>Left button: Draw rectangle to zoom in.<br>Right button: Zoom out.<br>Middle button: Zoom back.</p>")); 
     1369  _actMapMountPoints->setWhatsThis(tr("<p> Draw distribution map of stream selection presented in the 'Streams' canvas. Use the mouse to zoom in or out.</p><p>Left button: Draw rectangle to zoom in.<br>Right button: Zoom out.<br>Middle button: Zoom back.</p>"));
    13701370  _actStart->setWhatsThis(tr("<p> Start running BNC.</p>"));
    13711371  _actStop->setWhatsThis(tr("<p> Stop running BNC.</p>"));
     
    13901390}
    13911391
    1392 // 
     1392//
    13931393////////////////////////////////////////////////////////////////////////////
    13941394void bncWindow::populateMountPointsTable() {
     
    14801480      proxyPort != _proxyPortLineEdit->text().toInt()) {
    14811481    int iRet = QMessageBox::question(this, "Question", "Proxy options "
    1482                                      "changed. Use the new ones?", 
     1482                                     "changed. Use the new ones?",
    14831483                                     QMessageBox::Yes, QMessageBox::No,
    14841484                                     QMessageBox::NoButton);
     
    16481648
    16491649    if (_mountPointsTable->item(iRow, 6)->text() != "S") {
    1650       QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() + 
     1650      QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
    16511651                "@"  + _mountPointsTable->item(iRow, 1)->text() );
    16521652
    1653       mountPoints.append(url.toString() + " " + 
     1653      mountPoints.append(url.toString() + " " +
    16541654                         _mountPointsTable->item(iRow, 2)->text()
    16551655                 + " " + _mountPointsTable->item(iRow, 3)->text()
     
    16591659                 + " " + _mountPointsTable->item(iRow, 7)->text());
    16601660    } else {
    1661       mountPoints.append( 
     1661      mountPoints.append(
    16621662                  "//" + _mountPointsTable->item(iRow, 1)->text()
    16631663                 + " " + _mountPointsTable->item(iRow, 2)->text()
     
    16871687    QString hlp;
    16881688    for (int iCol = 0; iCol < _uploadTable->columnCount(); iCol++) {
    1689       if (_uploadTable->cellWidget(iRow, iCol) && 
     1689      if (_uploadTable->cellWidget(iRow, iCol) &&
    16901690          (iCol == 3 || iCol == 4 || iCol == 5)) {
    16911691        if      (iCol == 3) {
     
    17171717  settings.setValue("statusTab",   _loggroup->currentIndex());
    17181718  settings.setValue("mountPoints", mountPoints);
    1719 // Network 
     1719// Network
    17201720  settings.setValue("proxyHost",   _proxyHostLineEdit->text());
    17211721  settings.setValue("proxyPort",   _proxyPortLineEdit->text());
     
    17751775  settings.setValue("adviseReco",  _adviseRecoSpinBox->value());
    17761776  settings.setValue("adviseScript",_adviseScriptLineEdit->text());
    1777 // Miscellaneous 
     1777// Miscellaneous
    17781778  settings.setValue("miscMount",   _miscMountLineEdit->text());
    17791779  settings.setValue("miscPort",    _miscPortLineEdit->text());
     
    18981898  BNC_CORE->initCombination();
    18991899
    1900   connect(_caster, SIGNAL(getThreadsFinished()), 
     1900  connect(_caster, SIGNAL(getThreadsFinished()),
    19011901          this, SLOT(slotGetThreadsFinished()));
    19021902
    1903   connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)), 
     1903  connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)),
    19041904           this, SLOT(slotMountPointsRead(QList<bncGetThread*>)));
    19051905
     
    19261926  if (_pppWidgets._dataSource->currentText() == "Real-Time Streams")
    19271927      BNC_CORE->slotMessage("Panel 'PPP' active", true);
    1928   if (_cmbTable->rowCount() > 0) 
     1928  if (_cmbTable->rowCount() > 0)
    19291929      BNC_CORE->slotMessage("Panel 'Combine Corrections' active", true);
    1930   if (_uploadTable->rowCount() > 0) 
     1930  if (_uploadTable->rowCount() > 0)
    19311931      BNC_CORE->slotMessage("Panel 'Upload Corrections' active", true);
    19321932  if (!_uploadEphHostLineEdit->text().isEmpty())
     
    19571957
    19581958  _casterEph = new bncEphUploadCaster();
    1959   connect(_casterEph, SIGNAL(newBytes(QByteArray,double)), 
     1959  connect(_casterEph, SIGNAL(newBytes(QByteArray,double)),
    19601960          _uploadEphBytesCounter, SLOT(slotNewBytes(QByteArray,double)));
    19611961}
     
    19641964////////////////////////////////////////////////////////////////////////////
    19651965void bncWindow::slotStop() {
    1966   int iRet = QMessageBox::question(this, "Stop", "Stop retrieving/processing data?", 
     1966  int iRet = QMessageBox::question(this, "Stop", "Stop retrieving/processing data?",
    19671967                                   QMessageBox::Yes, QMessageBox::No,
    19681968                                   QMessageBox::NoButton);
     
    19821982void bncWindow::closeEvent(QCloseEvent* event) {
    19831983
    1984   int iRet = QMessageBox::question(this, "Close", "Save Options?", 
     1984  int iRet = QMessageBox::question(this, "Close", "Save Options?",
    19851985                                   QMessageBox::Yes, QMessageBox::No,
    19861986                                   QMessageBox::Cancel);
     
    20102010}
    20112011
    2012 // Display Program Messages 
     2012// Display Program Messages
    20132013////////////////////////////////////////////////////////////////////////////
    20142014void bncWindow::slotWindowMessage(const QByteArray msg, bool showOnScreen) {
     
    20162016    _log->append(QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg);
    20172017  }
    2018 } 
     2018}
    20192019
    20202020// About Message
     
    20332033////////////////////////////////////////////////////////////////////////////
    20342034void bncWindow::slotHelp() {
    2035   QUrl url; 
     2035  QUrl url;
    20362036  url.setPath(":bnchelp.html");
    20372037  new bncHlpDlg(0, url);
     
    20422042void bncWindow::slotFontSel() {
    20432043  bool ok;
    2044   QFont newFont = QFontDialog::getFont(&ok, this->font(), this); 
     2044  QFont newFont = QFontDialog::getFont(&ok, this->font(), this);
    20452045  if (ok) {
    20462046    bncSettings settings;
     
    20582058}
    20592059
    2060 // 
     2060//
    20612061////////////////////////////////////////////////////////////////////////////
    20622062void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) {
     
    20742074    bncGetThread* thread = iTh.next();
    20752075    for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
    2076       QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() + 
     2076      QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
    20772077                "@"  + _mountPointsTable->item(iRow, 1)->text() );
    20782078      if (url                                      == thread->mountPoint() &&
     
    20942094}
    20952095
    2096 // 
     2096//
    20972097////////////////////////////////////////////////////////////////////////////
    20982098void bncWindow::CreateMenu() {
     
    21162116void bncWindow::AddToolbar() {
    21172117  QToolBar* toolBar = new QToolBar;
    2118   addToolBar(Qt::BottomToolBarArea, toolBar); 
     2118  addToolBar(Qt::BottomToolBarArea, toolBar);
    21192119  toolBar->setMovable(false);
    21202120  toolBar->addAction(_actAddMountPoints);
     
    21252125  toolBar->addWidget(new QLabel("                                           "));
    21262126  toolBar->addAction(_actwhatsthis);
    2127 } 
     2127}
    21282128
    21292129// About
    21302130////////////////////////////////////////////////////////////////////////////
    2131 bncAboutDlg::bncAboutDlg(QWidget* parent) : 
     2131bncAboutDlg::bncAboutDlg(QWidget* parent) :
    21322132   QDialog(parent) {
    21332133
     
    21482148  dlgLayout->addWidget(new QLabel("BKG Ntrip Client (BNC) Version "BNCVERSION), 0,1);
    21492149  dlgLayout->addWidget(tb,1,0,1,2);
    2150   dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight); 
     2150  dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight);
    21512151
    21522152  setLayout(dlgLayout);
     
    21562156}
    21572157
    2158 // 
     2158//
    21592159////////////////////////////////////////////////////////////////////////////
    21602160bncAboutDlg::~bncAboutDlg() {
    2161 }; 
    2162 
    2163 // Flowchart 
     2161};
     2162
     2163// Flowchart
    21642164////////////////////////////////////////////////////////////////////////////
    21652165bncFlowchartDlg::bncFlowchartDlg(QWidget* parent) :
     
    21822182}
    21832183
    2184 // 
     2184//
    21852185////////////////////////////////////////////////////////////////////////////
    21862186bncFlowchartDlg::~bncFlowchartDlg() {
     
    22042204
    22052205//  Bnc Text
    2206 //////////////////////////////////////////////////////////////////////////// 
     2206////////////////////////////////////////////////////////////////////////////
    22072207void bncWindow::slotBncTextChanged(){
    22082208
     
    22642264  if (sender() == 0 || sender() == _corrPathLineEdit || sender() == _corrPortLineEdit) {
    22652265    enable = !_corrPathLineEdit->text().isEmpty() || !_corrPortLineEdit->text().isEmpty();
    2266     enableWidget(enable, _corrIntrComboBox); 
     2266    enableWidget(enable, _corrIntrComboBox);
    22672267  }
    22682268
     
    22772277  // Serial Output
    22782278  // -------------
    2279   if (sender() == 0 || sender() == _serialMountPointLineEdit || 
     2279  if (sender() == 0 || sender() == _serialMountPointLineEdit ||
    22802280      sender() == _serialAutoNMEAComboBox) {
    22812281    enable = !_serialMountPointLineEdit->text().isEmpty();
     
    23312331      enableWidget(true, _cmbSamplSpinBox);
    23322332      enableWidget(true, _cmbUseGlonass);
    2333     } 
     2333    }
    23342334    else {
    23352335      enableWidget(false, _cmbMethodComboBox);
     
    23492349    enableWidget(true, _uploadSamplSp3SpinBox);
    23502350    enableWidget(true, _uploadAntexFile);
    2351   } 
     2351  }
    23522352  else {
    23532353    enableWidget(false, _uploadIntrComboBox);
     
    23872387}
    23882388
    2389 // 
     2389//
    23902390////////////////////////////////////////////////////////////////////////////
    23912391void bncWindow::slotAddCmbRow() {
     
    23972397}
    23982398
    2399 // 
     2399//
    24002400////////////////////////////////////////////////////////////////////////////
    24012401void bncWindow::slotDelCmbRow() {
     
    24282428}
    24292429
    2430 // 
     2430//
    24312431////////////////////////////////////////////////////////////////////////////
    24322432void bncWindow::populateCmbTable() {
     
    24522452}
    24532453
    2454 // 
     2454//
    24552455////////////////////////////////////////////////////////////////////////////
    24562456void bncWindow::slotAddUploadRow() {
     
    24872487}
    24882488
    2489 // 
     2489//
    24902490////////////////////////////////////////////////////////////////////////////
    24912491void bncWindow::slotDelUploadRow() {
     
    25072507  }
    25082508  for (int iRow = 0; iRow < _uploadTable->rowCount(); iRow++) {
    2509     BNC_CORE->_uploadTableItems[iRow] = 
     2509    BNC_CORE->_uploadTableItems[iRow] =
    25102510                                (bncTableItem*) _uploadTable->item(iRow, 11);
    25112511  }
     
    25202520}
    25212521
    2522 // 
     2522//
    25232523////////////////////////////////////////////////////////////////////////////
    25242524void bncWindow::populateUploadTable() {
     
    25732573}
    25742574
    2575 // 
     2575//
    25762576////////////////////////////////////////////////////////////////////////////
    25772577void bncWindow::slotSetUploadTrafo() {
Note: See TracChangeset for help on using the changeset viewer.