Rework csvimportdialog to make room for features

This rewires things a bit to make room for new features coming.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2013-11-21 23:48:36 +01:00 committed by Dirk Hohndel
parent d4563e54a9
commit 1a0adea0cc
2 changed files with 6 additions and 14 deletions

View file

@ -24,6 +24,10 @@ CSVImportDialog::CSVImportDialog(QWidget *parent) :
ui->CSVSeparator->addItem("Tab");
ui->knownImports->setCurrentIndex(1);
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
connect(ui->CSVDepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
connect(ui->CSVTime, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
connect(ui->CSVTemperature, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
}
CSVImportDialog::~CSVImportDialog()
@ -73,17 +77,7 @@ void CSVImportDialog::on_knownImports_currentIndexChanged(int index)
ui->CSVTemperature->blockSignals(false);
}
void CSVImportDialog::on_CSVTime_valueChanged(int arg1)
{
unknownImports();
}
void CSVImportDialog::on_CSVDepth_valueChanged(int arg1)
{
unknownImports();
}
void CSVImportDialog::on_CSVTemperature_valueChanged(int arg1)
void CSVImportDialog::unknownImports(int arg1)
{
unknownImports();
}

View file

@ -22,10 +22,8 @@ private slots:
void on_buttonBox_accepted();
void on_CSVFileSelector_clicked();
void on_knownImports_currentIndexChanged(int index);
void on_CSVTime_valueChanged(int arg1);
void on_CSVDepth_valueChanged(int arg1);
void on_CSVTemperature_valueChanged(int arg1);
void on_CSVFile_textEdited();
void unknownImports(int);
private:
void unknownImports();