mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show import dialog only when needed for CSV config
We do not need any import dialog when importing normal XML based divelogs. With this they are imported directly after file selection dialog. However, when CSV files are detected in the import list, the configuration dialog is displayed and applied for them. (CSV files are detected by file extension.) Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
58f6a01a22
commit
88fdf1b138
4 changed files with 46 additions and 155 deletions
|
@ -15,24 +15,20 @@ class DiveLogImportDialog : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DiveLogImportDialog(QWidget *parent = 0);
|
||||
explicit DiveLogImportDialog(QStringList *fn, QWidget *parent = 0);
|
||||
~DiveLogImportDialog();
|
||||
|
||||
private slots:
|
||||
void on_buttonBox_accepted();
|
||||
void on_CSVFileSelector_clicked();
|
||||
void on_knownImports_currentIndexChanged(int index);
|
||||
void on_CSVFile_textEdited();
|
||||
void unknownImports(int);
|
||||
void unknownImports(bool);
|
||||
|
||||
void on_DiveLogFileSelector_clicked();
|
||||
void on_DiveLogFile_editingFinished();
|
||||
|
||||
private:
|
||||
void unknownImports();
|
||||
|
||||
bool selector;
|
||||
QStringList fileNames;
|
||||
Ui::DiveLogImportDialog *ui;
|
||||
|
||||
struct CSVAppConfig {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue