mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
GUI for CSV import
This patch implements GUI for importing CSV log files. One is able to configure what columns contain time, depth and temperature fields. Pre-configured log applications currently included are ADP log viewer and XP5. (Both of these use actually tab as separator, so the field separator currently hard-coded.) [Dirk Hohndel: minor fixes] Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
80bced4f56
commit
4c49670cdb
11 changed files with 494 additions and 32 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "diveplanner.h"
|
||||
#include "about.h"
|
||||
#include "printdialog.h"
|
||||
#include "csvimportdialog.h"
|
||||
|
||||
static MainWindow* instance = 0;
|
||||
|
||||
|
@ -801,3 +802,17 @@ void MainWindow::loadFiles(const QStringList fileNames)
|
|||
WSInfoModel *wsim = WSInfoModel::instance();
|
||||
wsim->updateInfo();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionImportCSV_triggered()
|
||||
{
|
||||
CSVImportDialog *csvImport = new(CSVImportDialog);
|
||||
csvImport->show();
|
||||
process_dives(TRUE, FALSE);
|
||||
|
||||
ui.InfoWidget->reload();
|
||||
ui.globe->reload();
|
||||
ui.ListWidget->reload(DiveTripModel::TREE);
|
||||
ui.ListWidget->setFocus();
|
||||
WSInfoModel *wsim = WSInfoModel::instance();
|
||||
wsim->updateInfo();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue