summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 9cfe43a26..afc30a079 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -46,6 +46,8 @@ class MainTab : public QTabWidget
{
Q_OBJECT
public:
+ enum EditMode { NONE, DIVE, TRIP, ADD, MANUALLY_ADDED_DIVE };
+
MainTab(QWidget *parent);
void clearStats();
void clearInfo();
@@ -74,8 +76,10 @@ public slots:
void editCylinderWidget(const QModelIndex& index);
void editWeightWidget(const QModelIndex& index);
void addDiveStarted();
+ void enableEdition(EditMode newEditMode = NONE);
private:
+ EditMode editMode;
Ui::MainTab ui;
WeightModel *weightModel;
CylindersModel *cylindersModel;
@@ -88,9 +92,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);
};