// Part of BNC, a utility for retrieving decoding and
// converting GNSS data streams from NTRIP broadcasters.
//
// Copyright (C) 2007
// German Federal Agency for Cartography and Geodesy (BKG)
// http://www.bkg.bund.de
// Czech Technical University Prague, Department of Geodesy
// http://www.fsv.cvut.cz
//
// Email: euref-ip@bkg.bund.de
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation, version 2.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/* -------------------------------------------------------------------------
* BKG NTRIP Client
* -------------------------------------------------------------------------
*
* Class: reqcDlg
*
* Purpose: Displays the teqc-like editing options
*
* Author: L. Mervart
*
* Created: 28-Mar-2012
*
* Changes:
*
* -----------------------------------------------------------------------*/
#include Select version number of emerging new RINEX file. Note the following: When converting RINEX Version 2 to Version 3 Observation files, the tracking mode or channel information (signal attribute, see RINEX Version 3 documentation) in the (last out of the three characters) observation code is left blank if unknown. When converting RINEX Version 3 to Version 2, the mapping of observations follows a 'Signal priority list' with signal attributes as defined in RINEX Version 3. [key: reqcRnxVersion] Select sampling rate of emerging new RINEX Observation file. [key: reqcSampling] 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. Signal priorities can be specified as equal for all systems, as system specific or as system and freq. specific. For example:
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:18&DPX I:ABCX S:1&C S:5&IQX'. [key: reqcV2Priority]
Specify begin of emerging new RINEX Observation file. [key: reqcStartDateTime]
")); _reqcEndDateTime->setWhatsThis(tr("Specify end of emerging new RINEX Observation file. [key: reqcEndDateTime]
")); _reqcRunBy->setWhatsThis(tr("Specify a 'RUN BY' string to be included in the emerging new RINEX file header.
Default is an empty option field, meaning the operator's user ID is used as 'RUN BY' string. [key: reqcRunBy]
")); _reqcComment->setWhatsThis(tr("Specifying a comment line text to be added to the emerging new RINEX file header is an option. Any introduction of newline specification '\\n' in this enforces the beginning of a further comment line. Comment line(s) will be added to the header after the 'PGM / RUN BY / DATE' record.
Default is an empty option field meaning that no additional comment line is added to the RINEX header. [key: reqcComment]
")); _reqcUseObsTypes->setWhatsThis(tr("This option lets you limit the RINEX output to specific observation types. Examples:
Default is an empty option field, meaning that the RINEX output file contains all observations made available through RINEX input file. [key: reqcUseObsTypes]
")); _reqcOldMarkerName->setWhatsThis(tr("Enter old Marker Name in RINEX Observation file.
Default is an empty option field. [key: reqcOldMarkerName]
")); _reqcNewMarkerName->setWhatsThis(tr("Enter new Marker Name in RINEX Observation file.
If option 'Old Marker Name' is either left blank or its content is specified as given in the RINEX input file, then the marker name in the RINEX output file will be specified by 'New Marker Name'
Default is an empty option field, meaning that the content of the Marker Name data field in the RINEX file will not be changed. [key: reqcNewMarkerName]
")); _reqcOldAntennaName->setWhatsThis(tr("Enter old Antenna Name in RINEX Observation file.
Default is an empty option field. [key: reqcOldAntennaName]
")); _reqcNewAntennaName->setWhatsThis(tr("Enter new Antenna Name in RINEX Observation file.
If option 'Old Antenna Name' is either left blank or its content is specified as given in the RINEX input file, then the antenna name in the RINEX output file will be specified by 'New Antenna Name'
Default is an empty option field, meaning that the content of the Antenna Name data field in the RINEX file will not be changed. [key: reqcNewAntennaName]
")); _reqcOldAntennaNumber->setWhatsThis(tr("Enter old Antenna Number in RINEX Observation file.
Default is an empty option field. [key: reqcOldAntennaNumber]
")); _reqcNewAntennaNumber->setWhatsThis(tr("Enter new Antenna Number in RINEX Observation file.
If option 'Old Antenna Number' is either left blank or its content is specified as given in the RINEX input file, then the antenna number in the RINEX output file will be specified by 'New Antenna Number'
Default is an empty option field, meaning that the content of the Antenna Number data field in the RINEX file will not be changed. [key: reqcNewAntennaNumber]
")); _reqcOldAntennadN->setWhatsThis(tr("Enter old North Antenna Eccentricity in RINEX Observation file.
Default is an empty option field. [key: reqcOldAntennadN]
")); _reqcNewAntennadN->setWhatsThis(tr("Enter new North Antenna Eccentricity in RINEX Observation file.
If option 'Old Antenna North Eccentricity' is either left blank or its content is specified as given in the RINEX input file, then the north antenna eccentricity in the RINEX output file will be specified by 'New North Antenna Eccentricity'
Default is an empty option field, meaning that the content of the North Antenna Eccentricity data field in the RINEX file will not be changed. [key: reqcNewAntennadN]
")); _reqcOldAntennadE->setWhatsThis(tr("Enter old East Antenna Eccentricity in RINEX Observation file.
Default is an empty option field. [key: reqcOldAntennadE]
")); _reqcNewAntennadE->setWhatsThis(tr("Enter new East Antenna Eccentricity in RINEX Observation file.
If option 'Old Antenna East Eccentricity' is either left blank or its content is specified as given in the RINEX input file, then the east antenna eccentricity in the RINEX output file will be specified by 'New East Antenna Eccentricity'
Default is an empty option field, meaning that the content of the East Antenna Eccentricity data field in the RINEX file will not be changed. [key: reqcNewAntennadE]
")); _reqcOldAntennadU->setWhatsThis(tr("Enter old Up Antenna Eccentricity in RINEX Observation file.
Default is an empty option field. [key: reqcOldAntennadU]
")); _reqcNewAntennadU->setWhatsThis(tr("Enter new Up Antenna Eccentricity in RINEX Observation file.
If option 'Old Antenna Up Eccentricity' is either left blank or its content is specified as given in the RINEX input file, then the up antenna eccentricity in the RINEX output file will be specified by 'New Up Antenna Eccentricity'
Default is an empty option field, meaning that the content of the Up Antenna Eccentricity data field in the RINEX file will not be changed. [key: reqcNewAntennadU]
")); _reqcOldReceiverName->setWhatsThis(tr("Enter old Receiver Name in RINEX Observation file.
Default is an empty option field. [key: reqcOldReceiverName]
")); _reqcNewReceiverName->setWhatsThis(tr("Enter new Receiver Name in RINEX Observation file.
If option 'Old Receiver Name' is either left blank or its content is specified as given in the RINEX input file, then the receiver name in the RINEX output file will be specified by 'New Receiver Name'
Default is an empty option field, meaning that the content of the Receiver Name data field in the RINEX file will not be changed. [key: reqcNewReceiverName]
")); _reqcOldReceiverNumber->setWhatsThis(tr("Enter old Receiver Number in RINEX Observation file.
Default is an empty option field. [key: reqcOldReceiverNumber]
")); _reqcNewReceiverNumber->setWhatsThis(tr("Enter new Receiver Number in RINEX Observation file.
If option 'Old Receiver Number' is either left blank or its content is specified as given in the RINEX input file, then the receiver number in the RINEX output file will be specified by 'New Receiver Number'
Default is an empty option field, meaning that the content of the Receiver Number data field in the RINEX file will not be changed. [key: reqcNewReceiverNumber]
")); } // Destructor //////////////////////////////////////////////////////////////////////////// reqcDlg::~reqcDlg() { delete _buttonOK; delete _buttonCancel; delete _buttonWhatsThis; } // Accept the Options //////////////////////////////////////////////////////////////////////////// void reqcDlg::slotOK() { saveOptions(); done(0); } // Whats This Help //////////////////////////////////////////////////////////////////////////// void reqcDlg::slotWhatsThis() { QWhatsThis::enterWhatsThisMode(); } // Close Dialog gracefully //////////////////////////////////////////////////////////////////////////// void reqcDlg::closeEvent(QCloseEvent* event) { int iRet = QMessageBox::question(this, "Close", "Save Options?", QMessageBox::Yes, QMessageBox::No, QMessageBox::Cancel); if (iRet == QMessageBox::Cancel) { event->ignore(); return; } else if (iRet == QMessageBox::Yes) { saveOptions(); } QDialog::closeEvent(event); } // Save Selected Options //////////////////////////////////////////////////////////////////////////// void reqcDlg::saveOptions() { bncSettings settings; settings.setValue("reqcRnxVersion" , _reqcRnxVersion->currentText()); settings.setValue("reqcSampling" , _reqcSampling->currentText()); settings.setValue("reqcV2Priority" , _reqcV2Priority->text()); settings.setValue("reqcStartDateTime" , _reqcStartDateTime->dateTime().toString(Qt::ISODate)); settings.setValue("reqcEndDateTime" , _reqcEndDateTime->dateTime().toString(Qt::ISODate)); settings.setValue("reqcRunBy" , _reqcRunBy->text()); settings.setValue("reqcUseObsTypes" , _reqcUseObsTypes->text()); settings.setValue("reqcComment" , _reqcComment->text()); settings.setValue("reqcOldMarkerName" , _reqcOldMarkerName->text()); settings.setValue("reqcNewMarkerName" , _reqcNewMarkerName->text()); settings.setValue("reqcOldAntennaName" , _reqcOldAntennaName->text()); settings.setValue("reqcNewAntennaName" , _reqcNewAntennaName->text()); settings.setValue("reqcOldAntennaNumber" , _reqcOldAntennaNumber->text()); settings.setValue("reqcNewAntennaNumber" , _reqcNewAntennaNumber->text()); settings.setValue("reqcOldAntennadN" , _reqcOldAntennadN->text()); settings.setValue("reqcNewAntennadN" , _reqcNewAntennadN->text()); settings.setValue("reqcOldAntennadE" , _reqcOldAntennadE->text()); settings.setValue("reqcNewAntennadE" , _reqcNewAntennadE->text()); settings.setValue("reqcOldAntennadU" , _reqcOldAntennadU->text()); settings.setValue("reqcNewAntennadU" , _reqcNewAntennadU->text()); settings.setValue("reqcNewAntennaNumber" , _reqcNewAntennaNumber->text()); settings.setValue("reqcOldReceiverName" , _reqcOldReceiverName->text()); settings.setValue("reqcNewReceiverName" , _reqcNewReceiverName->text()); settings.setValue("reqcOldReceiverNumber", _reqcOldReceiverNumber->text()); settings.setValue("reqcNewReceiverNumber", _reqcNewReceiverNumber->text()); } // Reqc Text Changed //////////////////////////////////////////////////////////////////////////// void reqcDlg::slotReqcTextChanged(){ const static QPalette paletteWhite(QColor(255, 255, 255)); const static QPalette paletteGray(QColor(230, 230, 230)); if (sender() == 0 || sender() == _reqcRnxVersion) { if (_reqcRnxVersion->currentText() == "2") { _reqcV2Priority->setPalette(paletteWhite); _reqcV2Priority->setEnabled(true); } else { _reqcV2Priority->setPalette(paletteGray); _reqcV2Priority->setEnabled(false); } } }