profile: rename ADD state to EDIT state

The ADD state is not used for adding dives since adding dives
was made undoable. Therefore, rename it to EDIT state, since
that is what it is used for.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-30 07:49:56 +02:00 committed by Dirk Hohndel
parent 9424760eff
commit 4a7cf0e970
3 changed files with 20 additions and 20 deletions

View file

@ -60,7 +60,7 @@ public:
enum State {
EMPTY,
PROFILE,
ADD,
EDIT,
PLAN,
INVALID
};
@ -82,7 +82,7 @@ public:
void plotDive(const struct dive *d, int dc, bool clearPictures = false, bool instant = false);
void setProfileState(const struct dive *d, int dc);
void setPlanState(const struct dive *d, int dc);
void setAddState(const struct dive *d, int dc);
void setEditState(const struct dive *d, int dc);
void setPrintMode(bool mode, bool grayscale = false);
bool isPointOutOfBoundaries(const QPointF &point) const;
bool isPlanner() const;