Changeset 846 in ntrip


Ignore:
Timestamp:
Apr 25, 2008, 10:28:47 AM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnswindow.cpp

    r845 r846  
    131131  _outFileLineEdit    = new QLineEdit(settings.value("outFile").toString());
    132132
    133   _rnxPathLineEdit = new QLineEdit;
     133  _rnxPathLineEdit = new QLineEdit(settings.value("rnxPath").toString());
    134134  _rnxIntrComboBox = new QComboBox;
     135  _rnxIntrComboBox->setMaximumWidth(9*ww);
     136  _rnxIntrComboBox->setEditable(false);
     137  _rnxIntrComboBox->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(","));
     138  int ii = _rnxIntrComboBox->findText(settings.value("rnxIntr").toString());
     139  if (ii != -1) {
     140    _rnxIntrComboBox->setCurrentIndex(ii);
     141  }
    135142  _rnxSamplSpinBox = new QSpinBox;
    136 
    137   _sp3PathLineEdit = new QLineEdit;
     143  _rnxSamplSpinBox->setMinimum(0);
     144  _rnxSamplSpinBox->setMaximum(60);
     145  _rnxSamplSpinBox->setSingleStep(5);
     146  _rnxSamplSpinBox->setMaximumWidth(9*ww);
     147  _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt());
     148  _rnxSamplSpinBox->setSuffix(" sec");
     149
     150  _sp3PathLineEdit = new QLineEdit(settings.value("sp3Path").toString());
    138151  _sp3IntrComboBox = new QComboBox;
     152  _sp3IntrComboBox->setMaximumWidth(9*ww);
     153  _sp3IntrComboBox->setEditable(false);
     154  _sp3IntrComboBox->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(","));
     155  ii = _sp3IntrComboBox->findText(settings.value("sp3Intr").toString());
     156  if (ii != -1) {
     157    _sp3IntrComboBox->setCurrentIndex(ii);
     158  }
    139159  _sp3SamplSpinBox = new QSpinBox;
     160  _sp3SamplSpinBox->setMinimum(0);
     161  _sp3SamplSpinBox->setMaximum(60);
     162  _sp3SamplSpinBox->setSingleStep(5);
     163  _sp3SamplSpinBox->setMaximumWidth(9*ww);
     164  _sp3SamplSpinBox->setValue(settings.value("sp3Sampl").toInt());
     165  _sp3SamplSpinBox->setSuffix(" sec");
    140166
    141167  // TabWidget
     
    329355  settings.setValue("password",   _passwordLineEdit->text());
    330356  settings.setValue("outFile",    _outFileLineEdit->text());
     357  settings.setValue("rnxPath",    _rnxPathLineEdit->text());
     358  settings.setValue("rnxIntr",    _rnxIntrComboBox->currentText());
     359  settings.setValue("rnxSampl",   _rnxSamplSpinBox->value());
     360  settings.setValue("sp3Path",    _sp3PathLineEdit->text());
     361  settings.setValue("sp3Intr",    _sp3IntrComboBox->currentText());
     362  settings.setValue("sp3Sampl",   _sp3SamplSpinBox->value());
    331363}
    332364
Note: See TracChangeset for help on using the changeset viewer.