From 5eccd73a306298616da122ba4e653d4c8f391df8 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 21 Nov 2013 23:48:41 +0100 Subject: Add optional support for cns import from csv files Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/csvimportdialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'qt-ui/csvimportdialog.cpp') diff --git a/qt-ui/csvimportdialog.cpp b/qt-ui/csvimportdialog.cpp index 8a213e055..281aa66f6 100644 --- a/qt-ui/csvimportdialog.cpp +++ b/qt-ui/csvimportdialog.cpp @@ -6,8 +6,8 @@ const CSVImportDialog::CSVAppConfig CSVImportDialog::CSVApps[CSVAPPS] = { {"", }, - {"APD Log Viewer", 0, 1, 15, 6, "Tab"}, - {"XP5", 0, 1, 9, -1, "Tab"}, + {"APD Log Viewer", 0, 1, 15, 6, 17, "Tab"}, + {"XP5", 0, 1, 9, -1, -1, "Tab"}, {NULL,} }; @@ -31,6 +31,8 @@ CSVImportDialog::CSVImportDialog(QWidget *parent) : connect(ui->temperatureCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); connect(ui->CSVpo2, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); connect(ui->po2CheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); + connect(ui->CSVcns, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); + connect(ui->cnsCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); } CSVImportDialog::~CSVImportDialog() @@ -46,6 +48,7 @@ void CSVImportDialog::on_buttonBox_accepted() parse_csv_file(ui->CSVFile->text().toUtf8().data(), ui->CSVTime->value(), ui->CSVDepth->value(), VALUE_IF_CHECKED(CSVTemperature), VALUE_IF_CHECKED(CSVpo2), + VALUE_IF_CHECKED(CSVcns), &error); if (error != NULL) { @@ -88,6 +91,7 @@ void CSVImportDialog::on_knownImports_currentIndexChanged(int index) ui->CSVDepth->blockSignals(false); SET_VALUE_AND_CHECKBOX(CSVTemperature, temperatureCheckBox, CSVApps[index].temperature); SET_VALUE_AND_CHECKBOX(CSVpo2, po2CheckBox, CSVApps[index].po2); + SET_VALUE_AND_CHECKBOX(CSVcns, cnsCheckBox, CSVApps[index].cns); } void CSVImportDialog::unknownImports(bool arg1) -- cgit v1.2.3-70-g09d2