Changeset 1503 in ntrip


Ignore:
Timestamp:
Jan 19, 2009, 11:49:31 AM (14 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmain.cpp

    r1501 r1503  
    109109  }
    110110
     111  QString printHelp;
     112  printHelp = "Usage: bnc --conf <confFileName>\n"
     113              "           --file <inputFileName>\n"
     114              "           --format <RTIGS | RTCM_2 | RTCM_3>\n"
     115              "           --date YYYY-MM-DD  --time HH:MM:SS";
     116
    111117  if (confFile && confFileName.isEmpty() ) {
    112       cout << "Usage: bnc --conf <confFileName>\n"
    113               "           --file <inputFileName>\n"
    114               "           --format <RTIGS | RTCM_2 | RTCM_3>\n"
    115               "           --date YYYY-MM-DD  --time HH:MM:SS" << endl;
     118      cout << printHelp.toAscii().data() << endl;
    116119      exit(0);
    117120  }
     
    130133  QSettings settings;
    131134  if (settings.allKeys().size() == 0) {
    132     settings.setValue("casterHost", "www.euref-ip.net");
    133     settings.setValue("casterHostList", QStringList());
    134     settings.setValue("casterPort", 2101);
    135     settings.setValue("rnxIntr",    "15 min");
    136     settings.setValue("ephIntr",    "1 day");
    137     settings.setValue("corrIntr",   "1 day");
    138     settings.setValue("rnxSkel",    "SKL");
    139     settings.setValue("waitTime",   "5");
    140     settings.setValue("makePause",  0);
    141     settings.setValue("obsRate",    "");
    142     settings.setValue("adviseFail", "15");
    143     settings.setValue("adviseReco", "5");
    144     settings.setValue("perfIntr",   "");
    145     settings.setValue("corrTime",   "5");
    146     settings.setValue("miscMount",  "");
     135  settings.setValue("adviseFail",       "15");
     136  settings.setValue("adviseReco",       "5");
     137  settings.setValue("adviseScript",     "");
     138  settings.setValue("autoStart",        "0");
     139  settings.setValue("binSampl",         "0");
     140  settings.setValue("casterHost",       "www.euref-ip.net");
     141  settings.setValue("casterPort",       "2101");
     142  settings.setValue("corrIntr",         "1 day");
     143  settings.setValue("corrPath",         "");
     144  settings.setValue("corrPort",         "");
     145  settings.setValue("corrTime",         "5");
     146  settings.setValue("ephIntr",          "1 day");
     147  settings.setValue("ephPath",          "");
     148  settings.setValue("ephV3",            "0");
     149  settings.setValue("logFile",          "");
     150  settings.setValue("makePause",        "0");
     151  settings.setValue("miscMount",        ""); 
     152  settings.setValue("obsRate",          "");
     153  settings.setValue("onTheFlyInterval", "1 day");
     154  settings.setValue("outEphPort",       "");
     155  settings.setValue("outFile",          "");
     156  settings.setValue("outPort",          "");
     157  settings.setValue("outUPort",         "");
     158  settings.setValue("perfIntr",         "");
     159  settings.setValue("proxyHost",        "");
     160  settings.setValue("proxyPort",        "");
     161  settings.setValue("rnxAppend",        "0");
     162  settings.setValue("rnxIntr",          "15 min");
     163  settings.setValue("rnxPath",          "");
     164  settings.setValue("rnxSampl",         "0");
     165  settings.setValue("rnxScript",        "");
     166  settings.setValue("rnxSkel",          "SKL");
     167  settings.setValue("rnxV3",            "0");
     168  settings.setValue("scanRTCM",         "0");
     169  settings.setValue("serialAutoNMEA",   "0");
     170  settings.setValue("serialBaudRate",   "9600");
     171  settings.setValue("serialDataBits",   "8");
     172  settings.setValue("serialMountPoint", "");
     173  settings.setValue("serialParity",     "NONE");
     174  settings.setValue("serialPortName",   "");
     175  settings.setValue("serialStopBits",   "1");
     176  settings.setValue("startTab",         "0");
     177  settings.setValue("waitTime",         "5");
     178
    147179  }
    148180
     
    217249      if ( fileName.isEmpty() || format.isEmpty() ||
    218250           dateString.isEmpty() || timeString.isEmpty() ) {
    219         cout << "Usage: bnc --conf <confFileName>\n"
    220                 "           --file <inputFileName>\n"
    221                 "           --format <RTIGS | RTCM_2 | RTCM_3>\n"
    222                 "           --date YYYY-MM-DD  --time HH:MM:SS" << endl;
     251      cout << printHelp.toAscii().data() << endl;
    223252        exit(0);
    224253      }
  • trunk/BNC/bncwindow.cpp

    r1501 r1503  
    859859////////////////////////////////////////////////////////////////////////////
    860860void bncWindow::slotResetOptions() {
    861   int iRet = QMessageBox::question(this, "Reset", "Remove all configuration"
    862                                    " options from configuration"
    863                                    " file/register on disk?",
     861  int iRet = QMessageBox::question(this, "Reset", "Remove all options from"
     862                                   " configuration file/register"
     863                                   " saved on disk?",
    864864                                   QMessageBox::Yes, QMessageBox::No,
    865865                                   QMessageBox::NoButton);
     
    874874void bncWindow::slotSaveOptions() {
    875875  QSettings settings;
     876  settings.setValue("adviseFail",  _adviseFailSpinBox->value());
     877  settings.setValue("adviseReco",  _adviseRecoSpinBox->value());
     878  settings.setValue("adviseScript",_adviseScriptLineEdit->text());
     879  settings.setValue("autoStart",   _autoStartCheckBox->checkState());
     880  settings.setValue("binSampl",    _binSamplSpinBox->value());
     881  settings.setValue("corrIntr",    _corrIntrComboBox->currentText());
     882  settings.setValue("corrPath",    _corrPathLineEdit->text());
     883  settings.setValue("corrPort",    _corrPortLineEdit->text());
     884  settings.setValue("corrTime",    _corrTimeSpinBox->value());
     885  settings.setValue("ephIntr",     _ephIntrComboBox->currentText());
     886  settings.setValue("ephPath",     _ephPathLineEdit->text());
     887  settings.setValue("ephV3",       _ephV3CheckBox->checkState());
     888  settings.setValue("logFile",     _logFileLineEdit->text());
     889  settings.setValue("makePause",   _makePauseCheckBox->checkState());
     890  settings.setValue("miscMount",   _miscMountLineEdit->text());
     891  settings.setValue("obsRate",     _obsRateComboBox->currentText());
     892  settings.setValue("onTheFlyInterval", _onTheFlyComboBox->currentText());
     893  settings.setValue("outEphPort",  _outEphPortLineEdit->text());
     894  settings.setValue("outFile",     _outFileLineEdit->text());
     895  settings.setValue("outPort",     _outPortLineEdit->text());
     896  settings.setValue("outUPort",    _outUPortLineEdit->text());
     897  settings.setValue("perfIntr",    _perfIntrComboBox->currentText());
    876898  settings.setValue("proxyHost",   _proxyHostLineEdit->text());
    877899  settings.setValue("proxyPort",   _proxyPortLineEdit->text());
     900  settings.setValue("rnxAppend",   _rnxAppendCheckBox->checkState());
     901  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
     902  settings.setValue("rnxPath",     _rnxPathLineEdit->text());
     903  settings.setValue("rnxSampl",    _rnxSamplSpinBox->value());
     904  settings.setValue("rnxScript",   _rnxScrpLineEdit->text());
     905  settings.setValue("rnxSkel",     _rnxSkelLineEdit->text());
     906  settings.setValue("rnxV3",       _rnxV3CheckBox->checkState());
     907  settings.setValue("scanRTCM",    _scanRTCMCheckBox->checkState());
     908  settings.setValue("serialAutoNMEA",  _serialAutoNMEACheckBox->checkState());
     909  settings.setValue("serialBaudRate",  _serialBaudRateComboBox->currentText());
     910  settings.setValue("serialDataBits",  _serialDataBitsComboBox->currentText());
     911  settings.setValue("serialMountPoint",_serialMountPointLineEdit->text());
     912  settings.setValue("serialParity",    _serialParityComboBox->currentText());
     913  settings.setValue("serialPortName",  _serialPortNameLineEdit->text());
     914  settings.setValue("serialStopBits",  _serialStopBitsComboBox->currentText());
     915  settings.setValue("startTab",    aogroup->currentIndex());
    878916  settings.setValue("waitTime",    _waitTimeSpinBox->value());
    879   settings.setValue("obsRate",     _obsRateComboBox->currentText());
    880   settings.setValue("adviseFail",  _adviseFailSpinBox->value());
    881   settings.setValue("adviseReco",  _adviseRecoSpinBox->value());
    882   settings.setValue("makePause",   _makePauseCheckBox->checkState());
    883   settings.setValue("outFile",     _outFileLineEdit->text());
    884   settings.setValue("perfIntr",    _perfIntrComboBox->currentText());
    885   settings.setValue("outPort",     _outPortLineEdit->text());
    886   settings.setValue("outUPort",    _outUPortLineEdit->text());
    887   settings.setValue("outEphPort",  _outEphPortLineEdit->text());
    888   settings.setValue("corrPort",    _corrPortLineEdit->text());
    889   settings.setValue("corrTime",    _corrTimeSpinBox->value());
    890   settings.setValue("rnxPath",     _rnxPathLineEdit->text());
    891   settings.setValue("ephPath",     _ephPathLineEdit->text());
    892   settings.setValue("corrPath",    _corrPathLineEdit->text());
    893   settings.setValue("rnxScript",   _rnxScrpLineEdit->text());
    894   settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
    895   settings.setValue("onTheFlyInterval", _onTheFlyComboBox->currentText());
    896   settings.setValue("ephIntr",     _ephIntrComboBox->currentText());
    897   settings.setValue("corrIntr",    _corrIntrComboBox->currentText());
    898   settings.setValue("rnxSampl",    _rnxSamplSpinBox->value());
    899   settings.setValue("binSampl",    _binSamplSpinBox->value());
    900   settings.setValue("rnxSkel",     _rnxSkelLineEdit->text());
    901   settings.setValue("rnxAppend",   _rnxAppendCheckBox->checkState());
    902   settings.setValue("autoStart",   _autoStartCheckBox->checkState());
    903   settings.setValue("rnxV3",       _rnxV3CheckBox->checkState());
    904   settings.setValue("ephV3",       _ephV3CheckBox->checkState());
    905   settings.setValue("logFile",     _logFileLineEdit->text());
    906   settings.setValue("adviseScript",_adviseScriptLineEdit->text());
    907   settings.setValue("miscMount",   _miscMountLineEdit->text());
    908   settings.setValue("scanRTCM",    _scanRTCMCheckBox->checkState());
    909   settings.setValue("serialPortName",  _serialPortNameLineEdit->text());
    910   settings.setValue("serialMountPoint",_serialMountPointLineEdit->text());
    911   settings.setValue("serialBaudRate",  _serialBaudRateComboBox->currentText());
    912   settings.setValue("serialParity",    _serialParityComboBox->currentText());
    913   settings.setValue("serialDataBits",  _serialDataBitsComboBox->currentText());
    914   settings.setValue("serialStopBits",  _serialStopBitsComboBox->currentText());
    915   settings.setValue("serialAutoNMEA",  _serialAutoNMEACheckBox->checkState());
    916   settings.setValue("startTab",    aogroup->currentIndex());
    917  
    918917  QStringList mountPoints;
    919918
Note: See TracChangeset for help on using the changeset viewer.