mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: implement autogrouping of trips in DiveAdd
If the autogroup flag is set, search for appropriate trips in DiveAdd() and add the dive to this trip. If no trip exists, add a new trip. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ec7d85835f
commit
63b65a7e20
7 changed files with 58 additions and 10 deletions
|
@ -15,7 +15,7 @@ QAction *undoAction(QObject *parent); // Create an undo action.
|
|||
QAction *redoAction(QObject *parent); // Create an redo action.
|
||||
|
||||
// Dive-list related commands
|
||||
void addDive(dive *d);
|
||||
void addDive(dive *d, bool autogroup);
|
||||
void deleteDive(const QVector<struct dive*> &divesToDelete);
|
||||
void shiftTime(const QVector<dive *> &changedDives, int amount);
|
||||
void renumberDives(const QVector<QPair<int, int>> &divesToRenumber);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue