summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.ui
diff options
context:
space:
mode:
authorGravatar Doug Junkins <junkins@foghead.com>2019-05-04 20:46:42 -0700
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-05-06 10:48:44 +0200
commit98b3a326bd952c616843694821a48e0c029db699 (patch)
tree45038f420e6a8490ed75ddfe92ae0faa7ed1d006 /desktop-widgets/mainwindow.ui
parent704ff9f82e35699dcd5ba260cda798195b0860a5 (diff)
downloadsubsurface-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.ui')
-rw-r--r--desktop-widgets/mainwindow.ui12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.ui b/desktop-widgets/mainwindow.ui
index 3548280e8..07886b18e 100644
--- a/desktop-widgets/mainwindow.ui
+++ b/desktop-widgets/mainwindow.ui
@@ -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>