subsurface/qt-ui
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
..
css Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
marble Resync included header with upstream 2014-01-15 15:49:50 +07:00
profile Profile: adjust tank pressures at gas change (incomplete) 2014-11-19 16:29:27 -08:00
statistics Implement the modelDataChanged to repopulate the widget on Statistics 2014-08-25 14:00:38 -07:00
about.cpp Replace other references to hohndel.org 2014-11-18 13:13:39 +00:00
about.h Headers cleanup. 2014-06-26 15:47:02 -07:00
about.ui SubsurfaceAbout class cleanup. 2014-02-08 08:00:27 -08:00
completionmodels.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
completionmodels.h Put include guard to every header 2014-02-11 12:37:01 -08:00
configuredivecomputerdialog.cpp Create a delegate for depth and gas components 2014-10-27 15:41:55 -07:00
configuredivecomputerdialog.h Create a delegate for depth and gas components 2014-10-27 15:41:55 -07:00
configuredivecomputerdialog.ui Update strings for Suunto safety levels. 2014-11-12 08:10:48 -08:00
divecomponentselection.ui Selective copy: forgot tags in the UI 2014-08-16 18:35:44 -06:00
divecomputermanagementdialog.cpp misc capitalisation and spelling 2014-07-11 07:06:26 -07:00
divecomputermanagementdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.ui divecomputermanagementdilog capitalisation consitency 2014-07-10 16:26:20 -07:00
divelistview.cpp Move the filters code to it's own file. 2014-11-13 12:01:00 -08:00
divelistview.h Correctly unselect trips when dive list filters change 2014-11-03 17:52:04 -08:00
divelogexportdialog.cpp Compare image times and sample times as signed ints 2014-10-27 14:39:00 -07:00
divelogexportdialog.h Add export for depths of images taken 2014-10-10 08:03:45 -04:00
divelogexportdialog.ui Export to DiveShare 2014-10-14 20:33:46 +02:00
divelogimportdialog.cpp Parse meta information from Seaber log 2014-10-28 07:25:45 -07:00
divelogimportdialog.h Add support for importing pressure from CSV files 2014-07-10 12:40:25 -07:00
divelogimportdialog.ui divelogimportdialog capitalisation consitency 2014-07-10 16:27:50 -07:00
divepicturewidget.cpp dive.h: add a variant of FOR_EACH_PICTURE 2014-10-28 09:10:12 -07:00
divepicturewidget.h Picture handling: cleaning up the mess 2014-08-05 12:37:14 -07:00
diveplanner.cpp For CCR dives, show plot for diluent and O2 cylinder pressures 2014-11-17 18:02:42 +00:00
diveplanner.h Support different salinity in planner 2014-11-12 14:42:15 -08:00
diveplanner.ui Support different salinity in planner 2014-11-12 14:42:15 -08:00
diveshareexportdialog.cpp Export to DiveShare 2014-10-14 20:33:46 +02:00
diveshareexportdialog.h Export to DiveShare 2014-10-14 20:33:46 +02:00
diveshareexportdialog.ui Two small fixes regarding translation texts 2014-11-10 13:10:50 -08:00
downloadfromdivecomputer.cpp Pass the whole 'device_data_t' to the uemis downloader 2014-10-12 07:34:46 -04:00
downloadfromdivecomputer.h Headers cleanup. 2014-06-26 15:47:02 -07:00
downloadfromdivecomputer.ui Add "download into private trip" dialog checkmark 2014-08-14 22:40:14 -06:00
filtermodels.cpp Only show tags in filter panel that are actually used 2014-11-17 21:15:35 +00:00
filtermodels.h Remove unused DivesFilteredOut variable 2014-11-16 18:39:29 +00:00
filterwidget.ui Remove bogus strings and add tooltips to filter buttons 2014-11-16 18:55:27 +00:00
globe.cpp globe.cpp: fix a NO_MARBLE warning 2014-10-27 07:35:53 -07:00
globe.h Headers cleanup. 2014-06-26 15:47:02 -07:00
graphicsview-common.cpp Tissue saturation plot a la Sherwater Pretel 2014-09-19 21:46:30 -07:00
graphicsview-common.h Tissue saturation plot a la Sherwater Pretel 2014-09-19 21:46:30 -07:00
groupedlineedit.cpp Remove double include 2014-10-15 22:53:10 +02:00
groupedlineedit.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.cpp 727 fixed 2014-11-17 06:02:21 +00:00
kmessagewidget.h 727 fixed 2014-11-17 06:02:21 +00:00
listfilter.ui Fix position and size of the Filter 2014-11-03 14:33:15 -08:00
maintab.cpp Clarify the meaning of the values in the stats tab 2014-11-17 18:44:51 +00:00
maintab.h Show extra data in separate tab on MainTab 2014-11-07 13:00:58 -08:00
maintab.ui Fix typo 2014-11-12 10:18:26 -08:00
mainwindow.cpp Clean up yearly statistics 2014-11-17 18:19:51 +00:00
mainwindow.h Support for importing Poseidon MK6 logs 2014-10-26 20:33:50 -07:00
mainwindow.ui Don't use DC configuration menu item as preference dialog on Mac 2014-11-18 06:08:00 +00:00
metrics.cpp Unify icon metrics 2014-10-18 15:16:15 -07:00
metrics.h Unify icon metrics 2014-10-18 15:16:15 -07:00
modeldelegates.cpp Allow translation of the cylinder use strings for the UI 2014-11-17 14:39:30 +00:00
modeldelegates.h Add the ability to modify the cylinder use in the UI 2014-11-17 14:03:37 +00:00
models.cpp Allow translation of the cylinder use strings for the UI 2014-11-17 14:39:30 +00:00
models.h Add the ability to modify the cylinder use in the UI 2014-11-17 14:03:37 +00:00
plannerSettings.ui Planner: bring sanity to the SAC rate handling 2014-08-19 11:36:54 -05:00
preferences.cpp Remove debug output in preference setting 2014-10-30 07:46:24 -07:00
preferences.h Added a 'use default file' button on preferences. 2014-07-16 15:52:29 -07:00
preferences.ui Preferences: increment/decrement partial perssure values by .1 2014-08-18 14:21:11 -05:00
printdialog.cpp Print: support margin saving for older Qt versions 2014-11-14 08:49:53 -08:00
printdialog.h Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printlayout.cpp Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printlayout.h Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printoptions.cpp Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printoptions.h Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printoptions.ui Fix the layout on the Print Dialog 2014-08-04 09:50:55 -07:00
renumber.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
searchbar.ui Add a horizontal spacer to make the searchbar layout better 2014-07-11 17:00:23 -07:00
shiftimagetimes.ui shifimmagetimes capitalisation consitency and title 2014-07-11 07:05:10 -07:00
shifttimes.ui shiftimes capitalisation consitency and title 2014-07-11 07:05:17 -07:00
simplewidgets.cpp Clarify the meaning of the values in the stats tab 2014-11-17 18:44:51 +00:00
simplewidgets.h Clarify the meaning of the values in the stats tab 2014-11-17 18:44:51 +00:00
starwidget.cpp Replace alpha value of gray star with lighter gray 2014-11-04 07:03:54 -08:00
starwidget.h Unify icon metrics 2014-10-18 15:16:15 -07:00
subsurfacewebservices.cpp Move update check and survey to the new domain 2014-11-18 13:01:54 +00:00
subsurfacewebservices.h Give Subsurface a distinct User Agent string 2014-07-31 11:20:11 -07:00
tableview.cpp TableView: fix button sizing 2014-10-19 07:24:15 -07:00
tableview.h Fix plus icon position based on the theme 2014-10-18 15:18:38 -07:00
tableview.ui Fix plus icon position based on the theme 2014-10-18 15:18:38 -07:00
tagwidget.cpp 727 fixed 2014-11-17 06:02:21 +00:00
tagwidget.h 727 fixed 2014-11-17 06:02:21 +00:00
updatemanager.cpp Move update check and survey to the new domain 2014-11-18 13:01:54 +00:00
updatemanager.h Rely on QNetworkReply finished() signal instead of AccessManager one 2014-07-16 13:56:46 -07:00
usermanual.cpp Add missing application icon 2014-07-18 10:21:42 -07:00
usermanual.h Use a layout to lay down the search and the help 2014-07-11 16:59:14 -07:00
usersurvey.cpp Survey: rename "Save" button to "Send" 2014-08-15 21:41:41 -06:00
usersurvey.h Better User Agent for Subsurface 2014-08-08 11:13:05 -07:00
usersurvey.ui Fix layout for User Survey 2014-07-16 09:11:04 -07:00
webservices.ui webservice capitalisation consitency 2014-07-11 07:05:38 -07:00