subsurface/desktop-widgets
Berthold Stoeger a124198275 Undo: be smarter about dive computer shown after deletion
When deleting a dive computer, don't just show the first
dive computer, but the next one in the list (if it exists).

Moreover, on undo jump to the previously shown dive computer.

Do this by keeping track of the before and after dive computer
number in the undo command.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-05-20 21:23:16 -07:00
..
css
preferences replace deprecated qSort() with std::sort() 2019-04-12 12:59:17 +03:00
statistics
tab-widgets Cleanup: small coding style fixes 2019-05-15 07:42:14 -07:00
about.cpp
about.h
about.ui
btdeviceselectiondialog.cpp
btdeviceselectiondialog.h
btdeviceselectiondialog.ui
CMakeLists.txt Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
command.cpp Undo: make "delete dive computer" undoable 2019-05-20 21:23:16 -07:00
command.h Undo: make "delete dive computer" undoable 2019-05-20 21:23:16 -07:00
command_base.cpp Undo: use QUndoStack::isClean() to determine unsaved changes 2019-04-12 18:19:07 +03:00
command_base.h Dive sites: prepare for dive site ref-counting 2019-04-12 18:19:07 +03:00
command_divelist.cpp Undo: be smarter about dive computer shown after deletion 2019-05-20 21:23:16 -07:00
command_divelist.h Undo: be smarter about dive computer shown after deletion 2019-05-20 21:23:16 -07:00
command_divesite.cpp Add undo/redo commands for importing dive sites 2019-05-06 10:48:44 +02:00
command_divesite.h Add undo/redo commands for importing dive sites 2019-05-06 10:48:44 +02:00
command_edit.cpp Convert the atmospheric pressure in the Information Tab to an editable field 2019-05-15 07:37:14 -07:00
command_edit.h Convert the atmospheric pressure in the Information Tab to an editable field 2019-05-15 07:37:14 -07:00
command_edit_trip.cpp Undo: use QUndoStack::isClean() to determine unsaved changes 2019-04-12 18:19:07 +03:00
command_edit_trip.h Undo: implement undo of dive trip editing 2019-04-12 18:19:07 +03:00
command_private.cpp Undo: move selection function into command_private.cpp file 2019-04-12 18:19:07 +03:00
command_private.h Undo: move selection function into command_private.cpp file 2019-04-12 18:19:07 +03:00
configuredivecomputerdialog.cpp
configuredivecomputerdialog.h
configuredivecomputerdialog.ui
divecomponentselection.ui
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp Selection: automatically unselect old selection in selectDives() 2019-05-11 12:06:19 -07:00
divelistview.h Undo: switch to edited trip 2019-04-12 18:19:07 +03:00
divelogexportdialog.cpp Add export option to export dive sites. 2019-04-13 08:18:32 -07:00
divelogexportdialog.h
divelogexportdialog.ui Add export option to export dive sites. 2019-04-13 08:18:32 -07:00
divelogimportdialog.cpp CSV Import: add heartrate support 2019-05-11 11:23:41 -07:00
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp
divepicturewidget.h
diveplanner.cpp Implement height-to-pressure functions in planner 2019-05-17 09:46:05 +02:00
diveplanner.h
diveplanner.ui
diveshareexportdialog.cpp
diveshareexportdialog.h
diveshareexportdialog.ui
divesiteimportdialog.cpp Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesiteimportdialog.h Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesiteimportdialog.ui Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
downloadfromdivecomputer.cpp Undo: make undo-system dive site-aware 2019-04-12 18:19:07 +03:00
downloadfromdivecomputer.h
downloadfromdivecomputer.ui
filterwidget2.cpp Turn application state into enum 2019-05-12 12:33:55 -07:00
filterwidget2.h Filter: call update title directly in filter model 2019-04-12 18:19:07 +03:00
filterwidget2.ui
findmovedimagesdialog.cpp
findmovedimagesdialog.h
findmovedimagesdialog.ui
groupedlineedit.cpp
groupedlineedit.h
kmessagewidget.cpp
kmessagewidget.h
listfilter.ui
locationinformation.cpp Turn application state into enum 2019-05-12 12:33:55 -07:00
locationinformation.h Dive site: Add button to display all dive sites 2019-05-11 12:35:11 -07:00
locationinformation.ui Dive site: add proximity field to dive site list 2019-04-12 18:19:07 +03:00
mainwindow.cpp Mainwindow: simplify application-state code 2019-05-12 12:33:55 -07:00
mainwindow.h Mainwindow: simplify application-state code 2019-05-12 12:33:55 -07:00
mainwindow.ui Add "Import dive sites" menu to mainwindow 2019-05-06 10:48:44 +02:00
mapwidget.cpp Map: automatically update names on the map 2019-05-11 12:06:19 -07:00
mapwidget.h Map: automatically update names on the map 2019-05-11 12:06:19 -07:00
modeldelegates.cpp Dive site: show distance to current dive using extra data 2019-05-11 12:35:11 -07:00
modeldelegates.h Dive site: show distance to current dive using extra data 2019-05-11 12:35:11 -07:00
notificationwidget.cpp
notificationwidget.h
plannerDetails.ui
plannerSettings.ui
printdialog.cpp
printdialog.h
printer.cpp Cleanup: small coding style fixes 2019-05-15 07:42:14 -07:00
printer.h
printoptions.cpp replace deprecated qSort() with std::sort() 2019-04-12 12:59:17 +03:00
printoptions.h
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui
shifttimes.ui
simplewidgets.cpp Cleanup: small coding style fixes 2019-05-15 07:42:14 -07:00
simplewidgets.h
starwidget.cpp
starwidget.h
subsurfacewebservices.cpp Dive site: add dive site ref-counting 2019-04-12 18:19:07 +03:00
subsurfacewebservices.h
tableview.cpp
tableview.h
tableview.ui
tagwidget.cpp Desktop: remove edit-check in tag-widget completer 2019-04-14 03:38:22 +12:00
tagwidget.h Undo: implement undo of tag editing 2019-04-12 18:19:07 +03:00
templateedit.cpp
templateedit.h
templateedit.ui
templatelayout.cpp Cleanup: simplify YearInfo class 2019-04-29 13:03:31 -07:00
templatelayout.h Cleanup: simplify YearInfo class 2019-04-29 13:03:31 -07:00
textedit.cpp Desktop: create new custom TextEdit widget for notes-field 2019-04-12 18:19:07 +03:00
textedit.h Desktop: create new custom TextEdit widget for notes-field 2019-04-12 18:19:07 +03:00
updatemanager.cpp
updatemanager.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
urldialog.ui
usermanual.cpp Coding style: remove Java-style function definition 2019-04-12 18:19:07 +03:00
usermanual.h
usersurvey.cpp
usersurvey.h
usersurvey.ui
webservices.ui