Changeset 9158 in ntrip for trunk/BNC/src/bncwindow.cpp
- Timestamp:
- Oct 1, 2020, 3:19:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r9107 r9158 239 239 _rnxSkelLineEdit->setMaximumWidth(5*ww); 240 240 _rnxScrpLineEdit = new QLineEdit(settings.value("rnxScript").toString()); 241 _rnxV 3CheckBox = new QCheckBox();242 _rnxV 3CheckBox->setCheckState(Qt::CheckState(settings.value("rnxV3").toInt()));241 _rnxV2CheckBox = new QCheckBox(); 242 _rnxV2CheckBox->setCheckState(Qt::CheckState(settings.value("rnxV2").toInt())); 243 243 QString hlp = settings.value("rnxV2Priority").toString(); 244 244 if (hlp.isEmpty()) { … … 247 247 _rnxV2Priority = new QLineEdit(hlp); 248 248 249 connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), 250 this, SLOT(slotBncTextChanged())); 251 connect(_rnxV3CheckBox, SIGNAL(stateChanged(int)), 252 this, SLOT(slotBncTextChanged())); 249 connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotBncTextChanged())); 250 connect(_rnxV2CheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged())); 253 251 254 252 // RINEX Ephemeris Options … … 263 261 } 264 262 _ephOutPortLineEdit = new QLineEdit(settings.value("ephOutPort").toString()); 265 _ephV 3CheckBox = new QCheckBox();266 _ephV 3CheckBox->setCheckState(Qt::CheckState(settings.value("ephV3").toInt()));263 _ephV2CheckBox = new QCheckBox(); 264 _ephV2CheckBox->setCheckState(Qt::CheckState(settings.value("ephV2").toInt())); 267 265 268 266 connect(_ephOutPortLineEdit, SIGNAL(textChanged(const QString &)), … … 764 762 oLayout->addWidget(new QLabel("Version 2 signal priority"), 5, 0); 765 763 oLayout->addWidget(_rnxV2Priority, 5, 1, 1, 15); 766 oLayout->addWidget(new QLabel("Version 3"), 6, 0);767 oLayout->addWidget(_rnxV 3CheckBox, 6, 1);764 oLayout->addWidget(new QLabel("Version 2"), 6, 0); 765 oLayout->addWidget(_rnxV2CheckBox, 6, 1); 768 766 oLayout->addWidget(new QLabel(""), 7, 1); 769 767 oLayout->setRowStretch(8, 999); … … 785 783 eLayout->addWidget(new QLabel("Port"), 3, 0); 786 784 eLayout->addWidget(_ephOutPortLineEdit, 3, 1); 787 eLayout->addWidget(new QLabel("Version 3"), 4, 0);788 eLayout->addWidget(_ephV 3CheckBox, 4, 1);785 eLayout->addWidget(new QLabel("Version 2"), 4, 0); 786 eLayout->addWidget(_ephV2CheckBox, 4, 1); 789 787 eLayout->setRowStretch(5, 999); 790 788 … … 938 936 pppLayout1->addWidget(new QLabel("Data source"), ir, 0); 939 937 pppLayout1->addWidget(_pppWidgets._dataSource, ir, 1); 940 pppLayout1->addWidget(new QLabel(" Version 3filenames"),ir, 4);941 pppLayout1->addWidget(_pppWidgets._v 3filenames, ir, 5, 1, 3);938 pppLayout1->addWidget(new QLabel(" Version 2 filenames"),ir, 4); 939 pppLayout1->addWidget(_pppWidgets._v2filenames, ir, 5, 1, 3); 942 940 ++ir; 943 941 pppLayout1->addWidget(new QLabel("Corrections stream"), ir, 0); … … 1292 1290 // WhatsThis, Network 1293 1291 // ------------------ 1294 _proxyHostLineEdit->setWhatsThis(tr("<p>If you are running BNC within a protected Local Area Network (LAN), you may need to use a proxy server to access the Internet. Enter your proxy server IP and port number in case one is operated in front of BNC. If you do not know the IP and port of your proxy server, check the proxy server settings in your Internet browser or ask your network administrator. </p><p>Note that IP streaming is sometimes not allowed in a LAN. In this case you need to ask your network administrator for an appropriate modification of the local security policy or for the installation of a TCP relay to the Ntrip Broadcasters. If this is not possible, you may need to run BNC outside your LAN on a network that has unobstructed connection to the Internet. <i>[key: proxyHost]</i></p>"));1292 _proxyHostLineEdit->setWhatsThis(tr("<p>If you are running BNC within a protected Local Area Network (LAN), you may need to use a proxy server to access the Internet. Enter your proxy server IP and port number in case one is operated in front of BNC. If you do not know the IP and port of your proxy server, check the proxy server settings in your Internet browser or ask your network administrator. Without any entry, BNC will try to use the system proxies. </p><p>Note that IP streaming is sometimes not allowed in a LAN. In this case you need to ask your network administrator for an appropriate modification of the local security policy or for the installation of a TCP relay to the Ntrip Broadcasters. If this is not possible, you may need to run BNC outside your LAN on a network that has unobstructed connection to the Internet. <i>[key: proxyHost]</i></p>")); 1295 1293 _proxyPortLineEdit->setWhatsThis(tr("<p>Enter your proxy server port number in case a proxy is operated in front of BNC. <i>[key: proxyPort]</i></p>")); 1296 1294 _sslCaCertPathLineEdit->setWhatsThis(tr("<p>Communication with an Ntrip Broadcaster over SSL requires the exchange of client and/or server certificates. Specify the path to a directory where you save certificates on your system. Don't try communication via SSL if you are not sure whether this is supported by the involved Ntrip Broadcaster.</p><p>Note that SSL communication is usually done over port 443. <i>[key: sslCaCertPath]</i></p>")); … … 1314 1312 _rnxScrpLineEdit->setWhatsThis(tr("<p>Whenever a RINEX Observation file is finally saved, you may want to compress, copy or upload it immediately, for example via FTP. BNC allows you to execute a script/batch file to carry out such operation.</p><p>Specify the full path of a script or batch file. BNC will pass the full RINEX Observation file path to the script as command line parameter (%1 on Windows systems, $1 on Unix/Linux/Mac systems). <i>[key: rnxScript]</i></p>")); 1315 1313 _rnxV2Priority->setWhatsThis(tr("<p>Specify a priority list of characters defining signal attributes as defined in RINEX Version 3. Priorities will be used to map observations with RINEX Version 3 attributes from incoming streams to Version 2. The underscore character '_' stands for undefined attributes. A question mark '?' can be used as wildcard which represents any one character.</p><p>Signal priorities can be specified as equal for all systems, as system specific or as system and freq. specific. For example: </li><ul><li>'CWPX_?' (General signal priorities valid for all GNSS) </li><li>'I:ABCX' (System specific signal priorities for IRNSS) </li><li>'G:12&PWCSLX G:5&IQX R:12&PC R:3&IQX' (System and frequency specific signal priorities) </li></ul>Default is the following priority list 'G:12&PWCSLX G:5&IQX R:12&PC R:3&IQX R:46&ABX E:16&BCXZ E:578&IQX J:1&SLXCZ J:26&SLX J:5&IQX C:267&IQX C:128&DPX C:7&DPZ I:ABCX S:1&C S:5&IQX'. <i>[key: rnxV2Priority]</i></p>")); 1316 _rnxV 3CheckBox->setWhatsThis(tr("<p>The default format for RINEX Observation files is RINEX Version 2.</p><p>Select 'Version 3' if you want to save observations in RINEX Version 3 format. <i>[key: rnxV3]</i></p>"));1314 _rnxV2CheckBox->setWhatsThis(tr("<p>The default format for RINEX Observation files is RINEX Version 3.</p><p>Select 'Version 2' if you want to save observations in RINEX Version 2 format. <i>[key: rnxV2]</i></p>")); 1317 1315 1318 1316 // WhatsThis, RINEX Ephemeris … … 1321 1319 _ephIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Navigation file. <i>[key: ephIntr]</i></p>")); 1322 1320 _ephOutPortLineEdit->setWhatsThis(tr("<p>BNC can produce ephemeris data in RINEX Navigation ASCII format on your local host through an IP port.</p><p>Specify a port number here to activate this function. <i>[key: ephOutPort]</i></p>")); 1323 _ephV 3CheckBox->setWhatsThis(tr("<p>The default format for output of RINEX Navigation data containing Broadcast Ephemeris is RINEX Version 2.</p><p>Select 'Version 3' if you want to output ephemeris in RINEX Version 3 format. <i>[key: ephV3]</i></p>"));1321 _ephV2CheckBox->setWhatsThis(tr("<p>The default format for output of RINEX Navigation data containing Broadcast Ephemeris is RINEX Version 3.</p><p>Select 'Version 2' if you want to output ephemeris in RINEX Version 2 format. <i>[key: ephV2]</i></p>")); 1324 1322 1325 1323 // WhatsThis, RINEX Editing & QC … … 1394 1392 _pppWidgets._antexFile->setWhatsThis(tr("<p>Observations in RTCM streams or RINEX files should be referred to the receiver's and to the satellite's Antenna Phase Center (APC) and therefore be corrected for<ul><li>Receiver APC offsets</li><li>Receiver APC variations</li><li>Satellite APC offsets.</li></ul> Specify the full path to an IGS 'ANTEX file' which contains APC offsets and variations.</p><p>If you don't specify an 'ANTEX file' then observations will not be corrected for APC offsets and variations.</p>")); 1395 1393 _pppWidgets._crdFile->setWhatsThis(tr("<p>Enter the full path to an ASCII file which specifies the streams or files of those stations you want to process. Specifying a 'Coordinates file' is optional. If it exists, it should contain one record per station with the following parameters separated by blank character:<p><ul><li>Specify the station either by<ul><li>the 'Mountpoint' of the station's RTCM stream (when in real-time PPP mode), or</li><li>the 4-charater station ID of the RINEX Observations file (when in post processing PPP mode).</li></ul></li><li>Approximate X,Y,Z coordinate of station's Antenna Reference Point [m] (ARP, specify '0.0 0.0 0.0' if unknown).</li><li>North, East and Up component of antenna eccentricity [m] (specify '0.0 0.0 0.0' if unknown).</li><li>20 Characters describing the antenna type and radome following the IGS 'ANTEX file' standard (leave blank if unknown).</li><li>Receiver type following the naming conventions for IGS equipment.</li></ul></p><p>Records with exclamation mark '!' in the first column or blank records will be interpreted as comment lines and ignored.</p>")); 1396 _pppWidgets._v 3filenames->setWhatsThis(tr("<p>Tick 'Version 3 filenames' to let BNC create so-called extended filenames for PPP logfiles, NMEA files and SINEX Troposphere files following the RINEX Version 3 standard.</p><p>Default is an empty check box, meaning to create filenames following the RINEX Version 2standard. The file content is not affected by this option. It only concerns the filenames.</p>"));1394 _pppWidgets._v2filenames->setWhatsThis(tr("<p>Tick 'Version 2 filenames' to let BNC create filenames for PPP logfiles , NMEA files and SINEX Troposphere files following the RINEX Version 2 standard.</p><p>Default is an empty check box, meaning to create filenames following the RINEX Version 3 standard. The file content is not affected by this option. It only concerns the filenames.</p>")); 1397 1395 _pppWidgets._logPath->setWhatsThis(tr("<p>Specify a directory for saving daily PPP logfiles. If the specified directory does not exist, BNC will not create such files.</p><p>Default is an empty option field, meaning that no PPP logfiles shall be produced.</p>")); 1398 1396 _pppWidgets._nmeaPath->setWhatsThis(tr("<p>Specify a directory for saving coordinates in daily NMEA files. If the specified directory does not exist, BNC will not create such files.</p><p>Default is an empty option field, meaning that no NMEA file shall be produced.</p>")); … … 1515 1513 delete _rnxSkelLineEdit; 1516 1514 delete _rnxScrpLineEdit; 1517 delete _rnxV 3CheckBox;1515 delete _rnxV2CheckBox; 1518 1516 delete _rnxV2Priority; 1519 1517 delete _ephPathLineEdit; 1520 1518 delete _ephIntrComboBox; 1521 1519 delete _ephOutPortLineEdit; 1522 delete _ephV 3CheckBox;1520 delete _ephV2CheckBox; 1523 1521 delete _corrPathLineEdit; 1524 1522 delete _corrIntrComboBox; … … 1971 1969 settings.setValue("rnxScript", _rnxScrpLineEdit->text()); 1972 1970 settings.setValue("rnxV2Priority",_rnxV2Priority->text()); 1973 settings.setValue("rnxV 3", _rnxV3CheckBox->checkState());1971 settings.setValue("rnxV2", _rnxV2CheckBox->checkState()); 1974 1972 // RINEX Ephemeris 1975 1973 settings.setValue("ephPath", _ephPathLineEdit->text()); 1976 1974 settings.setValue("ephIntr", _ephIntrComboBox->currentText()); 1977 1975 settings.setValue("ephOutPort", _ephOutPortLineEdit->text()); 1978 settings.setValue("ephV 3", _ephV3CheckBox->checkState());1976 settings.setValue("ephV2", _ephV2CheckBox->checkState()); 1979 1977 // Broadcast Corrections 1980 1978 settings.setValue("corrPath", _corrPathLineEdit->text()); … … 2459 2457 enableWidget(enable, _rnxScrpLineEdit); 2460 2458 enableWidget(enable, _rnxV2Priority); 2461 enableWidget(enable, _rnxV 3CheckBox);2459 enableWidget(enable, _rnxV2CheckBox); 2462 2460 2463 2461 bool enable1 = true; 2464 enable1 = _rnxV 3CheckBox->isChecked();2462 enable1 = _rnxV2CheckBox->isChecked(); 2465 2463 if (enable && enable1) { 2464 enableWidget(true, _rnxV2Priority); 2465 } 2466 if (enable && !enable1) { 2466 2467 enableWidget(false, _rnxV2Priority); 2467 }2468 if (enable && !enable1) {2469 enableWidget(true, _rnxV2Priority);2470 2468 } 2471 2469 } … … 2473 2471 // RINEX Observations, Signal Priority 2474 2472 // ----------------------------------- 2475 if (sender() == 0 || sender() == _rnxV 3CheckBox) {2473 if (sender() == 0 || sender() == _rnxV2CheckBox) { 2476 2474 if (!_rnxPathLineEdit->text().isEmpty()) { 2477 2475 enableWidget(enable, _rnxIntrComboBox); 2478 enable = !_rnxV3CheckBox->isChecked();2476 enable = _rnxV2CheckBox->isChecked(); 2479 2477 enableWidget(enable, _rnxV2Priority); 2480 2478 } … … 2486 2484 enable = !_ephPathLineEdit->text().isEmpty() || !_ephOutPortLineEdit->text().isEmpty(); 2487 2485 enableWidget(enable, _ephIntrComboBox); 2488 enableWidget(enable, _ephV 3CheckBox);2486 enableWidget(enable, _ephV2CheckBox); 2489 2487 } 2490 2488
Note:
See TracChangeset
for help on using the changeset viewer.