summaryrefslogtreecommitdiffstats
path: root/qt-ui/csvimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-11-21 23:48:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 15:54:28 -0800
commit26656310aba5f5de5c873603f8e74d56283d12a9 (patch)
treeeff92577e6a5a04978c37ca4176c824af21ad3b6 /qt-ui/csvimportdialog.cpp
parent5eccd73a306298616da122ba4e653d4c8f391df8 (diff)
downloadsubsurface-26656310aba5f5de5c873603f8e74d56283d12a9.tar.gz
Add optional support for stopdepth import from csv
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/csvimportdialog.cpp')
-rw-r--r--qt-ui/csvimportdialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/qt-ui/csvimportdialog.cpp b/qt-ui/csvimportdialog.cpp
index 281aa66f6..91b9ddd40 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, 17, "Tab"},
- {"XP5", 0, 1, 9, -1, -1, "Tab"},
+ {"APD Log Viewer", 0, 1, 15, 6, 17, 18, "Tab"},
+ {"XP5", 0, 1, 9, -1, -1, -1, "Tab"},
{NULL,}
};
@@ -33,6 +33,8 @@ CSVImportDialog::CSVImportDialog(QWidget *parent) :
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)));
+ connect(ui->CSVstopdepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int)));
+ connect(ui->stopdepthCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool)));
}
CSVImportDialog::~CSVImportDialog()
@@ -49,6 +51,7 @@ void CSVImportDialog::on_buttonBox_accepted()
ui->CSVDepth->value(), VALUE_IF_CHECKED(CSVTemperature),
VALUE_IF_CHECKED(CSVpo2),
VALUE_IF_CHECKED(CSVcns),
+ VALUE_IF_CHECKED(CSVstopdepth),
&error);
if (error != NULL) {
@@ -92,6 +95,7 @@ void CSVImportDialog::on_knownImports_currentIndexChanged(int index)
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);
+ SET_VALUE_AND_CHECKBOX(CSVstopdepth, stopdepthCheckBox, CSVApps[index].stopdepth);
}
void CSVImportDialog::unknownImports(bool arg1)