Changeset 4179 in ntrip
- Timestamp:
- May 16, 2012, 9:40:10 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r4177 r4179 498 498 _cmbMaxresLineEdit = new QLineEdit(settings.value("cmbMaxres").toString()); 499 499 500 _cmbSamplSpinBox = new QSpinBox; 501 _cmbSamplSpinBox->setMinimum(0); 502 _cmbSamplSpinBox->setMaximum(60); 503 _cmbSamplSpinBox->setSingleStep(5); 504 _cmbSamplSpinBox->setMaximumWidth(9*ww); 505 _cmbSamplSpinBox->setValue(settings.value("cmbSampl").toInt()); 506 _cmbSamplSpinBox->setSuffix(" sec"); 507 500 508 QPushButton* addCmbRowButton = new QPushButton("Add Row"); 501 509 QPushButton* delCmbRowButton = new QPushButton("Delete"); … … 517 525 _cmbMaxresLineEdit->setStyleSheet("background-color: white"); 518 526 _cmbMaxresLineEdit->setEnabled(true); 527 _cmbSamplSpinBox->setEnabled(true); 519 528 } 520 529 else { … … 522 531 _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray"); 523 532 _cmbMaxresLineEdit->setEnabled(false); 533 _cmbSamplSpinBox->setEnabled(false); 524 534 } 525 535 … … 1100 1110 cmbLayout->addWidget(new QLabel("Maximal Residuum"), 3, 6, Qt::AlignRight); 1101 1111 cmbLayout->addWidget(_cmbMaxresLineEdit, 3, 7, Qt::AlignRight); 1102 cmbLayout->addWidget(new QLabel(" "),4, 0);1103 cmbLayout->addWidget( new QLabel(" "),5, 0);1112 cmbLayout->addWidget(new QLabel("Sampling"), 4, 0); 1113 cmbLayout->addWidget(_cmbSamplSpinBox, 5, 0); 1104 1114 cmbLayout->addWidget(new QLabel(" "), 6, 0); 1105 1115 … … 1733 1743 settings.setValue("cmbMethod", _cmbMethodComboBox->currentText()); 1734 1744 settings.setValue("cmbMaxres", _cmbMaxresLineEdit->text()); 1745 settings.setValue("cmbSampl", _cmbSamplSpinBox->value()); 1735 1746 // Upload (clk) 1736 1747 if (!uploadMountpointsOut.isEmpty()) { … … 2211 2222 _cmbMaxresLineEdit->setStyleSheet("background-color: white"); 2212 2223 _cmbMaxresLineEdit->setEnabled(true); 2224 _cmbSamplSpinBox->setEnabled(true); 2213 2225 } 2214 2226 else { … … 2216 2228 _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray"); 2217 2229 _cmbMaxresLineEdit->setEnabled(false); 2230 _cmbSamplSpinBox->setEnabled(false); 2218 2231 } 2219 2232 } … … 2362 2375 _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray"); 2363 2376 _cmbMaxresLineEdit->setEnabled(false); 2377 _cmbSamplSpinBox->setEnabled(false); 2364 2378 } 2365 2379 } -
trunk/BNC/bncwindow.h
r4174 r4179 230 230 QLineEdit* _cmbMaxresLineEdit; 231 231 QComboBox* _cmbMethodComboBox; 232 QSpinBox* _cmbSamplSpinBox; 232 233 233 234 QTableWidget* _uploadTable;
Note:
See TracChangeset
for help on using the changeset viewer.