Changeset 8403 in ntrip for trunk/BNC/src/pppWidgets.cpp


Ignore:
Timestamp:
Jul 5, 2018, 12:51:40 PM (6 years ago)
Author:
stuerze
Message:

additional changes to allow 10 Hz observation data processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/pppWidgets.cpp

    r8252 r8403  
    7272  _nmeaPath     = new QLineEdit();     _nmeaPath    ->setObjectName("PPP/nmeaPath");     _widgets << _nmeaPath;
    7373  _snxtroPath   = new QLineEdit();     _snxtroPath  ->setObjectName("PPP/snxtroPath");   _widgets << _snxtroPath;
    74   _snxtroSampl  = new QSpinBox();      _snxtroSampl ->setObjectName("PPP/snxtroSampl");  _widgets << _snxtroSampl;
     74  _snxtroSampl  = new QComboBox();      _snxtroSampl->setObjectName("PPP/snxtroSampl");  _widgets << _snxtroSampl;
    7575  _snxtroIntr   = new QComboBox();     _snxtroIntr  ->setObjectName("PPP/snxtroIntr");   _widgets << _snxtroIntr;
    7676  _snxtroAc     = new QLineEdit();     _snxtroAc    ->setObjectName("PPP/snxtroAc");     _widgets << _snxtroAc;
     
    151151#endif
    152152
    153   _snxtroSampl->setMinimum(0);
    154   _snxtroSampl->setMaximum(300);
    155   _snxtroSampl->setSingleStep(30);
    156   _snxtroSampl->setSuffix(" sec");
     153  _snxtroSampl->setEditable(false);
     154  _snxtroSampl->addItems(QString("1 sec,5 sec,10 sec,30 sec,60 sec,300 sec").split(","));
    157155
    158156  _snxtroIntr->setEditable(false);
     
    368366  _minEle->setValue(settings.value(_minEle->objectName()).toInt());
    369367  _corrWaitTime->setValue(settings.value(_corrWaitTime->objectName()).toInt());
    370   _snxtroSampl->setValue(settings.value(_snxtroSampl->objectName()).toInt());
     368
     369
     370  ii = _snxtroSampl->findText(settings.value(_snxtroSampl->objectName()).toString());
     371  if (ii != -1) {
     372    _snxtroSampl->setCurrentIndex(ii);
     373  }
    371374
    372375  // Table with stations
     
    421424  settings.setValue(_nmeaPath    ->objectName(), _nmeaPath    ->text());
    422425  settings.setValue(_snxtroPath  ->objectName(), _snxtroPath  ->text());
    423   settings.setValue(_snxtroSampl ->objectName(), _snxtroSampl ->value());
     426  settings.setValue(_snxtroSampl ->objectName(), _snxtroSampl ->currentText());
    424427  settings.setValue(_snxtroIntr  ->objectName(), _snxtroIntr  ->currentText());
    425428  settings.setValue(_snxtroAc    ->objectName(), _snxtroAc    ->text());
Note: See TracChangeset for help on using the changeset viewer.