// 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. When converting RINEX Version 2 to RINEX Version 3, the tracking mode or channel information in the (last character out of the three characters) observation code is left blank if unknown. When converting RINEX Version 3 to RINEX Version 2
Select sampling rate of emerging new RINEX observation file.
")); _reqcStartDateTime->setWhatsThis(tr("Specify begin of emerging new RINEX observation file.
")); _reqcEndDateTime->setWhatsThis(tr("Specify end of emerging new RINEX observation file.
")); _reqcOldMarkerName->setWhatsThis(tr("Enter old marker name in RINEX observation file.
")); _reqcNewMarkerName->setWhatsThis(tr("Enter new marker name in RINEX observation file.
")); _reqcOldAntennaName->setWhatsThis(tr("Enter old antenna name in RINEX observation file.
")); _reqcNewAntennaName->setWhatsThis(tr("Enter new antenna name in RINEX observation file.
")); _reqcOldReceiverName->setWhatsThis(tr("Enter old receiver name in RINEX observation file.
")); _reqcNewReceiverName->setWhatsThis(tr("Enter new receiver name in RINEX observation file.
")); _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. The 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.
")); _reqcRunBy->setWhatsThis(tr("Specify a 'RUN BY' string to be included in the emerging new RINEX file header.
Default is an empty option field meanig the operator's user ID is used as 'RUN BY' string.
")); } // 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->value()); settings.setValue("reqcStartDateTime" , _reqcStartDateTime->dateTime().toString(Qt::ISODate)); settings.setValue("reqcEndDateTime" , _reqcEndDateTime->dateTime().toString(Qt::ISODate)); settings.setValue("reqcRunBy" , _reqcRunBy->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("reqcOldReceiverName", _reqcOldReceiverName->text()); settings.setValue("reqcNewReceiverName", _reqcNewReceiverName->text()); }