subsurface/qt-ui
Dirk Hohndel ed41d5a744 Sort the dive table after adding a dive
This commit scares me. Any pointers to dives or indices into the dive
table... anything like that is invalid after we resort the table. Well,
not technically "invalid" (as in bad pointers), but after re-sorting the
table these will possibly not be pointing at what we expected.

This starts with the selection being "wrong" after we add a dive that
isn't the last dive (once we click OK the chronologically last dive will
be selected).

But of course without doing this, our #1 assumption about the dive_table
is broken. The dive_table is supposed to be in chronological order.

Best advice of course would be "don't enter dives out of order" - but of
course that's not realistic.

Fixes #234

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-11-14 19:36:41 +09:00
..
css Added missing CSS file. 2013-09-02 05:57:08 -03:00
marble Work around broken Marble on Debian 2013-05-18 09:49:37 -07:00
about.cpp Remove the "in C" part about Subsurface's description 2013-10-17 20:28:22 -07:00
about.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
about.ui About: improve dialog layout 2013-07-11 09:22:20 -03:00
completionmodels.cpp Added a custom widget for tagging dives 2013-11-02 03:37:31 +01:00
completionmodels.h Added a custom widget for tagging dives 2013-11-02 03:37:31 +01:00
csvimportdialog.cpp GUI for CSV import 2013-10-16 12:44:07 -07:00
csvimportdialog.h GUI for CSV import 2013-10-16 12:44:07 -07:00
csvimportdialog.ui GUI for CSV import 2013-10-16 12:44:07 -07:00
divecomputermanagementdialog.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
divecomputermanagementdialog.h Random white space cleanup 2013-10-15 04:37:31 -07:00
divecomputermanagementdialog.ui Converting the device_info list into a Qt data structure 2013-06-18 00:24:28 -07:00
divelistview.cpp Maintain the selection when aborting "dive add" 2013-11-14 17:58:14 +09:00
divelistview.h Maintain the selection when aborting "dive add" 2013-11-14 17:58:14 +09:00
diveplanner.cpp Handle tank data correctly in profile editing mode for manually added dive 2013-11-14 18:36:21 +09:00
diveplanner.h Handle tank data correctly in profile editing mode for manually added dive 2013-11-14 18:36:21 +09:00
diveplanner.ui Show a cylinder widget in the dive planner 2013-11-10 07:07:59 +09:00
downloadfromdivecomputer.cpp After done with the DC download dialog, ensure it's in its original state 2013-11-09 15:58:57 +09:00
downloadfromdivecomputer.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
downloadfromdivecomputer.ui implement device probe in C 2013-09-16 22:40:47 -03:00
globe.cpp Stop clicks on the globe from changing dive list selection while editing 2013-11-11 06:23:18 +09:00
globe.h Fix marble losting track of zoom level 2013-10-17 15:00:22 -07:00
graphicsview-common.cpp graphicsview-common.cpp: Add more contrast to certain B/W colors 2013-10-15 04:23:43 -07:00
graphicsview-common.h Use the same line dimensions as the profile, on the planner. 2013-09-16 19:21:13 -03:00
groupedlineedit.cpp Corrected indentation, added license/copyright 2013-11-02 17:10:30 +01:00
groupedlineedit.h Corrected indentation, added license/copyright 2013-11-02 17:10:30 +01:00
kmessagewidget.cpp Added the Message and the Buttons on the Equipment Tab 2013-09-18 23:23:04 -03:00
kmessagewidget.h Random white space cleanup 2013-10-15 04:37:31 -07:00
maintab.cpp Sort the dive table after adding a dive 2013-11-14 19:36:41 +09:00
maintab.h Only auto-complete gps information when empty. 2013-11-12 16:46:17 +09:00
maintab.ui Correct tabstops in MainTab 2013-11-02 17:10:34 +01:00
mainwindow.cpp Maintain the selection when aborting "dive add" 2013-11-14 17:58:14 +09:00
mainwindow.h Maintain the selection when aborting "dive add" 2013-11-14 17:58:14 +09:00
mainwindow.ui Add alt based shortcuts to access menus 2013-10-27 10:58:52 -07:00
modeldelegates.cpp Connect cylinders entered in planner with the gases available 2013-11-11 17:09:19 +09:00
modeldelegates.h Fixed the Tab behavior on the QCombobox Delegate 2013-10-15 09:49:12 -07:00
models.cpp Connect changes in the tanks with the dive that is being added 2013-11-13 21:56:22 +09:00
models.h Add depth colum to cylinder model 2013-11-12 11:17:40 +09: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
preferences.cpp Introduce an on/off switch for calculating ndl/tts 2013-11-13 11:55:19 +09:00
preferences.h Enable file selection dialog for preferences 2013-10-14 13:14:09 -07:00
preferences.ui MaxPPO2 should be a double, not an int 2013-11-13 13:02:39 +09:00
printdialog.cpp printdialog: Remove the pre-set DPI and some comments 2013-10-15 04:24:15 -07:00
printdialog.h Print: add a print preview for testing purposes 2013-07-10 19:27:10 +03:00
printlayout.cpp Prettier printing 2013-10-16 07:02:06 -07:00
printlayout.h printlayout.cpp: Remove convertPixmapToGrayscale() 2013-10-15 04:24:27 -07:00
printoptions.cpp Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
printoptions.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
printoptions.ui Print: correct tab order in the options widget 2013-07-10 10:50:33 +03:00
profilegraphics.cpp Don't translate the fake DC models 2013-11-07 16:52:39 +09:00
profilegraphics.h Added a new option to edit the dives. 2013-11-01 09:33:39 -04:00
renumber.ui Make the renumbering of dives accept numbers up to 99999 2013-10-01 09:47:33 -07:00
simplewidgets.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
simplewidgets.h Partially revert 7a368ab06b 2013-10-03 15:45:06 -07:00
starwidget.cpp The never ending, futile fight for whitespace consistency 2013-05-22 21:31:45 -07:00
starwidget.h Consistently use slots / signals 2013-06-19 10:20:56 -07:00
subsurfacewebservices.cpp Minimum hooking-up done, divelogs.de shows on menu-activation. 2013-10-24 23:02:59 -02:00
subsurfacewebservices.h Added the skeleton for the Download / Upload from Divelogs.de 2013-10-24 22:52:11 -02:00
tableview.cpp Partially revert d72c69db7a and fix its errors 2013-11-13 11:58:47 +09:00
tableview.h Partially revert d72c69db7a and fix its errors 2013-11-13 11:58:47 +09:00
tableview.ui Fix the positioning of the add button when on Gtk style 2013-09-26 20:35:30 -03:00
tagwidget.cpp Remove debug output left in the previous commit by mistake 2013-11-07 16:32:23 +09:00
tagwidget.h Fix the inconsistent behaviour of QCompleter 2013-11-02 17:10:34 +01:00
webservices.ui Created a 'WebService' dialog that will handle download and upload. 2013-10-24 22:30:21 -02:00