aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/shiftimagetimes.ui
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-30 16:06:17 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:22:27 -0700
commit4fbb8ef399a356e0b1a7393311c22ca68c50a14d (patch)
tree6df500f1ff7b658608370af258a5d9f1d15aaa92 /desktop-widgets/shiftimagetimes.ui
parentc341bc53c302721144ad18e24824705ecf0636f7 (diff)
downloadsubsurface-4fbb8ef399a356e0b1a7393311c22ca68c50a14d.tar.gz
Dive list: hand-code the DiveTripModel
The dive list is fed data by means of a sorted "DiveTripModel". There are two modes: list and tree. This was implemented rather elegantly with a general "TreeModel", which can represent trees of arbitrary depths. Nevertheless, we have at most two levels and on the second level only dives can reside. Implementing proper model-semantics (insert, delete, move) will be quite a challenge and implementing it under the umbrella of a very general model will not make it easier. Therefore, for now, hardcode the model: At the top-level there are items which may either be a trip (can contain multiple dives) or a dive (contains exactly one dive). Thus, we can completely de-virutalize the DiveItem and TripItem classes, which are now trivial wrappers around dive * and dive_trip *. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/shiftimagetimes.ui')
0 files changed, 0 insertions, 0 deletions