mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: Fix Gas Editing for Manually Added Dives.
- show the correct gasmix in the profile; - make gases available for gas switches in the profile after they have been added; - persist gas changes; - add air as a default gas when adding a dive. This still has problems when undoing a gas switch - instead of completely removing the gas switch it is just moved to the next point in the profile. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
9243921cbb
commit
f65afaf5d2
13 changed files with 121 additions and 54 deletions
|
|
@ -68,6 +68,7 @@ signals:
|
|||
void stopAdded(); // only emitted in edit mode
|
||||
void stopRemoved(int count); // only emitted in edit mode
|
||||
void stopMoved(int count); // only emitted in edit mode
|
||||
void stopEdited(); // only emitted in edit mode
|
||||
|
||||
public
|
||||
slots: // Necessary to call from QAction's signals.
|
||||
|
|
@ -111,7 +112,8 @@ private:
|
|||
|
||||
void replot();
|
||||
void setZoom(int level);
|
||||
void changeGas(int tank, int seconds);
|
||||
void addGasSwitch(int tank, int seconds);
|
||||
void changeGas(int index, int newCylinderId);
|
||||
void setupSceneAndFlags();
|
||||
void addItemsToScene();
|
||||
void setupItemOnScene();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue