subsurface/qt-models
Rick Walsh 8c4e1e6bfa Read planner preferences when we use them
Read and use the last_stop preference in the plan function.
Read the plan notes preferences and set variables (plan_verbatim,
plan_display_runtime, plan_display_duration, and plan_display_transitions)
in the add_plan_to_notes function. Don't read the preferences and set
variables otherwise. Both plan and add_plan_to_notes functions are called
on data change.

Previous behaviour was:
- Set variables on declaration
- Reset variables in plan function (even variables that only relate to
  planner notes output)
- Changing a preference triggered set_xxx function which sets variable,
  then plan function, which sets variable again.

Apart from being inefficient, the previous behaviour made it difficult to
track down where and when variables were set.

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-07-05 06:37:01 -07:00
..
cleanertablemodel.cpp Move CleanerTableModel to its own file 2015-05-29 14:08:36 -07:00
cleanertablemodel.h Move WeightModel to qt-models 2015-05-29 14:11:12 -07:00
completionmodels.cpp Remove location completion model 2015-07-01 18:54:19 -07:00
completionmodels.h Correctly removes the Location Completion Model 2015-07-01 19:21:50 -07:00
cylindermodel.cpp Cylinder model: fix an obscure case that would access cylinder -1 2015-06-21 21:30:38 -07:00
cylindermodel.h Move DivePlannerModel and CylinderModel to qt-models 2015-05-29 14:09:13 -07:00
divecomputerextradatamodel.cpp Move ExtraDataModel to qt-models 2015-05-29 14:11:26 -07:00
divecomputerextradatamodel.h Move ExtraDataModel to qt-models 2015-05-29 14:11:26 -07:00
divecomputermodel.cpp Move DiveComputerModel to qt-models 2015-05-29 14:11:52 -07:00
divecomputermodel.h Move DiveComputerModel to qt-models 2015-05-29 14:11:52 -07:00
divelistmodel.cpp Rename dive class to avoid conflict 2015-06-20 14:29:24 -07:00
divelistmodel.h Rename dive class to avoid conflict 2015-06-20 14:29:24 -07:00
divelocationmodel.cpp Rename enum values for taxonomy 2015-07-02 10:22:31 -07:00
divelocationmodel.h More information on dive site model 2015-07-01 19:21:23 -07:00
divepicturemodel.cpp Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
divepicturemodel.h Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
diveplannermodel.cpp Read planner preferences when we use them 2015-07-05 06:37:01 -07:00
diveplannermodel.h VPM-B: add deco choice to the ui. 2015-07-03 23:07:58 +02:00
diveplotdatamodel.cpp Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
diveplotdatamodel.h Move DivePlotDataModel to qt-models 2015-05-29 14:14:43 -07:00
divetripmodel.cpp Show icon in dive list to mark dives that have GPS data 2015-06-29 10:44:17 -07:00
divetripmodel.h Move DiveTripModel to qt-models 2015-05-29 14:13:00 -07:00
filtermodels.cpp Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
filtermodels.h Move the models to its own folder 2015-05-29 14:07:54 -07:00
models.cpp Fewer rebuilds triggered by changes in models.h 2015-05-29 14:13:44 -07:00
models.h Fewer rebuilds triggered by changes in models.h 2015-05-29 14:13:44 -07:00
profileprintmodel.cpp Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
profileprintmodel.h Move ProfilePrintModel to qt-models 2015-05-29 14:13:32 -07:00
tableprintmodel.cpp Move TablePrintModel to Qt-models 2015-05-29 14:13:12 -07:00
tableprintmodel.h Move TablePrintModel to Qt-models 2015-05-29 14:13:12 -07:00
tankinfomodel.cpp Move Tankinfomodel to its own file 2015-05-29 14:10:30 -07:00
tankinfomodel.h Move Tankinfomodel to its own file 2015-05-29 14:10:30 -07:00
treemodel.cpp Move TreeModel to qt-models 2015-05-29 14:12:06 -07:00
treemodel.h Move TreeModel to qt-models 2015-05-29 14:12:06 -07:00
weightmodel.cpp Move WeightModel to qt-models 2015-05-29 14:11:12 -07:00
weightmodel.h Move WeightModel to qt-models 2015-05-29 14:11:12 -07:00
weigthsysteminfomodel.cpp Move WeigthSystem Info model to qt-models 2015-05-29 14:10:50 -07:00
weigthsysteminfomodel.h Typo on the header guard. oops. 2015-05-29 20:58:58 -07:00
yearlystatisticsmodel.cpp Move the YearlyStatisticsModel to qt-models 2015-05-29 14:12:48 -07:00
yearlystatisticsmodel.h Move the YearlyStatisticsModel to qt-models 2015-05-29 14:12:48 -07:00