mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo: more fine-grained editing of cylinder
Don't overwrite the full cylinder when editing a single field. Implement three "modes": editing of type, pressure and gasmix. Don't consider individual fields, because some of them are related. E.g. you can change the gasmix by setting the MOD. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4e8a838f74
commit
2eeb5f4fc2
7 changed files with 64 additions and 22 deletions
|
@ -92,7 +92,12 @@ int removeWeight(int index, bool currentDiveOnly);
|
|||
int editWeight(int index, weightsystem_t ws, bool currentDiveOnly);
|
||||
int addCylinder(bool currentDiveOnly);
|
||||
int removeCylinder(int index, bool currentDiveOnly);
|
||||
int editCylinder(int index, cylinder_t cyl, bool currentDiveOnly);
|
||||
enum class EditCylinderType {
|
||||
TYPE,
|
||||
PRESSURE,
|
||||
GASMIX
|
||||
};
|
||||
int editCylinder(int index, cylinder_t cyl, EditCylinderType type, bool currentDiveOnly);
|
||||
#ifdef SUBSURFACE_MOBILE
|
||||
// Edits a dive and creates a divesite (if createDs != NULL) or edits a divesite (if changeDs != NULL).
|
||||
// Takes ownership of newDive and createDs!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue