mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add undo/redo commands for importing dive sites
ImportDiveSites adds the provided dive sites to the core dive site table and stores the source data so it can be undone. Signed-off-by: Doug Junkins <junkins@foghead.com>
This commit is contained in:
parent
c38a86bebf
commit
704ff9f82e
4 changed files with 59 additions and 1 deletions
|
@ -48,6 +48,7 @@ void editDiveSiteCountry(dive_site *ds, const QString &value);
|
|||
void editDiveSiteLocation(dive_site *ds, location_t value);
|
||||
void editDiveSiteTaxonomy(dive_site *ds, taxonomy_data &value); // value is consumed (i.e. will be erased after call)!
|
||||
void addDiveSite(const QString &name);
|
||||
void importDiveSites(struct dive_site_table *sites, const QString &source);
|
||||
void mergeDiveSites(dive_site *ds, const QVector<dive_site *> &sites);
|
||||
void purgeUnusedDiveSites();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue