- Timestamp:
- Oct 8, 2015, 12:20:28 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsettings.cpp
r7418 r7488 235 235 //////////////////////////////////////////////////////////////////////////// 236 236 void bncSettings::setValue_p(const QString &key, const QVariant& value) { 237 // qDebug() << "key: " << key << " value: " << value; 237 238 BNC_CORE->_settings[key] = value; 238 239 } -
trunk/BNC/src/bncwindow.cpp
r7479 r7488 894 894 pppLayout1->addWidget(new QLabel(" SNX TRO file"), ir, 3); 895 895 pppLayout1->addWidget(_pppWidgets._snxtroFile, ir, 4); 896 pppLayout1->addWidget(new QLabel(" Sampling"), ir, 5); 896 ++ir; 897 pppLayout1->addWidget(new QLabel(" SNX Interval"), ir, 3); 898 pppLayout1->addWidget(_pppWidgets._snxtroIntr, ir, 4); 899 pppLayout1->addWidget(new QLabel("Sampling"), ir, 5); 897 900 pppLayout1->addWidget(_pppWidgets._snxtroSampl, ir, 6); 898 901 ++ir; -
trunk/BNC/src/pppWidgets.cpp
r7261 r7488 35 35 * Created: 29-Jul-2014 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 52 52 t_pppWidgets::t_pppWidgets() { 53 53 54 _dataSource = new QComboBox(); _dataSource ->setObjectName("PPP/dataSource"); _widgets << _dataSource; 55 _rinexObs = new qtFileChooser(); _rinexObs ->setObjectName("PPP/rinexObs"); _widgets << _rinexObs; 56 _rinexNav = new qtFileChooser(); _rinexNav ->setObjectName("PPP/rinexNav"); _widgets << _rinexNav; 54 _dataSource = new QComboBox(); _dataSource ->setObjectName("PPP/dataSource"); _widgets << _dataSource; 55 _rinexObs = new qtFileChooser(); _rinexObs ->setObjectName("PPP/rinexObs"); _widgets << _rinexObs; 56 _rinexNav = new qtFileChooser(); _rinexNav ->setObjectName("PPP/rinexNav"); _widgets << _rinexNav; 57 57 _corrMount = new QLineEdit(); _corrMount ->setObjectName("PPP/corrMount"); _widgets << _corrMount; 58 _corrFile = new qtFileChooser(); _corrFile ->setObjectName("PPP/corrFile"); _widgets << _corrFile; 59 _crdFile = new qtFileChooser(); _crdFile ->setObjectName("PPP/crdFile"); _widgets << _crdFile; 60 _antexFile = new qtFileChooser(); _antexFile ->setObjectName("PPP/antexFile"); _widgets << _antexFile; 61 _logFile = new QLineEdit(); _logFile ->setObjectName("PPP/logFilePPP"); _widgets << _logFile; 62 _nmeaFile = new QLineEdit(); _nmeaFile ->setObjectName("PPP/nmeaFile"); _widgets << _nmeaFile; 58 _corrFile = new qtFileChooser(); _corrFile ->setObjectName("PPP/corrFile"); _widgets << _corrFile; 59 _crdFile = new qtFileChooser(); _crdFile ->setObjectName("PPP/crdFile"); _widgets << _crdFile; 60 _antexFile = new qtFileChooser(); _antexFile ->setObjectName("PPP/antexFile"); _widgets << _antexFile; 61 _logFile = new QLineEdit(); _logFile ->setObjectName("PPP/logFilePPP"); _widgets << _logFile; 62 _nmeaFile = new QLineEdit(); _nmeaFile ->setObjectName("PPP/nmeaFile"); _widgets << _nmeaFile; 63 63 _snxtroFile = new QLineEdit(); _snxtroFile ->setObjectName("PPP/snxtroFile"); _widgets << _snxtroFile; 64 64 _snxtroSampl = new QSpinBox(); _snxtroSampl ->setObjectName("PPP/snxtroSampl"); _widgets << _snxtroSampl; 65 _staTable = new QTableWidget(); _staTable ->setObjectName("PPP/staTable"); _widgets << _staTable; 66 _lcGPS = new QComboBox(); _lcGPS ->setObjectName("PPP/lcGPS"); _widgets << _lcGPS; 67 _lcGLONASS = new QComboBox(); _lcGLONASS ->setObjectName("PPP/lcGLONASS"); _widgets << _lcGLONASS; 68 _lcGalileo = new QComboBox(); _lcGalileo ->setObjectName("PPP/lcGalileo"); _widgets << _lcGalileo; 65 _snxtroIntr = new QComboBox(); _snxtroIntr ->setObjectName("PPP/_snxtroIntr"); _widgets << _snxtroIntr; 66 _staTable = new QTableWidget(); _staTable ->setObjectName("PPP/staTable"); _widgets << _staTable; 67 _lcGPS = new QComboBox(); _lcGPS ->setObjectName("PPP/lcGPS"); _widgets << _lcGPS; 68 _lcGLONASS = new QComboBox(); _lcGLONASS ->setObjectName("PPP/lcGLONASS"); _widgets << _lcGLONASS; 69 _lcGalileo = new QComboBox(); _lcGalileo ->setObjectName("PPP/lcGalileo"); _widgets << _lcGalileo; 69 70 _lcBDS = new QComboBox(); _lcBDS ->setObjectName("PPP/lcBDS"); _widgets << _lcBDS; 70 _sigmaC1 = new QLineEdit(); _sigmaC1 ->setObjectName("PPP/sigmaC1"); _widgets << _sigmaC1; 71 _sigmaL1 = new QLineEdit(); _sigmaL1 ->setObjectName("PPP/sigmaL1"); _widgets << _sigmaL1; 72 _maxResC1 = new QLineEdit(); _maxResC1 ->setObjectName("PPP/maxResC1"); _widgets << _maxResC1; 73 _maxResL1 = new QLineEdit(); _maxResL1 ->setObjectName("PPP/maxResL1"); _widgets << _maxResL1; 71 _sigmaC1 = new QLineEdit(); _sigmaC1 ->setObjectName("PPP/sigmaC1"); _widgets << _sigmaC1; 72 _sigmaL1 = new QLineEdit(); _sigmaL1 ->setObjectName("PPP/sigmaL1"); _widgets << _sigmaL1; 73 _maxResC1 = new QLineEdit(); _maxResC1 ->setObjectName("PPP/maxResC1"); _widgets << _maxResC1; 74 _maxResL1 = new QLineEdit(); _maxResL1 ->setObjectName("PPP/maxResL1"); _widgets << _maxResL1; 74 75 _minObs = new QSpinBox(); _minObs ->setObjectName("PPP/minObs"); _widgets << _minObs; 75 76 _minEle = new QSpinBox(); _minEle ->setObjectName("PPP/minEle"); _widgets << _minEle; … … 98 99 connect(_dataSource, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets())); 99 100 100 connect(_snxtroFile, SIGNAL(textChanged(const QString &)), 101 connect(_snxtroFile, SIGNAL(textChanged(const QString &)), 101 102 this, SLOT(slotPPPTextChanged())); 102 103 … … 135 136 _snxtroSampl->setSingleStep(30); 136 137 _snxtroSampl->setSuffix(" sec"); 138 139 _snxtroIntr->setEditable(false); 140 _snxtroIntr->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(",")); 137 141 138 142 _minObs->setMinimum(4); … … 159 163 _staTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 160 164 _staTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); 161 165 162 166 connect(_addStaButton, SIGNAL(clicked()), this, SLOT(slotAddStation())); 163 167 connect(_delStaButton, SIGNAL(clicked()), this, SLOT(slotDelStation())); … … 199 203 } 200 204 201 // 205 // 202 206 //////////////////////////////////////////////////////////////////////////// 203 207 void t_pppWidgets::readOptions() { … … 226 230 if (ii != -1) { 227 231 _lcBDS->setCurrentIndex(ii); 232 } 233 ii = _snxtroIntr->findText(settings.value(_snxtroIntr->objectName()).toString()); 234 if (ii != -1) { 235 _snxtroIntr->setCurrentIndex(ii); 228 236 } 229 237 … … 267 275 _maxResL1->setText(settings.value(_maxResL1->objectName()).toString()); 268 276 } 269 else { 277 else { 270 278 _maxResL1->setText("0.03"); 271 279 } … … 324 332 } 325 333 326 // 334 // 327 335 //////////////////////////////////////////////////////////////////////////// 328 336 void t_pppWidgets::saveOptions() { … … 341 349 settings.setValue(_snxtroFile ->objectName(), _snxtroFile ->text()); 342 350 settings.setValue(_snxtroSampl ->objectName(), _snxtroSampl ->value()); 351 settings.setValue(_snxtroIntr ->objectName(), _snxtroIntr ->currentText()); 343 352 settings.setValue(_lcGPS ->objectName(), _lcGPS ->currentText()); 344 353 settings.setValue(_lcGLONASS ->objectName(), _lcGLONASS ->currentText()); … … 379 388 } 380 389 381 // 390 // 382 391 //////////////////////////////////////////////////////////////////////////// 383 392 void t_pppWidgets::slotEnableWidgets() { … … 397 406 398 407 if (realTime) { 399 _rinexObs->setEnabled(false); 400 _rinexNav->setEnabled(false); 401 _corrFile->setEnabled(false); 408 _rinexObs->setEnabled(false); 409 _rinexNav->setEnabled(false); 410 _corrFile->setEnabled(false); 402 411 } 403 412 else if (rinexFiles) { … … 408 417 409 418 if ( _snxtroFile->text() != "" && !allDisabled) { 410 _snxtroSampl->setEnabled(true); 419 _snxtroSampl->setEnabled(true); 420 _snxtroIntr ->setEnabled(true); 411 421 } 412 422 else { 413 _snxtroSampl->setEnabled(false); 423 _snxtroSampl->setEnabled(false); 424 _snxtroIntr ->setEnabled(false); 414 425 } 415 426 … … 428 439 } 429 440 430 // 441 // 431 442 //////////////////////////////////////////////////////////////////////////// 432 443 void t_pppWidgets::slotAddStation() { … … 447 458 } 448 459 449 // 460 // 450 461 //////////////////////////////////////////////////////////////////////////// 451 462 void t_pppWidgets::slotDelStation() { … … 477 488 // --------------------- 478 489 if (sender() == 0 || sender() == _snxtroFile) { 479 if ( _snxtroFile->text() != "" ) { 480 _snxtroSampl->setEnabled(true); 490 if ( _snxtroFile->text() != "" ) { 491 _snxtroSampl->setEnabled(true); 492 _snxtroIntr->setEnabled(true); 481 493 _snxtroSampl->setPalette(paletteWhite); 494 _snxtroIntr->setPalette(paletteWhite); 482 495 } 483 496 else { 484 _snxtroSampl->setEnabled(false); 497 _snxtroSampl->setEnabled(false); 498 _snxtroIntr->setEnabled(false); 485 499 _snxtroSampl->setPalette(paletteGray); 486 } 487 } 488 } 500 _snxtroIntr->setPalette(paletteGray); 501 } 502 } 503 } -
trunk/BNC/src/pppWidgets.h
r6883 r7488 40 40 qtFileChooser* _rinexObs; 41 41 qtFileChooser* _rinexNav; 42 QLineEdit* _corrMount; 43 qtFileChooser* _corrFile; 42 QLineEdit* _corrMount; 43 qtFileChooser* _corrFile; 44 44 qtFileChooser* _crdFile; 45 45 qtFileChooser* _antexFile; … … 48 48 QLineEdit* _snxtroFile; 49 49 QSpinBox* _snxtroSampl; 50 QComboBox* _snxtroIntr; 50 51 QTableWidget* _staTable; 51 52 QComboBox* _lcGPS; … … 77 78 78 79 private slots: 79 void slotEnableWidgets(); 80 void slotEnableWidgets(); 80 81 void slotAddStation(); 81 82 void slotDelStation();
Note:
See TracChangeset
for help on using the changeset viewer.