diff options
author | Doug Junkins <junkins@foghead.com> | 2019-05-04 20:46:42 -0700 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-05-06 10:48:44 +0200 |
commit | 98b3a326bd952c616843694821a48e0c029db699 (patch) | |
tree | 45038f420e6a8490ed75ddfe92ae0faa7ed1d006 /desktop-widgets/mainwindow.h | |
parent | 704ff9f82e35699dcd5ba260cda798195b0860a5 (diff) | |
download | subsurface-98b3a326bd952c616843694821a48e0c029db699.tar.gz |
Add "Import dive sites" menu to mainwindow
Adds "Import->Import dive sites" menu to mainwindow.cpp and adds the
on_actionImportDiveSites_triggered() method to prompt for the filename
to import from. The files are parsed and then any dive and trip data is
cleared before opening a dialog box to select which sites are to be
imported.
Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r-- | desktop-widgets/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 252a95b98..805900a74 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -139,6 +139,7 @@ slots: void initialUiSetup(); void on_actionImportDiveLog_triggered(); + void on_actionImportDiveSites_triggered(); /* TODO: Move those slots below to it's own class */ void on_actionExport_triggered(); @@ -192,6 +193,7 @@ private: CurrentState stateBeforeEdit; QString filter_open(); QString filter_import(); + QString filter_import_dive_sites(); static MainWindow *m_Instance; QString displayedFilename(QString fullFilename); bool askSaveChanges(); |