diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-01-10 08:25:37 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-10 09:25:57 -0700 |
commit | 57b96490b2c5b81023439046dea225b8caf09946 (patch) | |
tree | 3c5a811d23fbd80720de18331786ab1b56222407 /mobile-widgets/qmlmanager.h | |
parent | 200932189451d52e277004871004e3b2a0593e58 (diff) | |
download | subsurface-57b96490b2c5b81023439046dea225b8caf09946.tar.gz |
mobile/undo: create EditDive command
Command that just swaps two dives. This is rather complex,
as for example a dive site might be created.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 8916e9d42..f0f78937e 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -20,6 +20,8 @@ #include "core/subsurface-qt/divelistnotifier.h" class QAction; +class DiveObjectHelper; +class DiveSiteChange; // An obscure implementation artifact - remove in due course. class QMLManager : public QObject { Q_OBJECT @@ -251,7 +253,7 @@ private: QElapsedTimer timer; bool alreadySaving; bool checkDate(const DiveObjectHelper &myDive, struct dive *d, QString date); - bool checkLocation(const DiveObjectHelper &myDive, struct dive *d, QString location, QString gps); + bool checkLocation(DiveSiteChange &change, const DiveObjectHelper &myDive, struct dive *d, QString location, QString gps); bool checkDuration(const DiveObjectHelper &myDive, struct dive *d, QString duration); bool checkDepth(const DiveObjectHelper &myDive, struct dive *d, QString depth); bool currentGitLocalOnly; @@ -260,7 +262,8 @@ private: bool m_btEnabled; void updateAllGlobalLists(); void updateSiteList(); - void setupDivesite(struct dive *d, struct dive_site *ds, double lat, double lon, const char *locationtext); + + location_t getGps(QString &gps); QString m_pluggedInDeviceName; bool m_showNonDiveComputers; struct dive *m_copyPasteDive = NULL; |