subsurface/desktop-widgets
Berthold Stoeger 487974ea91 selection: avoid select_dive() and deselect_dive calls in dive list
Each of these calls recalculates the current dive and divecomputer.
Instead, collect the dives to be selected/deselected and (de)select
them at once.

This needs some code refactoring in the core, because we need a
function that
1) doesn't send a signal by itself.
2) doesn't clear the trip-selection.

This contains some reorganization of the selection functions
signatures: The filter code is the only caller that keeps the
selected dive and the only caller that cares about whether the
current dive changed. So let only the function that keeps the
selected dive return whether the current dive changed.

It's all very fragile.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-04-16 20:23:59 +02:00
..
css
preferences Map Short Names - add preference setting 2022-08-21 18:53:35 -07:00
qml statistics: don't import QtQuick in StatsView QML file 2022-11-19 15:07:07 -08:00
tab-widgets selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
about.cpp cleanup: don't add QKeySequence values 2022-03-12 08:28:32 -08:00
about.h
about.ui
addfilterpreset.ui
btdeviceselectiondialog.cpp Qt6: Bluetooth API changes 2022-03-12 08:28:32 -08:00
btdeviceselectiondialog.h
btdeviceselectiondialog.ui
CMakeLists.txt statistics: remove old unused statistics code 2022-11-19 15:03:30 -08:00
configuredivecomputerdialog.cpp core: use divelog struct in downloader code 2023-04-14 21:20:23 +02:00
configuredivecomputerdialog.h
configuredivecomputerdialog.ui Desktop: Add option to force overwrite firmware for OSTC4. 2023-03-18 00:11:08 +13:00
divecomponentselection.ui core: replace dive master by dive guide 2022-02-15 09:35:43 -08:00
divelistview.cpp selection: avoid select_dive() and deselect_dive calls in dive list 2023-04-16 20:23:59 +02:00
divelistview.h cleanup: mark DiveListView::selectionChanged() as overridden 2022-08-28 13:34:13 -07:00
divelogexportdialog.cpp cleanup: fix incorrect QFuture return value 2022-03-12 08:28:32 -08:00
divelogexportdialog.h
divelogexportdialog.ui
divelogimportdialog.cpp core: use divelog in importDives() and process_imported_dives() 2023-04-14 21:20:23 +02:00
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp
divepicturewidget.h
diveplanner.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
diveplanner.h
diveplanner.ui
diveshareexportdialog.cpp Qt6: move connection into C++ source 2022-03-12 08:28:32 -08:00
diveshareexportdialog.h
diveshareexportdialog.ui Qt6: move connection into C++ source 2022-03-12 08:28:32 -08:00
divesiteimportdialog.cpp core: fold display.h into profile.h 2022-03-13 15:07:33 -07:00
divesiteimportdialog.h
divesiteimportdialog.ui
divesitelistview.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
divesitelistview.h desktop: make dive site list an independent widget 2022-09-23 15:50:49 +02:00
divesitelistview.ui desktop: make dive site list an independent widget 2022-09-23 15:50:49 +02:00
downloadfromdivecomputer.cpp core: use divelog struct in downloader code 2023-04-14 21:20:23 +02:00
downloadfromdivecomputer.h Qt6: if we want the QString argument we need the TextChanged slot 2022-03-12 08:28:32 -08:00
downloadfromdivecomputer.ui
filterconstraintwidget.cpp cleanup: Fix a Coverity warning 2022-02-15 09:30:43 -08:00
filterconstraintwidget.h
filterwidget.cpp
filterwidget.h
filterwidget.ui
findmovedimagesdialog.cpp
findmovedimagesdialog.h
findmovedimagesdialog.ui
groupedlineedit.cpp Qt6: add include files to keep QVectorIterator working 2022-03-12 08:28:32 -08:00
groupedlineedit.h
importgps.cpp
importgps.h
importgps.ui
kmessagewidget.cpp cleanup: prevent distracing conversion warnings 2022-03-12 08:28:32 -08:00
kmessagewidget.h
listfilter.ui
locationinformation.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
locationinformation.h desktop: make DiveLocationModel entries "editable" 2022-08-22 09:20:45 -07:00
locationinformation.ui
mainwindow.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
mainwindow.h core: remove autogroup global 2023-04-14 21:20:23 +02:00
mainwindow.ui desktop: make dive site list an independent widget 2022-09-23 15:50:49 +02:00
mapwidget.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
mapwidget.h
modeldelegates.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
modeldelegates.h Use combo box for moving sensor data 2022-09-03 13:38:34 -07:00
notificationwidget.cpp cleanup: fix incorrect QFuture return value 2022-03-12 08:28:32 -08:00
notificationwidget.h cleanup: fix incorrect QFuture return value 2022-03-12 08:28:32 -08:00
plannerDetails.ui
plannerSettings.ui
printdialog.cpp Add printing option for page orientation 2023-03-28 21:08:37 -07:00
printdialog.h
printer.cpp profile: merge plotDive() into draw() call 2021-12-17 11:54:23 -08:00
printer.h profile: for printing/mobile access ProfileScene directly 2021-12-17 11:54:23 -08:00
printoptions.cpp Add printing option for page orientation 2023-03-28 21:08:37 -07:00
printoptions.h Add printing option for page orientation 2023-03-28 21:08:37 -07:00
printoptions.ui Add printing option for page orientation 2023-03-28 21:08:37 -07:00
profilewidget.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
profilewidget.h profile: automatically enter edit mode 2022-03-12 18:33:34 +01:00
profilewidget.ui profile: remove profile widget code from mainwindow 2021-12-17 11:54:23 -08:00
qtwaitingspinner.cpp cleanup: prevent distracing conversion warnings 2022-03-12 08:28:32 -08:00
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui desktop/image-time-shift: reorder UI 2021-09-22 09:09:12 -07:00
shifttimes.ui cleanup: remove duplicate connections in .ui files 2022-03-12 08:28:32 -08:00
simplewidgets.cpp desktop: pass dive list to ShiftTimesDialog 2023-01-18 15:42:47 -08:00
simplewidgets.h desktop: pass dive list to ShiftTimesDialog 2023-01-18 15:42:47 -08:00
starwidget.cpp
starwidget.h
statswidget.cpp Qt6: prevent QML object from being garbage collected 2022-03-12 08:28:32 -08:00
statswidget.h Qt6: prevent QML object from being garbage collected 2022-03-12 08:28:32 -08:00
statswidget.ui statistics: add a sort mode for categorical bar charts 2022-01-04 11:14:24 -08:00
subsurfacewebservices.cpp core: use divelog in importDives() and process_imported_dives() 2023-04-14 21:20:23 +02:00
subsurfacewebservices.h Qt6: update the connect calls for QNetworkReply 2022-04-18 07:24:39 +02:00
tableview.cpp
tableview.h
tableview.ui
tagwidget.cpp desktop: let tag-widget completion popup accept composition events 2022-08-13 11:19:37 -07:00
tagwidget.h desktop: improve composition on TagWidgets 2022-08-13 11:19:37 -07:00
templateedit.cpp
templateedit.h
templateedit.ui
templatelayout.cpp cleanup: move minute formating to format-string.cpp 2022-09-03 13:49:02 -07:00
templatelayout.h
textedit.cpp
textedit.h
tripselectiondialog.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
tripselectiondialog.h
tripselectiondialog.ui
updatemanager.cpp
updatemanager.h
urldialog.ui Allow more than one media file when importing from the web 2022-04-01 08:28:05 -07:00
usermanual.cpp
usermanual.h
webservices.ui