Commit Graph

254 Commits

Author SHA1 Message Date
Sean Stangl
87ca2ebf7e Use explicit QRegion for paint().
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-05-14 05:51:04 +10:00
Mark Watkins
b98d90934d Merge branch 'qpainter', old opengl code is officially dead 2014-05-14 05:30:09 +10:00
Sean Stangl
f02ff92296 Remove unused AHIChart class.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-05-14 05:20:44 +10:00
Mark Watkins
9a2d536057 Clean up Daily constructor a little bit 2014-05-13 18:14:20 +10:00
Mark Watkins
3f8b04710d Fix autoscanner not detecting drives on Windows 2014-05-13 14:03:24 +10:00
Mark Watkins
59b6700a50 Fix dodgy code assignment in ResMed code, Fix for automatic re-import after purge 2014-05-13 12:56:51 +10:00
Mark Watkins
1f4bf4c510 Clean up CPAP datacard autodetection 2014-05-13 11:28:41 +10:00
Mark Watkins
7eea8ca365 Shut down GraphView tabs a little more cleanly 2014-05-12 05:04:34 +10:00
Mark Watkins
924a988769 Offer to reimport automatically after purge if backup folder available 2014-05-12 04:31:48 +10:00
Mark Watkins
76e3636f5b Wait a bit for CPAP data card to be detected 2014-05-12 03:29:26 +10:00
Mark Watkins
2089de7120 F&P Icon timestamp patch (thanks Roy Stone) 2014-05-11 15:19:25 +10:00
Mark Watkins
f98291c62b Added line plot thickness preference, fixed barchart gradients 2014-05-10 12:53:50 +10:00
Mark Watkins
b041277ad4 Turn off debugging font color 2014-05-10 10:51:35 +10:00
Mark Watkins
18082cbef5 Replace pixmap caching code with Qt's build in stuff 2014-05-10 10:50:35 +10:00
Mark Watkins
79e889d0a6 More MSVC stuff 2014-05-09 17:05:54 +10:00
Mark Watkins
9a40b54f63 Merge branch 'qpainter' of ssh://git.code.sf.net/p/sleepyhead/code into qpainter 2014-05-08 21:18:46 +10:00
Mark Watkins
2e49787cc3 More minor optimasations 2014-05-08 21:18:19 +10:00
Mark Watkins
e87c7e7373 Merge branch 'qpainter' of ssh://git.code.sf.net/p/sleepyhead/code into qpainter 2014-05-08 21:17:57 +10:00
Mark Watkins
04b37d0f7c AntiAliasing stuff 2014-05-08 21:17:45 +10:00
Mark Watkins
5d31a6d952 Line drawing optimisations 2014-05-08 21:08:32 +10:00
Mark Watkins
484d6ae6c7 Show No Graph, or No Graphs On messages centered, since there is no cube 2014-05-08 15:02:03 +10:00
Mark Watkins
ba1cc81701 Windows build fix. Mingw needs zlib, MSVC doesn't 2014-05-08 14:56:53 +10:00
Mark Watkins
38a8c7b1d0 More MSVC fixes plus cleanup warnings a bit 2014-05-08 14:46:23 +10:00
Mark Watkins
7d33a2c053 Merge branch 'qpainter' of ssh://git.code.sf.net/p/sleepyhead/code into qpainter 2014-05-08 14:09:19 +10:00
Mark Watkins
97c1375837 MSVC++ build fixes 2014-05-08 14:09:05 +10:00
Mark Watkins
3c0fa11f91 Get rid of extra OpenGL dependencies 2014-05-08 14:07:23 +10:00
Mark Watkins
ee73925259 A little graph profiling 2014-05-08 12:05:01 +10:00
Mark Watkins
b810cf8acc Fix pie labels 2014-05-08 11:04:37 +10:00
Mark Watkins
e32ac39d08 Convert OpenGL to QPainter primatives 2014-05-08 05:52:59 +10:00
Mark Watkins
bae7f333d6 Translation strings update 2014-05-07 10:43:42 +10:00
Mark Watkins
fcbfc8cc92 Added empty session skip back in for ResMed importer 2014-05-07 10:12:42 +10:00
Mark Watkins
3f86358507 Fix Day::hours() calculation glitch with empty sessions 2014-05-07 10:10:13 +10:00
Mark Watkins
8aa0c2b8b4 Remove c++11 auto iterators :( 2014-05-07 04:03:13 +10:00
Mark Watkins
feec1ca758 Undo initializer lists for the greater good, restoring Qt4.8 support 2014-05-07 03:39:05 +10:00
Mark Watkins
f5e136eefd Added click on statistics header to jump to overview date range 2014-05-06 22:37:00 +10:00
Mark Watkins
54452ab79a Added a new monthly statistics mode, and a switch to toggle 2014-05-06 21:54:41 +10:00
Mark Watkins
81959b44b1 Hide user info from statistics when there isn't any available 2014-05-06 19:33:06 +10:00
Mark Watkins
6ea8de1515 Smarten up Statistics page a bit, and make it more flexible
This is in preperation for making it editable by users.
Also added compliance calculations to profile
2014-05-06 19:11:34 +10:00
Mark Watkins
95fd5b9a7f Fix overview graphs cropping top line 2014-05-06 12:37:29 +10:00
Mark Watkins
af744d6752 Fix remaining prefCalcMax test in overview 2014-05-06 12:25:20 +10:00
Mark Watkins
da87e96761 Merge branch 'master' of ssh://git.code.sf.net/p/sleepyhead/code 2014-05-06 12:24:50 +10:00
Mark Watkins
039294f989 Fix Max and 99% flag being swapped in Daily view Summary panel
Also some minor cleanups having a look over update module
2014-05-06 12:19:36 +10:00
Mark Watkins
cf9fb10355 Fix Qt 5.2.1 mingw build missing M_PI. But don't use Qt5.2.1 on windows. OpenGl is broken 2014-05-06 02:24:35 +10:00
Mark Watkins
e8b07b4eac More Resmed import cleanups, and fixes glitch with empty sessions 2014-05-05 16:14:29 +10:00
Mark Watkins
66e7b48abd Disable CombineSessions, IgnoreShortSessions and force day split time to noon when ResMed data present
This has been done because it's the only way access to Summary data is possible
This is in preperation for a little rework of the STR.edf parser
2014-05-05 04:24:29 +10:00
Mark Watkins
b530f27ca0 ResMed loader cleanup, fix missing snore graph, versioning change.
Versioning system just got changed to standard 3 segments
Major, Minor and Patch level. Bumped to version 0.9.5
2014-05-05 04:02:41 +10:00
Mark Watkins
1db5a74125 Change unstable references to testing 2014-05-04 16:21:26 +10:00
Mark Watkins
0ff65945e5 Preferences dialog was not saving profile settings 2014-05-04 04:30:29 +10:00
Mark Watkins
5efb973cac Fix Variable Pressure Support display in Daily view summary panel 2014-05-04 01:36:21 +10:00
Mark Watkins
799694dddb PRS1 Family 5 Version 4 Has extra graph data field 2014-05-04 01:23:15 +10:00
Mark Watkins
58bc7ef2ef Turned import progress dialog back on 2014-05-03 18:52:44 +10:00
Mark Watkins
a6dbdf3d15 Stop using inconsistent PRS1 Summary duration field, added PRS1 Large Leak span 2014-05-03 18:28:05 +10:00
Sean Stangl
acfffbc980 Add missing header, fixing Linux build.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-05-02 14:36:49 +10:00
Mark Watkins
c9a5b712f3 Minor PRS1 cleaning 2014-05-02 14:34:34 +10:00
Mark Watkins
027a81d915 Show progressbar in a dialog during import instead of in the status bar
Also added a warning message for non data capable PRS1 machines
2014-05-01 14:59:40 +10:00
Mark Watkins
22a9736598 Intellipap & FP Icon autoscanner Detect() functions 2014-04-29 05:24:39 +10:00
Sean Stangl
a155efa878 Simplify ResmedLoader::Detect() by avoiding manual string manipulation.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-29 04:59:55 +10:00
Mark Watkins
945e72afe9 Minor autoscanner tweak for Linux 2014-04-29 04:39:58 +10:00
Mark Watkins
f0e523212e Improve autoscanner drive detection 2014-04-29 04:29:30 +10:00
Mark Watkins
83022db8cb Windows import autoscanner fixes 2014-04-28 19:10:34 +10:00
Mark Watkins
558fb2f789 Pop up file dialog if no SD card data detected 2014-04-28 14:05:20 +10:00
Mark Watkins
4790025697 Implemented ResmedLoader autoscanner Detect() code 2014-04-28 14:01:55 +10:00
Mark Watkins
2fca186def Mainwindow destructor cleanup 2014-04-28 13:40:50 +10:00
Mark Watkins
2b62343e61 Removed ImportLocations and implemented datacard Autoscanner 2014-04-28 13:27:33 +10:00
Mark Watkins
38d7aeb3fb Some C++11 cleanups to importers, preparing for autoscanner/import wizard 2014-04-26 19:54:08 +10:00
Mark Watkins
e8fe6c7af0 Only open active profile after selection, rather than parsing all at startup.
Also cleaned up the last references to summary when statistics was meant.
2014-04-25 15:52:47 +10:00
Mark Watkins
cfb3eb7c26 Fixes to last commit 2014-04-24 19:44:15 +10:00
Mark Watkins
1ea0473701 Added missing cmath header to gGraph 2014-04-24 08:26:49 +10:00
Sean Stangl
0899b39175 Split humongous gGraphView.cpp into class-specific files.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-24 08:23:45 +10:00
Sean Stangl
3a7ce34b1c Use C++11 nullptr.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-24 08:17:53 +10:00
Mark Watkins
87fd9c37db Cleanup Day iterator code using C++11 2014-04-23 16:00:09 +10:00
Sean Stangl
415ad42dab Enable C++11 support!
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-23 15:13:20 +10:00
Sean Stangl
8ac829a3d1 Explicitly include <limits> to fix Qt4 build.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-23 15:03:38 +10:00
Sean Stangl
fc51eb7fee Add a configure script defaulting to Qt5, and fix Qt5 on Fedora.
Fedora doesn't ship a qextserialport compatible with Qt5,
but the version in 3rdparty/ is perfectly viable.

Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-23 15:02:07 +10:00
Sean Stangl
868a61c27b Express some profiles.h functions in terms of helper functions.
Gets rid of nasty string duplication and pointer logic.

Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-22 17:16:48 +10:00
Mark Watkins
0421a5c4e2 Clean up & optimise Session and Profile iterators a little bit 2014-04-22 17:16:24 +10:00
Mark Watkins
f718973c88 Clean up and optimise Day classes session iterators 2014-04-22 15:28:58 +10:00
Mark Watkins
780368c2e8 Merge branch 'master' of ssh://git.code.sf.net/p/sleepyhead/code 2014-04-18 16:10:32 +10:00
Sean Stangl
eb3019b0fe Express one EventList::AddEvent() in terms of the other.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-18 11:04:04 +10:00
Mark Watkins
24c3087326 Fix a minor tooltip font glitch in preferences 2014-04-18 10:49:22 +10:00
Sean Stangl
be71894ad0 Clean up and express GetGoodDay() in terms of GetDay().
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-18 10:46:05 +10:00
Sean Stangl
c29313ab88 Auto-convert the SleepLib/ subdirectory with astyle.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 16:18:49 +10:00
Sean Stangl
b5d5b82b59 Auto-convert the Graphs/ subdirectory with astyle.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 16:18:28 +10:00
Sean Stangl
012e9fd314 Auto-convert the main source directory with astyle. "The Huge Patch"
The files daily.cpp and daily.h are omitted, pending some other cleanup patches landing first.

Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 16:15:28 +10:00
Mark Watkins
98d877991f Merge branch 'master' of ssh://git.code.sf.net/p/sleepyhead/code 2014-04-17 16:14:47 +10:00
Sean Stangl
3508afc883 Auto-convert gGraphView.cpp with astyle.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 15:26:39 +10:00
Sean Stangl
355113ec95 Add STYLE file for astyle.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 15:25:35 +10:00
Mark Watkins
8dbe7274c3 Merge branch 'master' of ssh://git.code.sf.net/p/sleepyhead/code 2014-04-17 14:56:27 +10:00
Mark Watkins
7ce407f6e9 Cleanup some unused variable, Qt4 build fix 2014-04-17 14:56:04 +10:00
Sean Stangl
80defa6186 Clean up common_gui.{cpp,h}.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 14:50:43 +10:00
Mark Watkins
df88beb45f Qt ISODate in screenshot filename has bad colon characters on windows 2014-04-16 20:36:49 +10:00
Mark Watkins
214d693201 Bump build number 2014-04-16 17:27:43 +10:00
Mark Watkins
cdec714156 Spelling fixes, update_notes 2014-04-16 00:17:10 +10:00
Mark Watkins
a9b2fe7db2 Added Position tracking foundation, and Somnopose CSV importer 2014-04-15 23:59:24 +10:00
Mark Watkins
38d849719d Added user details to Statistics page 2014-04-15 21:02:51 +10:00
Mark Watkins
142d1f96a0 Made Welcome browser and intro HTML text translatable 2014-04-15 14:47:23 +10:00
Mark Watkins
a1991e658a Merge branch 'master' of ssh://git.code.sf.net/p/sleepyhead/code 2014-04-15 13:20:05 +10:00
Mark Watkins
0500a39797 Updated About box, updated translation templates 2014-04-15 13:19:29 +10:00
Sean Stangl
1979083de8 Style cleanup for gGraphView.h.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-14 20:11:10 +10:00
Sean Stangl
1d235f9fdc Cleanup PreferencesDialog::on_resetGraphButton_clicked().
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-14 19:35:25 +10:00