mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
704ff9f82e
commit
98b3a326bd
6 changed files with 61 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue