summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-14 09:17:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-14 09:20:20 -0700
commita960cd2d459a04a87e3bd05ecff885c342b8e761 (patch)
tree61fef55398b1c49e7c465ffc57b11538769796af /qt-ui/maintab.h
parent8669de63e137aa873a8cf843ad79fffaee0afa40 (diff)
downloadsubsurface-a960cd2d459a04a87e3bd05ecff885c342b8e761.tar.gz
Show & edit trip location and notes when exactly one trip is selected
While we still show the selected_dive in the profile and use it for Dive Info and Equipment, in the Dive Notes tab we now show the trip location and trip notes (and none of the other fields), if the user directly selects a whole trip by clicking on the trip header. This clever reuse of the widget now allows trip location and notes to be edited in place. As a side note: the Gtk version has long allowed the user to edit the trip location and trip notes, but nowhere did it ever SHOW the trip notes... so this is more than just feature parity... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 38d01e806..b92db67e1 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -63,6 +63,7 @@ private:
struct dive* currentDive;
QPushButton *addCylinder;
QPushButton *addWeight;
+ enum { NONE, DIVE, TRIP } editMode;
};
#endif