Commit Graph

336 Commits

Author SHA1 Message Date
Mark Watkins
b6cf8195f1 Windows build fix 2015-08-27 14:00:58 +10:00
Mark Watkins
866b6fff5d Qt 5.4+ QOpenGLWidget and graphing optimsations 2015-08-27 11:37:10 +10:00
reznet
f2218f14e5 Explain why no TZ conversion is needed for some graph methods
The graph cursor and range text strings are computed from the graph's data which do not need to be converted to local time.  i.e. 5pm == 5pm.
2015-08-11 15:38:09 -05:00
reznet
81c0b06f06 Use local time for snapshot name
A snapshot name contains the date the snapshot starts in.  Since this is for the user, use the local time to get the date string.
2015-08-11 15:22:25 -05:00
reznet
d58c2c96a3 Display session slice tooltips in local time
The Sessions graph on the overview page displays the start time of each session slice in a tooltip when the mouse is over the slice.  Since this is displayed to the user, it should appear in the local time zone.
2015-08-11 15:16:03 -05:00
reznet
59a0823d20 Update all calls to fromMSecsSinceEpoch to specify UTC
QT 5 changed the behavior of QDateTime::fromMSecsSinceEpoch to return the result in local time zone, whereas in QT 4, it returned UTC.  On systems that do not support time zones, the QT 5 version still returns UTC.  But for all other systems, the api change causes confusion in the SH UI because some date and time values are displayed in UTC instead of the local time zone.  This manifests itself when the user is in USA which has a negative UTC offset.  When selecting a date range to display in the overview screen, the displayed dates appear to be one day behind the selected date range.

For consistently, SH should always use UTC internally and only convert to the local time zone when displaying data to the user.  This will ensure that the time zone information is preserved correctly when the UTC offset of the user's machine changes due to DST changes or traveling.

There are a few calls to fromMSecsSinceEpoch which should be using local time, and those will be updated in future commits.
2015-08-11 15:01:24 -05:00
reznet
b0bc8af718 Use UTC when converting to QDateTime for graph axis
QDateTime::fromMSecsSinceEpoch returns a QDateTime in the local time zone, but the ms input was created in UTC.  This causes the day part to sometimes display off by a day on the graph x axis.  This appears to be caused by a breaking change in QT 5.  Previously, fromMSecsSinceEpoch returned a QDateTime in UTC, but in QT 5, it returns the date time in the local time zone.
2015-08-11 13:34:45 -05:00
Mark Watkins
5cc8929f4e Fix Event Flags tooltip durations not displaying properly 2014-10-15 21:25:05 +10:00
Mark Watkins
3ac96500d2 Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
Mark Watkins
9849f65578 Fix some errors detected by a little valgrind checking 2014-10-03 17:09:35 +10:00
Mark Watkins
1094159657 Rename mainwindow qsplitters, suppress some warnings 2014-10-03 12:31:51 +10:00
Mark Watkins
bc09382916 Make Daily sidepanel and right side bar size changes persistent 2014-10-02 21:22:30 +10:00
Mark Watkins
1ade0e7b04 Window 32bit build fixes, variable cleanups 2014-10-02 20:02:33 +10:00
Mark Watkins
ffeb0149c0 Windows build fixes, bump build number 2014-10-02 17:56:57 +10:00
Mark Watkins
62b4b421f6 Put CSV Export back, step overview barchar segment brightness a bit more 2014-10-02 13:39:37 +10:00
Mark Watkins
358d1969e0 By Pressure pixmap caching cleanup 2014-09-30 20:16:33 +10:00
Mark Watkins
429fcb64a1 Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
Mark Watkins
b3f49f1edb Changed QPrinter headers, CMS50H fix, minor overview graph optimisations 2014-09-24 11:42:14 +10:00
Mark Watkins
a09308db2c Show better span durations in event flags, reset orders on channel reset 2014-09-22 15:44:55 +10:00
Mark Watkins
f2facb9da9 Add AirSense 10 CSR flags. Fixed summary load order messing up day splitting. 2014-09-22 14:32:15 +10:00
Mark Watkins
15de13f107 Dump some serialport scanning information to help get the CMS50xW ports detected 2014-09-19 12:07:28 +10:00
Mark Watkins
6fd823104d Total Time in Apnea overview chart 2014-09-19 03:58:00 +10:00
Mark Watkins
964d6b8862 Fix item delegates in Event/Waveform preferences 2014-09-19 01:33:50 +10:00
Mark Watkins
fd50d81798 PRS1 compliance duration stuff, cms50i deviceid fix 2014-09-19 00:31:31 +10:00
Mark Watkins
1fb3dabff0 Move oximeter select combo to Oximetery wizard, add a panel with some CMS50I/F device related stuff 2014-09-18 20:53:59 +10:00
Mark Watkins
54a46c6aca Increase xaxis seconds mode autoscaling range a little 2014-09-18 03:48:16 +10:00
Mark Watkins
a8eee32891 pixmaps to machineloader, fix xaxis scaling glitch 2014-09-18 03:20:01 +10:00
Mark Watkins
3558b69065 Fix event loading glitch, and 0.0 smiley resmed glitch 2014-09-17 16:12:38 +10:00
Mark Watkins
239c3096d7 Unbreak git.. 2014-09-17 12:34:50 +10:00
Mark Watkins
289c19d8c9 fix gSessionTimesChart segfault 2014-09-16 12:48:52 +10:00
Mark Watkins
83a6038a70 minor barchart gradient optimisation 2014-09-16 12:15:19 +10:00
Mark Watkins
d1341787ba Removed machine section out of profile.xml to machine.xml, created profiles.xml list, set some default overview graphs 2014-09-15 01:29:07 +10:00
Mark Watkins
b3510d788b Preferences cleanup, overview overhead calculation works 2014-09-13 21:34:18 +10:00
Mark Watkins
4c0b4908bc Mega update: Summary demand loading, Overview summarychart rework, rxchanges caching 2014-09-12 00:23:08 +10:00
Mark Watkins
faba312edb Update temporarily slighty broken in overview message 2014-09-04 12:23:09 +10:00
Mark Watkins
23ce39efad Session times replacement chart (work in progress) 2014-09-04 12:17:59 +10:00
Mark Watkins
5601be1b91 Profile sort order, PRS1 brick stuff 2014-09-01 21:39:38 +10:00
Mark Watkins
504aa231f1 Better ResMed Session sorting, Parse EVE's differently 2014-09-01 14:49:05 +10:00
Mark Watkins
7ee1c64b97 Update Graph on/off switches when adding Clones 2014-08-29 21:34:21 +10:00
Mark Watkins
483c887b90 Modify Clone graphs titles 2014-08-29 20:38:46 +10:00
Mark Watkins
26b2e4179a MSVC Build fixes 2014-08-29 16:08:36 +10:00
Mark Watkins
e3f2e0c886 Add in missing semi-colon that broke mac build 2014-08-29 15:56:01 +10:00
Mark Watkins
b98cdffad0 Fix graph legends on low dpi screens 2014-08-29 15:54:03 +10:00
Mark Watkins
a91a11a7b9 More Xaxis/yaxis layout consistency stuff 2014-08-29 15:32:49 +10:00
Mark Watkins
51e58b8ae5 Fix some windows layout bugs 2014-08-29 14:02:16 +10:00
Mark Watkins
f0097e38ae Disable linecursor during printing, move date indicators down bottom in overview 2014-08-29 01:45:46 +10:00
Mark Watkins
48df9c2f46 Stop print daily report screwing up selections 2014-08-29 01:11:34 +10:00
Mark Watkins
8b652541e9 Update release notes, control scroll wheel fixes for pinned graphs 2014-08-29 00:37:49 +10:00
Mark Watkins
d17523c91b Graph clone cleanups, make horizontal mouse panning graph context aware 2014-08-28 23:01:16 +10:00
Mark Watkins
cbaf7abc7f Bye bye Graph Snapshots, hello Clone Graphs 2014-08-28 18:01:25 +10:00
Mark Watkins
4f53a7312f Remove old Graph Tab in Preferences 2014-08-28 14:02:22 +10:00
Mark Watkins
32bc6a97d0 Higher resolution graph snapshots in antialias mode 2014-08-28 03:30:53 +10:00
Mark Watkins
fb9e26aee3 Make Pie chart prettier 2014-08-28 01:00:55 +10:00
Mark Watkins
37e20bf504 Try making snapshot graphs scale when resized 2014-08-28 00:41:16 +10:00
Mark Watkins
f6fe01c5bc Set minimum height for snapshot graphs 2014-08-28 00:32:08 +10:00
Mark Watkins
8d08bb5a6b Messed up that last commit 2014-08-28 00:22:57 +10:00
Mark Watkins
77c8a2ab26 Remove pin from snapshot graphs 2014-08-28 00:21:42 +10:00
Mark Watkins
cec3cd8523 Hide snapshots on empty days 2014-08-28 00:08:18 +10:00
Mark Watkins
4473ca745a Make sure gGraphView::SaveSettings doesn't try to save snapshot graphs 2014-08-28 00:02:05 +10:00
Mark Watkins
953c9ad662 Block select on Snapshot graphs 2014-08-27 23:53:17 +10:00
Mark Watkins
56e54cc6fa Snapshot graphs needs a redraw scheduled after creation/destruction 2014-08-27 23:50:41 +10:00
Mark Watkins
a0a8679c48 Added Graph snapshot feature 2014-08-27 23:42:10 +10:00
Mark Watkins
2b8be5bf6d Fix LineChart AHI duration calc regression 2014-08-27 19:55:31 +10:00
Mark Watkins
d587afdba1 Only show YAxis right-click menu on relevant charts 2014-08-27 19:13:14 +10:00
Mark Watkins
1fd3703b32 Roy Stone's F&P time patch, plus some Right click yaxis scaling work of Marks 2014-08-27 19:00:55 +10:00
Mark Watkins
da9c160ec2 Fix YAxis scaling stuff for new right click menu 2014-08-27 14:36:40 +10:00
Mark Watkins
d834c35f74 QMenu stylesheet test 2 2014-08-27 04:43:01 +10:00
Mark Watkins
e17cc3455c QMenu stylesheet 2014-08-27 04:23:27 +10:00
Mark Watkins
b77fa2db8e Some more unfinished work on the YAxis context menu 2014-08-27 03:26:13 +10:00
Mark Watkins
0e8972358a Added Min/Max YAxis editor to Context menu 2014-08-27 01:05:59 +10:00
Mark Watkins
09ccf1984c Preliminary S10 channels, CMS50f/i clock set option 2014-08-24 12:26:53 +10:00
Mark Watkins
cfbf876fbd Store pulse/spo2 threshold preferences 2014-08-23 19:54:51 +10:00
Mark Watkins
dbb39f730c Graph overlay/plot/lines setting persistence 2014-08-23 19:24:22 +10:00
Mark Watkins
cc768af16b Make right-click menu consistent 2014-08-23 17:11:50 +10:00
Mark Watkins
cecd47e1e0 Show oximeter flags header, don't show plots menu when only one plot available 2014-08-23 16:35:02 +10:00
Mark Watkins
433bd5a4f8 Give each graph individual flag overlays 2014-08-23 16:21:50 +10:00
Mark Watkins
f935f3dd61 Fix line cursor values not showing when multiple machines present 2014-08-22 23:59:27 +10:00
Mark Watkins
0b31d0ea3f Fix duplicate ResMed Ti/Te signals from importing 2014-08-22 21:54:24 +10:00
Mark Watkins
b88e9351dc CMS50i PI test6 2014-08-22 02:53:07 +10:00
Mark Watkins
9c9408a4f2 CMS50i PI test2 2014-08-22 02:13:22 +10:00
Mark Watkins
b10365a7d2 CMS50i PI test 2014-08-22 01:59:09 +10:00
Mark Watkins
3e84ef817b CMS50I PI stuff 2014-08-22 00:59:18 +10:00
Mark Watkins
eb2b127395 Minor cruft 2014-08-22 00:16:23 +10:00
Mark Watkins
530d2b6172 SleepyHead, now with 50% more Bob on empty days 2014-08-21 18:04:25 +10:00
Mark Watkins
40ab37c071 Software summarychart gradients a bit 2014-08-21 16:03:30 +10:00
Mark Watkins
06ce5d686c CMS50F/i stuff, summary only colors in overview, sesslist cleanup, empty day cleanup 2014-08-21 15:46:14 +10:00
Mark Watkins
9d967002c5 Added auto-import preference, fixed large leak reflagging 2014-08-21 06:50:55 +10:00
Mark Watkins
672b111339 PRS1 Error list for later, cleaned up Events browser 2014-08-21 04:36:44 +10:00
Mark Watkins
e27232423e Restructure Day object to allow for multiple machine sessions 2014-08-21 03:17:13 +10:00
Mark Watkins
ba8b8f12fa Graph overlays right-click menu 2014-08-20 21:30:42 +10:00
Mark Watkins
7be1c3e8d8 Remove old LineOverlayBars/Summaries from OXI charts 2014-08-20 19:31:14 +10:00
Mark Watkins
f35c6a055a Oximetry fix #372342 2014-08-20 00:04:29 +10:00
Mark Watkins
2a8d2822ff By Pressure experiments (temporary overlay) 2014-08-19 20:26:44 +10:00
Mark Watkins
9e77305a0d CMS50F37 debug test 2014-08-18 09:29:30 +10:00
Mark Watkins
5ae43e8ab8 Remove bottom duration in statusbar 2014-08-18 03:03:50 +10:00
Mark Watkins
9d1e62e887 Cleanup old color settings from linecharts 2014-08-18 01:36:53 +10:00
Mark Watkins
b45e7efed5 New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
Mark Watkins
df450a1845 Clean up minimum cells in By Pressure graph 2014-08-12 21:15:31 +10:00
Mark Watkins
8fae3b4a6e Some Mouse handling and By Pressure cleanups 2014-08-12 20:44:05 +10:00
Mark Watkins
67203a8c49 Rename TAP to By Pressure, added tooltips on it's headers 2014-08-12 18:04:53 +10:00