2013-12-29 16:11:20 +00:00
|
|
|
#ifndef DIVELOGIMPORTDIALOG_H
|
|
|
|
#define DIVELOGIMPORTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2014-06-26 17:01:31 +00:00
|
|
|
|
2013-12-29 16:11:20 +00:00
|
|
|
#include "../dive.h"
|
|
|
|
#include "../divelist.h"
|
|
|
|
|
2014-05-22 18:40:22 +00:00
|
|
|
namespace Ui {
|
2014-02-28 04:09:57 +00:00
|
|
|
class DiveLogImportDialog;
|
2013-12-29 16:11:20 +00:00
|
|
|
}
|
|
|
|
|
2014-02-28 04:09:57 +00:00
|
|
|
class DiveLogImportDialog : public QDialog {
|
2013-12-29 16:11:20 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2014-01-07 20:01:28 +00:00
|
|
|
explicit DiveLogImportDialog(QStringList *fn, QWidget *parent = 0);
|
2013-12-29 16:11:20 +00:00
|
|
|
~DiveLogImportDialog();
|
|
|
|
|
2014-02-28 04:09:57 +00:00
|
|
|
private
|
|
|
|
slots:
|
2013-12-29 16:11:20 +00:00
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_knownImports_currentIndexChanged(int index);
|
|
|
|
void unknownImports();
|
|
|
|
|
2014-12-25 13:25:29 +00:00
|
|
|
void manualDiveNumber();
|
|
|
|
void manualDate();
|
|
|
|
void manualTime();
|
|
|
|
void manualLocation();
|
|
|
|
void manualGps();
|
|
|
|
void manualMaxDepth();
|
|
|
|
void manualMeanDepth();
|
|
|
|
void manualBuddy();
|
|
|
|
void manualNotes();
|
|
|
|
void manualTags();
|
|
|
|
void manualWeight();
|
|
|
|
void manualDuration();
|
|
|
|
void manualCylinderSize();
|
|
|
|
void manualStartPressure();
|
|
|
|
void manualEndPressure();
|
|
|
|
void manualO2();
|
|
|
|
void manualHe();
|
|
|
|
void manualAirTemp();
|
|
|
|
void manualWaterTemp();
|
|
|
|
|
2014-01-14 17:58:20 +00:00
|
|
|
private:
|
2013-12-29 16:11:20 +00:00
|
|
|
bool selector;
|
2014-01-07 20:01:28 +00:00
|
|
|
QStringList fileNames;
|
2013-12-29 16:11:20 +00:00
|
|
|
Ui::DiveLogImportDialog *ui;
|
2014-01-16 20:50:16 +00:00
|
|
|
QList<int> specialCSV;
|
2014-12-25 13:25:29 +00:00
|
|
|
int column;
|
2013-12-29 16:11:20 +00:00
|
|
|
|
|
|
|
struct CSVAppConfig {
|
|
|
|
QString name;
|
|
|
|
int time;
|
|
|
|
int depth;
|
|
|
|
int temperature;
|
|
|
|
int po2;
|
|
|
|
int cns;
|
2014-07-09 20:13:37 +00:00
|
|
|
int ndl;
|
2014-07-09 20:13:38 +00:00
|
|
|
int tts;
|
2013-12-29 16:11:20 +00:00
|
|
|
int stopdepth;
|
2014-07-10 18:54:18 +00:00
|
|
|
int pressure;
|
2013-12-29 16:11:20 +00:00
|
|
|
QString separator;
|
|
|
|
};
|
|
|
|
|
2014-12-26 14:11:38 +00:00
|
|
|
#define CSVAPPS 7
|
2013-12-29 16:11:20 +00:00
|
|
|
static const CSVAppConfig CSVApps[CSVAPPS];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIVELOGIMPORTDIALOG_H
|