subsurface/qt-ui/profile
Dirk Hohndel 3dc864f1b1 Profile: adjust tank pressures at gas change (incomplete)
This code sets up the UI that will allow the user to adjust tank pressures
at a gaschange event. The actual changing of the pressure is not
implemented, yet, so this is disabled until someone finds time to do so.

The scenario is this: a tec diver or sidemount diver without pressure
sensors on at least one of their tanks still wants to reasonably
accurately track gas consumption during a dive. The diver takes notes of
the pressures at every tank switch (I find that odd, but apparently some
cave divers indeed do that as they switch back and forth between different
gases) and then wants to adjust the pressures in Subsurface to match those
written down.

One difficulty here is that the first and last pressure of a tank with no
sensor data is still considered "sensor pressure" - this is basically an
implementation detail in the code that is used to do the pressure
interpolation to have constant-SAC pressure plots for tanks without
sensors. So when we check if there is indeed no pressure data available at
the gas change, we can't just work with the interpolated pressure - if
this is the first (or last) time the tank was used, that pressure may be
marked as sensor pressure.

What's missing is the UI to enter the desired new pressure plus the black
magic that actually inserts this into the dive in a way that doesn't break
the assumptions in the rest of the code. I'm running out of time to do
that but wanted to preserve this code so someone can continue this later.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-11-19 16:29:27 -08:00
..
animationfunctions.cpp Add a new 'show' Animation, and use it on the close button. 2014-07-30 14:15:09 -07:00
animationfunctions.h Add a new 'show' Animation, and use it on the close button. 2014-07-30 14:15:09 -07:00
divecartesianaxis.cpp Remove unused static function 2014-08-06 10:59:26 -07:00
divecartesianaxis.h Make the Axis set the changed flag when a new line is set 2014-07-29 15:33:00 -07:00
diveeventitem.cpp Fix memleak on Pixmap cache 2014-11-14 13:45:54 -08:00
diveeventitem.h Fix memleak on Pixmap cache 2014-11-14 13:45:54 -08:00
divelineitem.cpp Code cleanup: removed bogus animation functions 2014-07-11 17:01:12 -07:00
divelineitem.h Code cleanup: removed bogus animation functions 2014-07-11 17:01:12 -07:00
divepixmapitem.cpp Move the Trash bin to the topRight on the pictures 2014-08-07 13:12:32 -07:00
divepixmapitem.h Delete pictures from the Widget by pressing delete 2014-08-06 18:32:28 -07:00
diveplotdatamodel.cpp Tissue saturation plot a la Sherwater Pretel 2014-09-19 21:46:30 -07:00
diveplotdatamodel.h Tissue saturation plot a la Sherwater Pretel 2014-09-19 21:46:30 -07:00
diveprofileitem.cpp For CCR dives, show plot for diluent and O2 cylinder pressures 2014-11-17 18:02:42 +00:00
diveprofileitem.h Fix partial pressure graph thresholds 2014-11-01 09:22:07 -07:00
diverectitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diverectitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetextitem.cpp Code cleanup: removed bogus animation functions 2014-07-11 17:01:12 -07:00
divetextitem.h Code cleanup: removed bogus animation functions 2014-07-11 17:01:12 -07:00
divetooltipitem.cpp Unify icon metrics 2014-10-18 15:16:15 -07:00
divetooltipitem.h Unify icon metrics 2014-10-18 15:16:15 -07:00
profilewidget2.cpp Profile: adjust tank pressures at gas change (incomplete) 2014-11-19 16:29:27 -08:00
profilewidget2.h Profile: add helper function to get the sample entry for a mouse position 2014-11-19 22:40:42 +00:00
ruleritem.cpp Ruler: fix weird behaviour near x = 0 2014-11-17 21:04:27 +00:00
ruleritem.h Simplify ruler update code. 2014-06-01 15:42:32 -07:00
tankitem.cpp TankBar: don't risk dereferencing stale pointers 2014-08-23 07:23:42 -07:00
tankitem.h TankBar: don't risk dereferencing stale pointers 2014-08-23 07:23:42 -07:00