subsurface/qt-ui
Dirk Hohndel eb9d6d0f94 Rewrite dive edit logic
The existing code took an odd approach. It tried to change all selected
dives whenever the user edited a field, and kept all this backup data in
case the user rejected the edits.

This code takes the opposite approach. Only edit a copy of the selected
dive and then when the user accepts it, edit all the dives and when the
user rejects the edit simply redraw the screen (as all the "real" data is
still unchanged).

This not only saves quite a bit of code, it should be much easier to get
correct.

Admitedly this code will need quite a bit more testing to make sure it
works as intended, but as far as I can tell it already gets more scenarios
right than the previous implementation.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-02 23:38:36 -07: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 Fix addStop to work as slot again 2014-06-02 12:40:36 -07:00
about.cpp Quit Subsurface with about window in front 2014-04-25 10:21:55 -07:00
about.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08: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
divecomputermanagementdialog.cpp Fixing Hotkeys inconsistency for divecomputer/pref/numbering windows 2014-04-25 13:24:39 -07:00
divecomputermanagementdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
divelistview.cpp Do not replot for each picture added to dive. 2014-06-01 15:44:12 -07:00
divelistview.h Fix crash on adding / removing a dives from add menu 2014-05-28 17:03:47 -07:00
divelogexportdialog.cpp HTML list exporter 2014-05-29 07:24:17 -07:00
divelogexportdialog.h Rework the Export dialog 2014-05-24 06:42:10 -07:00
divelogexportdialog.ui HTML list exporter 2014-05-29 07:24:17 -07:00
divelogimportdialog.cpp Ctrl-W and -Q support for GPS, divelogs.de, divecomputer and CVS import 2014-04-25 10:47:44 -07:00
divelogimportdialog.h Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
divelogimportdialog.ui Tune CVS import dialog 2014-02-27 11:44:59 -08:00
divepicturewidget.cpp Add threaded processing of image pixmaps 2014-06-01 15:54:29 -07:00
divepicturewidget.h Add threaded processing of image pixmaps 2014-06-01 15:54:29 -07:00
diveplanner.cpp Optionally strip diveplan to bare minimum 2014-06-02 12:40:36 -07:00
diveplanner.h Optionally strip diveplan to bare minimum 2014-06-02 12:40:36 -07:00
diveplanner.ui Optionally strip diveplan to bare minimum 2014-06-02 12:40:36 -07:00
downloadfromdivecomputer.cpp Rework slot to quiet down Qt5 warning 2014-05-26 06:25:00 -07:00
downloadfromdivecomputer.h Rework slot to quiet down Qt5 warning 2014-05-26 06:25:00 -07:00
downloadfromdivecomputer.ui Enable libdivecomputer log or dump from the UI 2013-12-24 16:26:00 -08:00
exif.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
exif.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
globe.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
globe.h Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
graphicsview-common.cpp Make heartrate grid less confusing 2014-04-28 12:45:42 -07:00
graphicsview-common.h Make heartrate grid less confusing 2014-04-28 12:45:42 -07:00
groupedlineedit.cpp Much, much smarter way of finding the Tags 2014-05-27 20:03:29 -07:00
groupedlineedit.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
kmessagewidget.h Another small tweak to whitespace tool 2014-03-05 13:02:23 -08:00
maintab.cpp Rewrite dive edit logic 2014-06-02 23:38:36 -07:00
maintab.h Rewrite dive edit logic 2014-06-02 23:38:36 -07:00
maintab.ui Add a new widget on the main tab: Pictures. 2014-06-01 15:54:29 -07:00
mainwindow.cpp Add a method to update the dive pictures on the model. 2014-06-01 15:54:29 -07:00
mainwindow.h Add a method to update the dive pictures on the model. 2014-06-01 15:54:29 -07:00
mainwindow.ui Optionally strip diveplan to bare minimum 2014-06-02 12:40:36 -07:00
modeldelegates.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
modeldelegates.h Better handling of mouse on the delegates ( Equipment Edition ) 2014-04-25 07:19:18 -07:00
models.cpp Next step to using gasmix instead of o2/he 2014-06-01 15:40:46 -07:00
models.h Planner: Re-enable using the new profile. 2014-05-26 13:17:32 -07:00
preferences.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
preferences.h Remove some unneeded explicit paths in includes 2014-04-11 07:21:21 -07:00
preferences.ui Add option to save userid in data files 2014-04-14 09:40:30 -07:00
printdialog.cpp Print dialog: make Ctrl-Q and Ctlr-W work 2014-04-25 10:27:44 -07:00
printdialog.h Remove printing when building for Android 2014-03-27 10:42:07 -07:00
printlayout.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
printlayout.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.cpp Print: adjustments to PrintDialog 2013-11-30 18:56:25 +02:00
printoptions.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.ui UI adjustments in Print Dialog Window 2014-04-16 12:17:49 -07:00
renumber.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shiftimagetimes.ui Fix layout on the Shift-Image-Time import dialog 2014-06-01 15:43:43 -07:00
shifttimes.ui Add current time and adjusted time to gui when adjusting dive's timestamp 2014-03-21 21:26:09 -07:00
simplewidgets.cpp Override the MinMaxAvgWidget tool tips for the depth instance. 2014-06-01 20:20:17 -07:00
simplewidgets.h Override the MinMaxAvgWidget tool tips for the depth instance. 2014-06-01 20:20:17 -07:00
starwidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
starwidget.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
subsurfacewebservices.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
subsurfacewebservices.h Implementing export dialog 2014-05-21 03:31:43 +09:00
tableview.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
tagwidget.cpp Remove some unused variables 2014-06-01 15:41:12 -07:00
tagwidget.h Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
updatemanager.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
updatemanager.h Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
usermanual.cpp Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
usermanual.h Gratuitous whitespace changes 2014-05-22 11:40:22 -07:00
usermanual.ui Close search panel by button click 2014-02-10 07:12:35 -08:00
webservices.ui Add option to save userid in data files 2014-04-14 09:40:30 -07:00