mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: split addStop() into external and internal versions
The DivePlannerPointsModel::addStop() function is called by the profile to add a planner-stop. It is also used internally to create profiles. If we ever want to include this in the undo system, we have to split these into to versions. One will ultimately place an undo command and update the profile, the other one doesn't. For now, this makes the external interface simpler, as some parameters are redundant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
71e117669d
commit
337d9318ad
3 changed files with 9 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ public:
|
|||
struct deco_state final_deco_state;
|
||||
|
||||
void loadFromDive(dive *d);
|
||||
int addStop(int millimeters, int seconds, int cylinderid_in, int ccpoint, bool entered, enum divemode_t);
|
||||
void addStop(int millimeters, int seconds);
|
||||
public
|
||||
slots:
|
||||
void addDefaultStop();
|
||||
|
|
@ -117,6 +117,7 @@ signals:
|
|||
private:
|
||||
explicit DivePlannerPointsModel(QObject *parent = 0);
|
||||
void clear();
|
||||
int addStop(int millimeters, int seconds, int cylinderid_in, int ccpoint, bool entered, enum divemode_t);
|
||||
void setupStartTime();
|
||||
void setupCylinders();
|
||||
int lastEnteredPoint() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue