diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2013-11-01 11:48:34 -0400 |
---|---|---|
committer | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2013-11-01 11:48:34 -0400 |
commit | f7cd3e780cdc77180ce279c95322de2095192657 (patch) | |
tree | 30be9f9d9071be59f74e60fb55c3f67b70f909a4 /qt-ui/maintab.h | |
parent | d9afcdc8cb0239d07b0578bbe2b4e4efe87c5958 (diff) | |
download | subsurface-f7cd3e780cdc77180ce279c95322de2095192657.tar.gz |
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>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 9cfe43a26..1f586e70a 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -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); }; |