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:
Doug Junkins 2019-05-04 20:46:42 -07:00 committed by bstoeger
parent 704ff9f82e
commit 98b3a326bd
6 changed files with 61 additions and 1 deletions

View file

@ -130,6 +130,7 @@
</property>
<addaction name="actionDownloadDC"/>
<addaction name="actionImportDiveLog"/>
<addaction name="actionImportDiveSites"/>
<addaction name="actionDivelogs_de"/>
</widget>
<widget class="QMenu" name="menu_Edit">
@ -381,6 +382,17 @@
<string notr="true">Ctrl+I</string>
</property>
</action>
<action name="actionImportDiveSites">
<property name="text">
<string>&amp;Import dive sites</string>
</property>
<property name="toolTip">
<string>Import dive sites from other users</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+J</string>
</property>
</action>
<action name="actionDivelogs_de">
<property name="text">
<string>Import &amp;from divelogs.de</string>