18 #include "ui_discreterangegui.h" 35 ui->rangeLabel->setText(text);
40 ui->rangeUnits->setText(units);
45 ui->rangeCombo->blockSignals(
true);
46 ui->rangeCombo->addItem(itemStr);
48 ui->rangeCombo->blockSignals(
false);
64 ui->rangeCombo->blockSignals(
true);
65 ui->rangeCombo->setCurrentIndex(index);
66 ui->rangeCombo->blockSignals(
false);
void setLabel(const QString &text)
virtual double getCurrentValue()
void valueChanged(double value)
virtual void setValue(double value)
void addItem(const QString &itemStr, double itemValue)
void setUnits(const QString &units)
DiscreteRangeGUI(QWidget *parent=0)
Ui::DiscreteRangeGUI * ui
virtual ~DiscreteRangeGUI()
std::vector< double > itemValues
void on_rangeCombo_currentIndexChanged(int index)