mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable editing a dive that was manually entered.
This patch enables editing a dive that was manually entered, it doesn't cover dive plans yet because on the plan I need to figure out what are the 'user-entered' points, and what are the algorithm point. and I feel lazy. =p One last thing that's missing is to revert the dive to the previous condition if the user cancels the edition, currently canceling and applying ok is the same thing. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
d9afcdc8cb
commit
f7cd3e780c
6 changed files with 51 additions and 6 deletions
|
|
@ -46,6 +46,7 @@ class MainTab : public QTabWidget
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum EditMode { NONE, DIVE, TRIP, ADD, MANUALLY_ADDED_DIVE } editMode;
|
||||
MainTab(QWidget *parent);
|
||||
void clearStats();
|
||||
void clearInfo();
|
||||
|
|
@ -74,6 +75,7 @@ public slots:
|
|||
void editCylinderWidget(const QModelIndex& index);
|
||||
void editWeightWidget(const QModelIndex& index);
|
||||
void addDiveStarted();
|
||||
void enableEdition(EditMode newEditMode = NONE);
|
||||
|
||||
private:
|
||||
Ui::MainTab ui;
|
||||
|
|
@ -88,9 +90,7 @@ private:
|
|||
* then applying the changes on the other dives.*/
|
||||
struct dive multiEditEquipmentPlaceholder;
|
||||
|
||||
enum { NONE, DIVE, TRIP, ADD } editMode;
|
||||
Completers completers;
|
||||
void enableEdition();
|
||||
void resetPallete();
|
||||
QString printGPSCoords(int lat, int lon);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue