summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-31 16:26:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-01 21:29:05 -0700
commitc3debc10fdcb0f7e939872ea24d525f41039f5bd (patch)
treeb3f744f54e8ffde489a20930ed0608fddd706dfb /libdivecomputer.h
parenta5f894d1d3b53a3a99580d2da467a46d04c65266 (diff)
downloadsubsurface-c3debc10fdcb0f7e939872ea24d525f41039f5bd.tar.gz
Allow modification and edits of trips
Now that we can load and store trips we needed to add the capability to manipulate those trips as well. This commit allows us remove a dive from a trip via a right click operation on the dive list. The commit also adds code to split a trip into two, to merge two trips and to create a new trip out of a top level dive. To make all that useful this commit changes the right-click on the dive list to identify and act on the record we are actually on (instead of acting on the selection). The right-click menu ("context menu") changes depending which divelist entry the mouse pointer is on - so different operations are offered, depending on where you are. We also add simplistic editing of location and notes for a trip (but the notes are never displayed so far). To make our lives easier this commit adds a link from the dive to the dive trip it is part of. This allowed to hugely simplify the auto trip generation algorithm (among other things). The downside of this change is that there are now three different ways in which we express the relationship of dives and trips: in the dive_trip_list, in the tree_model, and with these pointers. Somehow this screams that I should rethink my data structures... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.h')
0 files changed, 0 insertions, 0 deletions