Changeset 5696 in ntrip for trunk/BNC/src/PPP/pppwidgets.cpp


Ignore:
Timestamp:
Jul 30, 2014, 9:50:17 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppwidgets.cpp

    r5695 r5696  
    6767  _sigmaL1      = new QLineEdit();     _sigmaL1     -> setObjectName("PPP/sigmaL1");
    6868  _corrWaitTime = new QSpinBox();      _corrWaitTime-> setObjectName("PPP/corrWaitTime");
     69 
     70  readOptions();
     71}
     72
     73//
     74////////////////////////////////////////////////////////////////////////////
     75void t_pppWidgets::readOptions() {
     76
     77  bncSettings settings;
     78
     79  int ii = _dataSource->findText(settings.value(_dataSource->objectName()).toString());
     80  if (ii != -1) {
     81    _dataSource->setCurrentIndex(ii);
     82  }
     83  ii = _lcGPS->findText(settings.value(_lcGPS->objectName()).toString());
     84  if (ii != -1) {
     85    _lcGPS->setCurrentIndex(ii);
     86  }
     87  ii = _lcGLONASS->findText(settings.value(_lcGLONASS->objectName()).toString());
     88  if (ii != -1) {
     89    _lcGLONASS->setCurrentIndex(ii);
     90  }
     91  ii = _lcGalileo->findText(settings.value(_lcGalileo->objectName()).toString());
     92  if (ii != -1) {
     93    _lcGalileo->setCurrentIndex(ii);
     94  }
     95
     96  _rinexObs ->setFileName(settings.value(_rinexObs ->objectName()).toString());
     97  _rinexNav ->setFileName(settings.value(_rinexNav ->objectName()).toString());
     98  _corrFile ->setFileName(settings.value(_corrFile ->objectName()).toString());
     99  _crdFile  ->setFileName(settings.value(_crdFile  ->objectName()).toString());
     100  _antexFile->setFileName(settings.value(_antexFile->objectName()).toString());
     101
     102  _corrHostPort->setText(settings.value(_corrHostPort->objectName()).toString());
     103  _logFile     ->setText(settings.value(_logFile     ->objectName()).toString());
     104  _nmeaFile    ->setText(settings.value(_nmeaFile    ->objectName()).toString());
     105  _nmeaPort    ->setText(settings.value(_nmeaPort    ->objectName()).toString());
     106  _sigmaC1     ->setText(settings.value(_sigmaC1     ->objectName()).toString());
     107  _sigmaL1     ->setText(settings.value(_sigmaL1     ->objectName()).toString());
     108
     109  _corrWaitTime->setValue(settings.value(_corrWaitTime->objectName()).toInt());
    69110}
    70111
Note: See TracChangeset for help on using the changeset viewer.