- Timestamp:
- Sep 21, 2015, 3:35:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r7225 r7292 35 35 * Created: 24-Dec-2005 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 42 42 43 43 #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" 53 53 #include "bnctableitem.h" 54 54 #include "bncsettings.h" … … 111 111 112 112 int ww = QFontMetrics(this->font()).width('w'); 113 113 114 114 static const QStringList labels = QString("account, Streams: resource loader / mountpoint, decoder, country, lat, long, nmea, ntrip, bytes").split(","); 115 115 … … 118 118 setWindowTitle(tr("BKG Ntrip Client (BNC) Version " BNCVERSION)); 119 119 120 connect(BNC_CORE, SIGNAL(newMessage(QByteArray,bool)), 120 connect(BNC_CORE, SIGNAL(newMessage(QByteArray,bool)), 121 121 this, SLOT(slotWindowMessage(QByteArray,bool))); 122 122 … … 170 170 _proxyPortLineEdit = new QLineEdit(settings.value("proxyPort").toString()); 171 171 172 connect(_proxyHostLineEdit, SIGNAL(textChanged(const QString &)), 172 connect(_proxyHostLineEdit, SIGNAL(textChanged(const QString &)), 173 173 this, SLOT(slotBncTextChanged())); 174 174 … … 227 227 _rnxV2Priority = new QLineEdit(hlp); 228 228 229 connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), 229 connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), 230 230 this, SLOT(slotBncTextChanged())); 231 231 connect(_rnxV3CheckBox, SIGNAL(stateChanged(int)), … … 419 419 _mountPointsTable->hideColumn(0); 420 420 _mountPointsTable->hideColumn(3); 421 connect(_mountPointsTable, SIGNAL(itemSelectionChanged()), 421 connect(_mountPointsTable, SIGNAL(itemSelectionChanged()), 422 422 SLOT(slotSelectionChanged())); 423 423 populateMountPointsTable(); … … 436 436 _cmbTable->setSelectionBehavior(QAbstractItemView::SelectRows); 437 437 _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); 441 441 _cmbTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 442 442 _cmbTable->horizontalHeader()->setStretchLastSection(true); 443 443 _cmbTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); 444 444 445 445 _cmbMaxresLineEdit = new QLineEdit(settings.value("cmbMaxres").toString()); 446 446 _cmbUseGlonass = new QCheckBox(); … … 459 459 460 460 connect(_cmbTable, SIGNAL(itemSelectionChanged()), 461 SLOT(slotBncTextChanged())); 461 SLOT(slotBncTextChanged())); 462 462 463 463 _cmbMethodComboBox = new QComboBox(); … … 475 475 enableWidget(true, _cmbSamplSpinBox); 476 476 enableWidget(true, _cmbUseGlonass); 477 } 477 } 478 478 else { 479 479 enableWidget(false, _cmbMethodComboBox); … … 489 489 _uploadTable->setSelectionMode(QAbstractItemView::ExtendedSelection); 490 490 _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); 503 503 _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 504 504 _uploadTable->horizontalHeader()->setStretchLastSection(true); 505 505 _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); 506 506 507 connect(_uploadTable, SIGNAL(itemSelectionChanged()), 507 connect(_uploadTable, SIGNAL(itemSelectionChanged()), 508 508 SLOT(slotBncTextChanged())); 509 509 … … 553 553 enableWidget(true, _uploadSamplClkRnxSpinBox); 554 554 enableWidget(true, _uploadAntexFile); 555 } 555 } 556 556 else { 557 557 enableWidget(false, _uploadIntrComboBox); … … 684 684 _rnxSamplSpinBox->setMaximumWidth(9*ww); 685 685 686 _rnxV2Priority->setMaximumWidth( 9*ww);686 _rnxV2Priority->setMaximumWidth(19*ww); 687 687 688 688 oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50); … … 869 869 int ir = 0; 870 870 pppLayout1->addWidget(new QLabel("Precise Point Positioning - Input and Output."), ir, 0, 1, 7, Qt::AlignLeft); 871 ++ir; 871 ++ir; 872 872 pppLayout1->addWidget(new QLabel("Data source"), ir, 0); 873 873 pppLayout1->addWidget(_pppWidgets._dataSource, ir, 1); … … 945 945 _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>")); 946 946 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>")); 948 948 949 949 _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>")); … … 958 958 pppLayout2sub->addWidget(_pppWidgets._delStaButton); 959 959 pppLayout2sub->addStretch(99); 960 960 961 961 pppLayout2->addLayout(pppLayout2sub); 962 962 … … 966 966 ir = 0; 967 967 pppLayout3->addWidget(new QLabel("Precise Point Positioning - Options.<br>"), ir, 0, 1, 2, Qt::AlignLeft); 968 ++ir; 968 ++ir; 969 969 pppLayout3->addWidget(new QLabel("GPS LCs"), ir, 0, Qt::AlignLeft); 970 970 pppLayout3->addWidget(_pppWidgets._lcGPS, ir, 1); … … 1085 1085 _reqcSkyPlotSignals = new QLineEdit(settings.value("reqcSkyPlotSignals").toString()); 1086 1086 _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 &)), 1089 1089 this, SLOT(slotBncTextChanged())); 1090 1090 … … 1141 1141 reqcgroup->setLayout(reqcLayout); 1142 1142 1143 connect(_reqcEditOptionButton, SIGNAL(clicked()), 1143 connect(_reqcEditOptionButton, SIGNAL(clicked()), 1144 1144 this, SLOT(slotReqcEditOption())); 1145 1145 … … 1262 1262 uploadLayoutEph->addWidget(_uploadEphSampleSpinBox, 3, 1); 1263 1263 uploadLayoutEph->addWidget(new QLabel("Uploaded"), 4, 0); 1264 uploadLayoutEph->addWidget(_uploadEphBytesCounter, 4, 1); 1264 uploadLayoutEph->addWidget(_uploadEphBytesCounter, 4, 1); 1265 1265 uploadLayoutEph->setRowStretch(5, 999); 1266 1266 … … 1293 1293 _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.")); 1294 1294 _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.")); 1296 1296 _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.")); 1297 1297 _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.")); … … 1357 1357 _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.")); 1358 1358 _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>")); 1361 1361 _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.")); 1362 1362 _uploadEphPortLineEdit->setWhatsThis(tr("Specify the IP port of an Ntrip Broadcaster to upload the stream. Default is port 80.")); … … 1367 1367 _actDeleteMountPoints->setWhatsThis(tr("<p>Delete stream(s) from selection presented in the 'Streams' canvas.</p>")); 1368 1368 _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>")); 1370 1370 _actStart->setWhatsThis(tr("<p> Start running BNC.</p>")); 1371 1371 _actStop->setWhatsThis(tr("<p> Stop running BNC.</p>")); … … 1390 1390 } 1391 1391 1392 // 1392 // 1393 1393 //////////////////////////////////////////////////////////////////////////// 1394 1394 void bncWindow::populateMountPointsTable() { … … 1480 1480 proxyPort != _proxyPortLineEdit->text().toInt()) { 1481 1481 int iRet = QMessageBox::question(this, "Question", "Proxy options " 1482 "changed. Use the new ones?", 1482 "changed. Use the new ones?", 1483 1483 QMessageBox::Yes, QMessageBox::No, 1484 1484 QMessageBox::NoButton); … … 1648 1648 1649 1649 if (_mountPointsTable->item(iRow, 6)->text() != "S") { 1650 QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() + 1650 QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() + 1651 1651 "@" + _mountPointsTable->item(iRow, 1)->text() ); 1652 1652 1653 mountPoints.append(url.toString() + " " + 1653 mountPoints.append(url.toString() + " " + 1654 1654 _mountPointsTable->item(iRow, 2)->text() 1655 1655 + " " + _mountPointsTable->item(iRow, 3)->text() … … 1659 1659 + " " + _mountPointsTable->item(iRow, 7)->text()); 1660 1660 } else { 1661 mountPoints.append( 1661 mountPoints.append( 1662 1662 "//" + _mountPointsTable->item(iRow, 1)->text() 1663 1663 + " " + _mountPointsTable->item(iRow, 2)->text() … … 1687 1687 QString hlp; 1688 1688 for (int iCol = 0; iCol < _uploadTable->columnCount(); iCol++) { 1689 if (_uploadTable->cellWidget(iRow, iCol) && 1689 if (_uploadTable->cellWidget(iRow, iCol) && 1690 1690 (iCol == 3 || iCol == 4 || iCol == 5)) { 1691 1691 if (iCol == 3) { … … 1717 1717 settings.setValue("statusTab", _loggroup->currentIndex()); 1718 1718 settings.setValue("mountPoints", mountPoints); 1719 // Network 1719 // Network 1720 1720 settings.setValue("proxyHost", _proxyHostLineEdit->text()); 1721 1721 settings.setValue("proxyPort", _proxyPortLineEdit->text()); … … 1775 1775 settings.setValue("adviseReco", _adviseRecoSpinBox->value()); 1776 1776 settings.setValue("adviseScript",_adviseScriptLineEdit->text()); 1777 // Miscellaneous 1777 // Miscellaneous 1778 1778 settings.setValue("miscMount", _miscMountLineEdit->text()); 1779 1779 settings.setValue("miscPort", _miscPortLineEdit->text()); … … 1898 1898 BNC_CORE->initCombination(); 1899 1899 1900 connect(_caster, SIGNAL(getThreadsFinished()), 1900 connect(_caster, SIGNAL(getThreadsFinished()), 1901 1901 this, SLOT(slotGetThreadsFinished())); 1902 1902 1903 connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)), 1903 connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)), 1904 1904 this, SLOT(slotMountPointsRead(QList<bncGetThread*>))); 1905 1905 … … 1926 1926 if (_pppWidgets._dataSource->currentText() == "Real-Time Streams") 1927 1927 BNC_CORE->slotMessage("Panel 'PPP' active", true); 1928 if (_cmbTable->rowCount() > 0) 1928 if (_cmbTable->rowCount() > 0) 1929 1929 BNC_CORE->slotMessage("Panel 'Combine Corrections' active", true); 1930 if (_uploadTable->rowCount() > 0) 1930 if (_uploadTable->rowCount() > 0) 1931 1931 BNC_CORE->slotMessage("Panel 'Upload Corrections' active", true); 1932 1932 if (!_uploadEphHostLineEdit->text().isEmpty()) … … 1957 1957 1958 1958 _casterEph = new bncEphUploadCaster(); 1959 connect(_casterEph, SIGNAL(newBytes(QByteArray,double)), 1959 connect(_casterEph, SIGNAL(newBytes(QByteArray,double)), 1960 1960 _uploadEphBytesCounter, SLOT(slotNewBytes(QByteArray,double))); 1961 1961 } … … 1964 1964 //////////////////////////////////////////////////////////////////////////// 1965 1965 void bncWindow::slotStop() { 1966 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving/processing data?", 1966 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving/processing data?", 1967 1967 QMessageBox::Yes, QMessageBox::No, 1968 1968 QMessageBox::NoButton); … … 1982 1982 void bncWindow::closeEvent(QCloseEvent* event) { 1983 1983 1984 int iRet = QMessageBox::question(this, "Close", "Save Options?", 1984 int iRet = QMessageBox::question(this, "Close", "Save Options?", 1985 1985 QMessageBox::Yes, QMessageBox::No, 1986 1986 QMessageBox::Cancel); … … 2010 2010 } 2011 2011 2012 // Display Program Messages 2012 // Display Program Messages 2013 2013 //////////////////////////////////////////////////////////////////////////// 2014 2014 void bncWindow::slotWindowMessage(const QByteArray msg, bool showOnScreen) { … … 2016 2016 _log->append(QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg); 2017 2017 } 2018 } 2018 } 2019 2019 2020 2020 // About Message … … 2033 2033 //////////////////////////////////////////////////////////////////////////// 2034 2034 void bncWindow::slotHelp() { 2035 QUrl url; 2035 QUrl url; 2036 2036 url.setPath(":bnchelp.html"); 2037 2037 new bncHlpDlg(0, url); … … 2042 2042 void bncWindow::slotFontSel() { 2043 2043 bool ok; 2044 QFont newFont = QFontDialog::getFont(&ok, this->font(), this); 2044 QFont newFont = QFontDialog::getFont(&ok, this->font(), this); 2045 2045 if (ok) { 2046 2046 bncSettings settings; … … 2058 2058 } 2059 2059 2060 // 2060 // 2061 2061 //////////////////////////////////////////////////////////////////////////// 2062 2062 void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) { … … 2074 2074 bncGetThread* thread = iTh.next(); 2075 2075 for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) { 2076 QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() + 2076 QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() + 2077 2077 "@" + _mountPointsTable->item(iRow, 1)->text() ); 2078 2078 if (url == thread->mountPoint() && … … 2094 2094 } 2095 2095 2096 // 2096 // 2097 2097 //////////////////////////////////////////////////////////////////////////// 2098 2098 void bncWindow::CreateMenu() { … … 2116 2116 void bncWindow::AddToolbar() { 2117 2117 QToolBar* toolBar = new QToolBar; 2118 addToolBar(Qt::BottomToolBarArea, toolBar); 2118 addToolBar(Qt::BottomToolBarArea, toolBar); 2119 2119 toolBar->setMovable(false); 2120 2120 toolBar->addAction(_actAddMountPoints); … … 2125 2125 toolBar->addWidget(new QLabel(" ")); 2126 2126 toolBar->addAction(_actwhatsthis); 2127 } 2127 } 2128 2128 2129 2129 // About 2130 2130 //////////////////////////////////////////////////////////////////////////// 2131 bncAboutDlg::bncAboutDlg(QWidget* parent) : 2131 bncAboutDlg::bncAboutDlg(QWidget* parent) : 2132 2132 QDialog(parent) { 2133 2133 … … 2148 2148 dlgLayout->addWidget(new QLabel("BKG Ntrip Client (BNC) Version "BNCVERSION), 0,1); 2149 2149 dlgLayout->addWidget(tb,1,0,1,2); 2150 dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight); 2150 dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight); 2151 2151 2152 2152 setLayout(dlgLayout); … … 2156 2156 } 2157 2157 2158 // 2158 // 2159 2159 //////////////////////////////////////////////////////////////////////////// 2160 2160 bncAboutDlg::~bncAboutDlg() { 2161 }; 2162 2163 // Flowchart 2161 }; 2162 2163 // Flowchart 2164 2164 //////////////////////////////////////////////////////////////////////////// 2165 2165 bncFlowchartDlg::bncFlowchartDlg(QWidget* parent) : … … 2182 2182 } 2183 2183 2184 // 2184 // 2185 2185 //////////////////////////////////////////////////////////////////////////// 2186 2186 bncFlowchartDlg::~bncFlowchartDlg() { … … 2204 2204 2205 2205 // Bnc Text 2206 //////////////////////////////////////////////////////////////////////////// 2206 //////////////////////////////////////////////////////////////////////////// 2207 2207 void bncWindow::slotBncTextChanged(){ 2208 2208 … … 2264 2264 if (sender() == 0 || sender() == _corrPathLineEdit || sender() == _corrPortLineEdit) { 2265 2265 enable = !_corrPathLineEdit->text().isEmpty() || !_corrPortLineEdit->text().isEmpty(); 2266 enableWidget(enable, _corrIntrComboBox); 2266 enableWidget(enable, _corrIntrComboBox); 2267 2267 } 2268 2268 … … 2277 2277 // Serial Output 2278 2278 // ------------- 2279 if (sender() == 0 || sender() == _serialMountPointLineEdit || 2279 if (sender() == 0 || sender() == _serialMountPointLineEdit || 2280 2280 sender() == _serialAutoNMEAComboBox) { 2281 2281 enable = !_serialMountPointLineEdit->text().isEmpty(); … … 2331 2331 enableWidget(true, _cmbSamplSpinBox); 2332 2332 enableWidget(true, _cmbUseGlonass); 2333 } 2333 } 2334 2334 else { 2335 2335 enableWidget(false, _cmbMethodComboBox); … … 2349 2349 enableWidget(true, _uploadSamplSp3SpinBox); 2350 2350 enableWidget(true, _uploadAntexFile); 2351 } 2351 } 2352 2352 else { 2353 2353 enableWidget(false, _uploadIntrComboBox); … … 2387 2387 } 2388 2388 2389 // 2389 // 2390 2390 //////////////////////////////////////////////////////////////////////////// 2391 2391 void bncWindow::slotAddCmbRow() { … … 2397 2397 } 2398 2398 2399 // 2399 // 2400 2400 //////////////////////////////////////////////////////////////////////////// 2401 2401 void bncWindow::slotDelCmbRow() { … … 2428 2428 } 2429 2429 2430 // 2430 // 2431 2431 //////////////////////////////////////////////////////////////////////////// 2432 2432 void bncWindow::populateCmbTable() { … … 2452 2452 } 2453 2453 2454 // 2454 // 2455 2455 //////////////////////////////////////////////////////////////////////////// 2456 2456 void bncWindow::slotAddUploadRow() { … … 2487 2487 } 2488 2488 2489 // 2489 // 2490 2490 //////////////////////////////////////////////////////////////////////////// 2491 2491 void bncWindow::slotDelUploadRow() { … … 2507 2507 } 2508 2508 for (int iRow = 0; iRow < _uploadTable->rowCount(); iRow++) { 2509 BNC_CORE->_uploadTableItems[iRow] = 2509 BNC_CORE->_uploadTableItems[iRow] = 2510 2510 (bncTableItem*) _uploadTable->item(iRow, 11); 2511 2511 } … … 2520 2520 } 2521 2521 2522 // 2522 // 2523 2523 //////////////////////////////////////////////////////////////////////////// 2524 2524 void bncWindow::populateUploadTable() { … … 2573 2573 } 2574 2574 2575 // 2575 // 2576 2576 //////////////////////////////////////////////////////////////////////////// 2577 2577 void bncWindow::slotSetUploadTrafo() {
Note:
See TracChangeset
for help on using the changeset viewer.