- Timestamp:
- Mar 30, 2011, 1:25:52 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3196 r3197 493 493 QPushButton* delUploadRowButton = new QPushButton("Del Row"); 494 494 QPushButton* setUploadTrafoButton = new QPushButton("Custom Trafo"); 495 _uploadIntrComboBox = new QComboBox; 496 _uploadSamplSpinBox = new QSpinBox; 497 _uploadIntrComboBox->setEditable(false); 498 _uploadIntrComboBox->addItems(QString("1 min,2 min,5 min,10 min,15 min,30 min,1 hour,1 day").split(",")); 499 ii = _uploadIntrComboBox->findText(settings.value("uploadIntr").toString()); 500 if (ii != -1) { 501 _uploadIntrComboBox->setCurrentIndex(ii); 502 } 503 _uploadSamplSpinBox = new QSpinBox; 504 _uploadSamplSpinBox->setMinimum(0); 505 _uploadSamplSpinBox->setMaximum(60); 506 _uploadSamplSpinBox->setSingleStep(5); 507 _uploadSamplSpinBox->setMaximumWidth(9*ww); 508 _uploadSamplSpinBox->setValue(settings.value("uploadSampl").toInt()); 509 _uploadSamplSpinBox->setSuffix(" sec"); 495 510 496 511 connect(_uploadTable, SIGNAL(itemSelectionChanged()), … … 966 981 connect(delUploadRowButton, SIGNAL(clicked()), this, SLOT(slotDelUploadRow())); 967 982 968 uploadHlpLayout->addWidget(setUploadTrafoButton, 0,3);983 uploadHlpLayout->addWidget(setUploadTrafoButton,1,1); 969 984 connect(setUploadTrafoButton, SIGNAL(clicked()), this, SLOT(slotSetUploadTrafo())); 985 986 uploadHlpLayout->addWidget(new QLabel("Interval"),0,3); 987 uploadHlpLayout->addWidget(_uploadIntrComboBox,0,4); 988 989 uploadHlpLayout->addWidget(new QLabel("Sampling"),1,3); 990 uploadHlpLayout->addWidget(_uploadSamplSpinBox,1,4); 991 970 992 971 993 QBoxLayout* uploadLayout = new QBoxLayout(QBoxLayout::TopToBottom); … … 1401 1423 settings.setValue("uploadMountpointsOut", ""); 1402 1424 } 1425 settings.setValue("uploadIntr", _uploadIntrComboBox->currentText()); 1426 settings.setValue("uploadSampl", _uploadSamplSpinBox->value()); 1403 1427 1404 1428 if (_caster) { -
trunk/BNC/bncwindow.h
r3193 r3197 204 204 205 205 QTableWidget* _uploadTable; 206 QComboBox* _uploadIntrComboBox; 207 QSpinBox* _uploadSamplSpinBox; 206 208 207 209 bncCaster* _caster;
Note:
See TracChangeset
for help on using the changeset viewer.