2 #include "ui_abscissainterpolationdialog.h" 9 dataset_ = workspace_->GetDataset(dataset_key);
11 ui->orderSpinBox->setVisible(
false);
12 ui->orderLabel->setVisible(
false);
13 ui->windowSpinBox->setVisible(
false);
14 ui->windowLabel->setVisible(
false);
16 ui->datasetComboBox->setVisible(
true);
17 ui->datasetLabel->setVisible(
true);
18 ui->fileLabel->setVisible(
false);
19 ui->browsePushButton->setVisible(
false);
20 ui->filenameLineEdit->setVisible(
false);
22 QStringList dataset_names = workspace_->dataset_names();
23 ui->datasetComboBox->addItems(dataset_names);
33 void AbscissaInterpolationDialog::on_buttonBox_accepted()
93 void AbscissaInterpolationDialog::on_sourceComboBox_currentIndexChanged(
const QString &arg1)
95 if (arg1 ==
"Dataset"){
96 ui->datasetComboBox->setVisible(
true);
97 ui->datasetLabel->setVisible(
true);
98 ui->fileLabel->setVisible(
false);
99 ui->browsePushButton->setVisible(
false);
100 ui->filenameLineEdit->setVisible(
false);
104 ui->datasetComboBox->setVisible(
false);
105 ui->datasetLabel->setVisible(
false);
106 ui->fileLabel->setVisible(
true);
107 ui->browsePushButton->setVisible(
true);
108 ui->filenameLineEdit->setVisible(
true);
112 void AbscissaInterpolationDialog::on_methodComboBox_currentIndexChanged(
const QString &arg1)
114 if (arg1 ==
"Two-Point Linear"){
115 ui->orderSpinBox->setVisible(
false);
116 ui->orderLabel->setVisible(
false);
117 ui->windowSpinBox->setVisible(
false);
118 ui->windowLabel->setVisible(
false);
120 if (arg1 ==
"Spline"){
121 ui->orderSpinBox->setVisible(
true);
122 ui->orderLabel->setVisible(
true);
123 ui->windowSpinBox->setVisible(
true);
124 ui->windowLabel->setVisible(
true);
AbscissaInterpolationDialog(QWidget *parent, QSharedPointer< VespucciWorkspace > ws, const QString &dataset_key)
~AbscissaInterpolationDialog()