Changeset 3197 in ntrip


Ignore:
Timestamp:
Mar 30, 2011, 1:25:52 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3196 r3197  
    493493  QPushButton* delUploadRowButton = new QPushButton("Del Row");
    494494  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");
    495510
    496511  connect(_uploadTable, SIGNAL(itemSelectionChanged()),
     
    966981  connect(delUploadRowButton, SIGNAL(clicked()), this, SLOT(slotDelUploadRow()));
    967982
    968   uploadHlpLayout->addWidget(setUploadTrafoButton,0,3);
     983  uploadHlpLayout->addWidget(setUploadTrafoButton,1,1);
    969984  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
    970992
    971993  QBoxLayout* uploadLayout = new QBoxLayout(QBoxLayout::TopToBottom);
     
    14011423    settings.setValue("uploadMountpointsOut", "");
    14021424  }
     1425  settings.setValue("uploadIntr",     _uploadIntrComboBox->currentText());
     1426  settings.setValue("uploadSampl",    _uploadSamplSpinBox->value());
    14031427
    14041428  if (_caster) {
  • trunk/BNC/bncwindow.h

    r3193 r3197  
    204204
    205205    QTableWidget* _uploadTable;
     206    QComboBox*    _uploadIntrComboBox;
     207    QSpinBox*     _uploadSamplSpinBox;
    206208
    207209    bncCaster* _caster;
Note: See TracChangeset for help on using the changeset viewer.