subsurface/qt-ui
Dirk Hohndel 76903849de Get the math right for cylinder model setData function
This is a fun one.

We only want to mark the divelist changed if the user actually changed
something. So we try really hard to compare what was entered with what was
there and only if it is different do we overwrite existing values and
record this as a change to the divelist.

An additional challenge here is the fact that the user needs to enter a
working pressure before they can enter a size (when in cuft mode). That is
not really intuitive. We work around this by assuming working pressure is
3000psi if a size is given in cuft - but then if the user changes the
working pressure, that changes the volume. Now going back and changing the
volume again does the trick. Or enter the working pressure FIRST and then
the volume...

This also changes the incorrect MAXPRESSURE to WORKINGPRESSURE and uses
the text WorkPress in English (Gtk code used MaxPress which was simply
wrong - this is just the design pressure or working pressure, not some
hard maximum. In fact, people quite commonly "overfill" these tanks.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-22 14:51:41 -07:00
..
marble Work around broken Marble on Debian 2013-05-18 09:49:37 -07:00
divelistview.cpp Fixed the hide / show columns using the settings. 2013-05-21 23:07:19 -03:00
divelistview.h Added code for handling of show / hide of columns. 2013-05-21 16:51:49 -03:00
downloadfromdivecomputer.cpp Implement rudimentary divecomputer download 2013-05-20 21:55:56 -07:00
downloadfromdivecomputer.h Implement rudimentary divecomputer download 2013-05-20 21:55:56 -07:00
downloadfromdivecomputer.ui Implement rudimentary divecomputer download 2013-05-20 21:55:56 -07:00
globe.cpp Shorten the 'set location' text 2013-05-22 09:00:07 -07:00
globe.h Borrowed the KMessageWidget code to better show passive information. 2013-05-17 21:58:49 -03:00
kmessagewidget.cpp Fixed the 'click in close doesn't close' on KMessageWidget. 2013-05-22 08:10:02 -03:00
kmessagewidget.h Compile fix 2013-05-17 22:27:50 -07:00
maintab.cpp Removed the unused add cylinder and add weigthsystem dialogs. 2013-05-22 14:52:38 -03:00
maintab.h Re Enable the option to add cylinders / weigthsystems. 2013-05-22 09:40:26 -03:00
maintab.ui Rework on the Equipment tab to make it look more Modern. 2013-05-22 09:17:18 -03:00
mainwindow.cpp Replace GError handling with a kMessageWidget based approach 2013-05-21 23:39:49 -07:00
mainwindow.h Replace GError handling with a kMessageWidget based approach 2013-05-21 23:39:49 -07:00
mainwindow.ui Replace GError handling with a kMessageWidget based approach 2013-05-21 23:39:49 -07:00
modeldelegates.cpp Removed unused debug, and set the correct data on the delegates. 2013-05-22 14:27:41 -03:00
modeldelegates.h Added a Delegate for editing Cylinders 2013-05-22 14:11:49 -03:00
models.cpp Get the math right for cylinder model setData function 2013-05-22 14:51:41 -07:00
models.h Get the math right for cylinder model setData function 2013-05-22 14:51:41 -07:00
plotareascene.cpp Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
plotareascene.h Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
profilegraphics.cpp Fix loading a dive via command line. 2013-05-16 21:25:31 -03:00
profilegraphics.h Fix loading a second dive, after the first file was loaded. 2013-05-16 12:23:38 -07:00
starwidget.cpp Added option to edit the selected dive. 2013-05-18 17:06:48 -07:00
starwidget.h Added option to edit the selected dive. 2013-05-18 17:06:48 -07:00