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


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

Legend:

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

    r5700 r5701  
    5454  _rinexObs     = new qtFileChooser(); _rinexObs    ->setObjectName("PPP/rinexObs");     _widgets << _rinexObs;   
    5555  _rinexNav     = new qtFileChooser(); _rinexNav    ->setObjectName("PPP/rinexNav");     _widgets << _rinexNav;   
    56   _corrHostPort = new QLineEdit();     _corrHostPort->setObjectName("PPP/corrHostPort"); _widgets << _corrHostPort;
     56  _corrMount    = new QLineEdit();     _corrMount   ->setObjectName("PPP/corrMount");    _widgets << _corrMount;
    5757  _corrFile     = new qtFileChooser(); _corrFile    ->setObjectName("PPP/corrFile");     _widgets << _corrFile;   
    5858  _crdFile      = new qtFileChooser(); _crdFile     ->setObjectName("PPP/crdFile");      _widgets << _crdFile;     
     
    120120  _antexFile->setFileName(settings.value(_antexFile->objectName()).toString());
    121121
    122   _corrHostPort->setText(settings.value(_corrHostPort->objectName()).toString());
    123   _logFile     ->setText(settings.value(_logFile     ->objectName()).toString());
    124   _nmeaFile    ->setText(settings.value(_nmeaFile    ->objectName()).toString());
    125   _nmeaPort    ->setText(settings.value(_nmeaPort    ->objectName()).toString());
    126   _sigmaC1     ->setText(settings.value(_sigmaC1     ->objectName()).toString());
    127   _sigmaL1     ->setText(settings.value(_sigmaL1     ->objectName()).toString());
     122  _corrMount->setText(settings.value(_corrMount->objectName()).toString());
     123  _logFile  ->setText(settings.value(_logFile  ->objectName()).toString());
     124  _nmeaFile ->setText(settings.value(_nmeaFile ->objectName()).toString());
     125  _nmeaPort ->setText(settings.value(_nmeaPort ->objectName()).toString());
     126  _sigmaC1  ->setText(settings.value(_sigmaC1  ->objectName()).toString());
     127  _sigmaL1  ->setText(settings.value(_sigmaL1  ->objectName()).toString());
    128128
    129129  _corrWaitTime->setValue(settings.value(_corrWaitTime->objectName()).toInt());
     
    139139  settings.setValue(_rinexObs    ->objectName(), _rinexObs    ->fileName());
    140140  settings.setValue(_rinexNav    ->objectName(), _rinexNav    ->fileName());
    141   settings.setValue(_corrHostPort->objectName(), _corrHostPort->text());
     141  settings.setValue(_corrMount   ->objectName(), _corrMount   ->text());
    142142  settings.setValue(_corrFile    ->objectName(), _corrFile    ->fileName());
    143143  settings.setValue(_crdFile     ->objectName(), _crdFile     ->fileName());
     
    164164  bool allDisabled = _dataSource->currentText() == "no";
    165165  bool realTime    = _dataSource->currentText() == "Real-Time Streams";
     166  bool rinexFiles  = _dataSource->currentText() == "RINEX Files";
    166167
    167168  QListIterator<QWidget*> it(_widgets);
     
    169170    QWidget* widget = it.next();
    170171    widget->setEnabled(!allDisabled);
     172  }
     173
     174  if      (realTime) {
     175    _rinexObs->setEnabled(false);   
     176    _rinexNav->setEnabled(false);   
     177    _corrFile->setEnabled(false);   
     178  }
     179  else if (rinexFiles) {
     180    _corrMount->setEnabled(false);
    171181  }
    172182
Note: See TracChangeset for help on using the changeset viewer.