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
|
|
@ -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>&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 &from divelogs.de</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue