Commit Graph

148 Commits

Author SHA1 Message Date
Phil Olynyk
d5778bafb6 Check Crostini mount points, and force name to OSCAR-test if not OSCAR 2020-08-25 21:09:53 -04:00
Guy Scharf
ce18739d14 ResMed and Oximetry loader enhancements
- Oximetry loader from file now remembers last directory data was imported from.
- ResMed loader loads from last day or oldest purge date if a day was purged since last import.
  purgeDate added to MachineInfo to implement this.  Purge date set when a day is purged and cleared after an import.
2020-08-23 15:30:38 -07:00
Phil Olynyk
961fdb13db Clean up formatting, add debug and warnings, fix STR length test to allow multiple daily imports. 2020-08-03 14:01:04 -04:00
sawinglogz
7316ac676c Add a menu item to create a zip of all diagnostic logs.
Also fix a buffering issue in XmlRecorder that left devices.xml empty
in the zip.
2020-07-21 13:25:17 -04:00
sawinglogz
162e5695b1 Update the OSCAR data zip to use the live debug log instead of creating one.
Also fix the logger so that messages are logged immediately rather than once
per second.
2020-07-21 13:25:17 -04:00
Guy Scharf
7e751a80f7 Fix problems with changing auto check interval 2020-07-05 10:58:25 -07:00
Guy Scharf
44b7261edd Merge branch 'master' into updater 2020-07-04 18:21:33 -07:00
Guy Scharf
619ce66b9e Auto check for updates
Checks for updates to OSCAR at startup and profile close.
    Also allows user to check with Help/Check for updates.
    Updates controlled by versions.xml in www.sleepfiles.com/oscar/versions
2020-07-04 18:17:25 -07:00
Phil Olynyk
4324000787 Merge the storageInfo branch just merged into master 2020-06-27 09:52:02 -04:00
Phil Olynyk
bbb2f5a5a5 Delete the OS-specif scanning code 2020-06-26 23:17:27 -04:00
Phil Olynyk
cd40fc9a9e Test if lastpath exists before adding it to path scan 2020-06-26 22:57:08 -04:00
Phil Olynyk
8812f3c6ed Remove bypass of card Detect for Linux - not sure why it was there 2020-06-20 21:57:03 -04:00
Phil Olynyk
0b8112219f Merge branch 'master' into modify-card-scan 2020-06-20 20:03:37 -04:00
Phil Olynyk
475bfee924 Make debug output conditional 2020-06-10 16:56:06 -04:00
Phil Olynyk
795a3a5456 add missing close paren to #elif defined(... 2020-06-10 15:47:25 -04:00
Phil Olynyk
c2c61c6629 Correct Mac define value and drop tmpfs from qDebug output 2020-06-09 22:11:34 -04:00
Phil Olynyk
80a5642ee3 Use QStorageInfo to simplify getDriveList() 2020-06-09 17:10:25 -04:00
Guy Scharf
010d3ca9e1 Fix possible startup problem with View/Show Personal Data 2020-06-06 12:34:34 -07:00
Guy Scharf
d02d01f3f2 Fix use case where View/Show Personal Data might not work 2020-06-05 09:25:42 -07:00
Guy Scharf
6e1727eb2c New privacy tool View/Show Personal Data shows and hides personal identification from statistics window and reports
This option applies to the application and not just the current profile.
2020-06-04 21:25:23 -07:00
Guy Scharf
5c88770bfe Improve language in error message windows 2020-06-03 10:02:20 -07:00
Phil Olynyk
2da3a9cd86 Track down zero time that led to future sessions 2020-05-07 16:43:52 -04:00
sawinglogz
d9386a993b Partial fix for database upgrade loop.
Resmed loader still needs to return -1 on error.

Also fixed a crasher in MainWindow::finishCPAPImport.
2020-05-06 13:40:59 -04:00
sawinglogz
ad15655ffb Improve Viatom file selection on Windows.
Also remove a warning about unexpected data.
2020-05-06 11:42:03 -04:00
sawinglogz
17e2ef0a12 Detect OpenGL crashes on Windows and automatically downgrade to the software engine. 2020-04-25 16:30:35 -04:00
sawinglogz
2ac43a4a79 Fix zipping on Windows. 2020-04-24 16:58:44 -04:00
sawinglogz
ea3da552aa Fix untranslated string in mainwindow. 2020-04-11 15:59:45 -04:00
sawinglogz
f5bb5655e0 Enable the Daily tab/button after importing data from the Data menu.
Previously only oximetry data imported via the wizard would update
the button. (As would quitting/relaunching, or switching profiles.)
2020-04-04 17:37:19 -04:00
Phil Olynyk
13ba9aba48 Bad: lastpath is undef for not-Linux 2020-03-30 16:37:43 -04:00
sawinglogz
828d449aa4 Update summary cache so that purging oximetry persists between launches. 2020-03-26 19:59:54 -04:00
sawinglogz
47c97721fb Use platform-native fullscreen shortcut for Maximize Toggle.
Also fix annoying typo in mainwindow.ui.
2020-03-26 19:48:09 -04:00
sawinglogz
bba5f93795 Comment out unused slots in MainWindow. 2020-02-17 09:39:38 -05:00
sawinglogz
498451df4a Fix Windows file dialog for loading Viatom files. 2020-02-16 21:02:30 -05:00
sawinglogz
b96f22bcd9 Fix double import progress window. 2020-02-16 20:12:25 -05:00
sawinglogz
e0b50a5680 Improve purging UI for oximeters.
The imported data doesn't list a brand, so the UI needs to fall back
on the loader name. Also, the purge menu wasn't getting updated
after an oximetry import.
2020-01-31 15:35:36 -05:00
sawinglogz
ea66563521 Allow purging of any machine, not just CPAP.
Otherwise there was no way to purge and re-import Somnopose or
hypnogram data, nor oximetry apart from one day at a time.
2020-01-31 15:16:31 -05:00
sawinglogz
a585b6dcfe Refactor PopulatePurgeMenu in advance of supporting more machines. 2020-01-31 14:35:15 -05:00
sawinglogz
32ffcc4f94 First pass at Dreem CSV loader.
Something's not quite right about the hypnogram timestamps, since
there are more than would fit within the start/stop times.
2020-01-29 20:00:33 -05:00
sawinglogz
8ef068af7e Fix ZEO loader to handle MyZeo 0.3.1 date formatting.
Also make the UI more informative and fix up the regression test output.
2020-01-29 16:21:42 -05:00
sawinglogz
448bfa048c Refactor ZEO loader to allow for testing, add regression tests. 2020-01-29 15:47:11 -05:00
sawinglogz
7a42caeccf Create new Troubleshooting submenu under Help and move a bunch of items there.
Also change "archive" to "zip" in the menu and prompts for sending diagnostic data.
2020-01-27 14:13:41 -05:00
sawinglogz
6d47210c95 Ask the user where to save screenshots (by default).
There's a new preference to turn this off.

Also update the release notes post-beta-1.
2020-01-27 14:00:41 -05:00
sawinglogz
5122524df7 Leave a breadcrumb for future work on Purge Oximetry, which only half works. 2020-01-27 12:37:10 -05:00
sawinglogz
8951068895 Add support for importing a whole folder of Viatom files. 2020-01-26 18:13:09 -05:00
sawinglogz
b6f7ebac6f Move Viatom filename pattern matching into loader. 2020-01-26 17:51:56 -05:00
sawinglogz
9cb7de950b Add regression tests for Viatom loader.
Also enable the native file dialog box for importing Viatom files.
2020-01-23 19:11:05 -05:00
sawinglogz
66f13f3143 Initial commit of contributed Viatom SpO2 loader.
Diff applied from the following commit by dave madden <dhm@mersenne.com>,
replacing tabs with spaces:

fa38850503
2020-01-23 12:57:44 -05:00
sawinglogz
94e39c2733 Use Qt standard shortcuts for printing, bold, italic, and underline.
In theory these will automatically get localized, since they're using
Qt's official enums.
2020-01-22 20:10:43 -05:00
sawinglogz
78d3155ecd Add zip creation of OSCAR data folder.
Also fix the zip progress bar when compressing more than 2GB data,
and prevent the zip file from ever trying to include itself.
2020-01-22 17:33:15 -05:00
sawinglogz
5dfbc1fbe4 Add progress bar to zip creation. 2020-01-22 12:59:58 -05:00
sawinglogz
c4619dad35 Clean up zip API. 2020-01-22 11:25:20 -05:00
sawinglogz
1c4c7871da Add zip creation of SD card data.
This uses the miniz library, which is self-contained in a single
.c/.h pair and has an MIT license.

Swapping out the zip library should be fairly straightforward
if ever necessary.
2020-01-21 17:37:37 -05:00
sawinglogz
46e061d12b Add CPAP data card selection to archive creation workflow.
Also slightly refine some verbiage in the import process to make it simpler.

Zip creation still to come.
2020-01-21 12:56:08 -05:00
sawinglogz
36d3467a64 Refactor on_action_Import_Data_triggered into multiple functions.
No change in behavior.
2020-01-21 11:56:22 -05:00
sawinglogz
99badd40c3 Add menu entries for creating zip archives of SD cards and OSCAR data.
Also hide a few "not yet implemented" items.

Actual zipping comes later.
2020-01-21 11:22:49 -05:00
sawinglogz
aba58d9085 Second pass at fixing display of Preferences menu shortcut on macOS.
The previous fix didn't work 100% of the time either.
2020-01-18 20:34:10 -05:00
sawinglogz
91dbd3a204 Fix the display of Preferences menu shortcut on macOS.
It was appearing only on first launch, when OSCAR was asking where
to store its data. Now it appears consistently.
2020-01-18 17:01:35 -05:00
sawinglogz
127a3e1964 Fix logger thread so that it doesn't lose messages at startup.
This was particularly noticeable when running for the first time and
selecting OSCAR's data location.
2020-01-18 11:41:09 -05:00
sawinglogz
2e92107cce Update version display throughout to use the new information and be consistent.
The full version now includes the build/git information embedded within
it as build metadata according to the Semantic Versioning 2.0.0 spec,
for example: "1.1.0-beta-1+branch-name-a1b2c3d".

Now the full version string, with all detail is always displayed
EXCEPT for release versions, in which case just the simple version
number ("1.1.0") is displayed in the primary UI.

- Main window title: simple version for release versions, full version
    string otherwise
- Notifications: same as main window title
- System tray: same as main window title
- About window title: same as main window title
- About window release notes: always include full version string
- Reports: always include full version string
- Under the logo (about dialog, profile selector, new profile
    window): removed, as it is largely redundant and can
    interfere with the window geometry.
- Database upgrade alert: same as main window title
- Database newer alert: same as main window title

The full version string is also included within the preference and
profile .xml files, but because build metadata is ignored in version
comparisons, differences in builds will not cause any spurious
alerts. However, changes in prerelease versions will continue to
be significant, as they should be.
2020-01-16 13:05:55 -05:00
sawinglogz
88957aeb7f Replace VersionString with getVersion() everywhere. 2020-01-15 19:45:46 -05:00
sawinglogz
6f194507a8 Move version-related code into version.cpp. 2020-01-13 18:41:24 -05:00
sawinglogz
097362dfa1 Move version constants out of header file into new cpp file. 2020-01-13 18:41:24 -05:00
Seeker4
2e1069b8d0 Allow user to select graph order when resetting -- Standard or Advanced 2019-09-28 20:15:16 -07:00
Seeker4
c1b4137857 Remove some qDebug statements that aren't needed. 2019-08-28 16:31:56 -07:00
Seeker4
be147fee0a Always allow import cpap and oximetry. Allow Daily, Overview, and Statistics only if there is some data present. 2019-08-28 15:23:13 -07:00
Seeker4
48c0387125 Release notes for language changes, other minor changes 2019-08-19 12:34:18 -07:00
Seeker4
75c0a9950a Format dates per national settings. 2019-08-06 10:51:14 -07:00
Seeker4
4532b22fc6 Add View/Reset Graphs to put graphs in original order and heights. Overlays and dotted lines are not yet reset. 2019-07-30 19:59:01 -07:00
Seeker4
f635302058 Improve performance of enabling or disabling pie chart option 2019-07-25 06:26:19 -07:00
Seeker4
11f2fb5d3f Change GraphSnapshots to ShowPieChart in code, UI, and preferences. Convert any existing GraphSnapshots preferences to ShowPieChart. 2019-07-14 20:25:49 -07:00
Seeker4
39542ba7db Move Pie Chart option from Preferences dialog to View menu. 2019-07-13 14:53:57 -07:00
Seeker4
86d5c074a4 Set tool button fonts correctly if application font is changed. 2019-07-04 18:20:19 -07:00
Seeker4
e0c70bf082 Update date display on Overview page when font is changed in Preferences dialog 2019-07-02 08:25:47 -07:00
Seeker4
a464c5c2ca Refresh various displays to reflect any font changes made in preference settings. 2019-07-02 08:04:43 -07:00
Seeker4
461abde2e6 Better qDebug messages when rebuilding data 2019-06-21 22:09:19 -07:00
Seeker4
575b9a5372 More refactoring and re-organizing. 2019-06-12 13:32:22 -07:00
Seeker4
a628e2a9ff Move statistics printing code from mainwindow.cpp to statistics.cpp. Abandon printing of Help subsystem pages. 2019-06-11 16:43:13 -07:00
Seeker4
59270e00c6 Add Help/System Information to display full build information, active graphics engine, and data directory. 2019-06-01 19:51:18 -07:00
Norman Heino
a2ff7ef95e Perform UI updates in bulk before/after screenshot
Fixes 0000074
2019-05-23 05:10:34 +00:00
Norman Heino
d0f0aed29d Improve screenshot feature
Limit screenshots to OSCAR's application window under macOS.
Use main window geometry as basis for screen capture rectangle, removing
the need for resizeing hacks.

Tested on:
* macOS 10.14
* Ubuntu 18.04
* Windows 10
2019-05-18 15:30:10 +02:00
Seeker4
c6c11fd4f9 Fix crash when taking screenshot before a profile is open. 2019-05-17 23:44:39 +00:00
Norman Heino
a074cffa5b Fix macOS application menu 2019-05-15 06:49:12 +02:00
Seeker4
c751182aa5 Comment-out obsolete code to create Welcome message. 2019-05-06 18:08:49 -07:00
Phil Olynyk
c0246470f5 Replace old man Oscar logo with new big O logo 2019-04-16 13:12:26 -04:00
Phil Olynyk
c67cd82bb3 Hide the Lifesaver button in the right panel if no Help 2019-04-10 15:52:47 -04:00
Phil Olynyk
7fd7d50d8a Zeo and Somnopose file dialogs fixed 2019-04-07 23:28:54 -04:00
Phil Olynyk
069a2f405a Remove the Help ? from title bars 2019-04-07 21:54:04 -04:00
Phil Olynyk
78269d25e5 Comment out a sleep(3) that delays opening daily window 2019-04-07 12:07:25 -04:00
Phil Olynyk
723de9c912 Use Maximize (with frame & menu) instead of full screen 2019-04-03 18:32:33 -04:00
Phil Olynyk
98811bca15 Added progress bar to migration routine 2019-04-02 10:04:44 -04:00
Phil Olynyk
b229506d9c Restore the systraymenu so that notification work 2019-03-27 13:33:32 -04:00
Phil Olynyk
60d1460ef6 Add public EnableTabs so refreshing welcome page does tabs too 2019-03-25 21:10:03 -04:00
Phil Olynyk
1be2b84111 Fix tab and button visibility and replace PREF as required 2019-03-25 19:38:16 -04:00
Phil Olynyk
a57acf3211 Allow for translated html texts 2019-03-20 09:49:17 -04:00
Phil Olynyk
590032e76d Sorry, massive list of small changes - debugging, sleepyhead deleteion, etc 2019-03-10 12:03:19 -04:00
Phil Olynyk
32e1c63735 Changed bugs to issues in UI 2019-02-25 14:08:17 -05:00
Phil Olynyk
108e0354d9 Change OSCR to OSCAR in cpp, h, ui, and html files 2019-02-23 19:58:25 -05:00
Phil Olynyk
17b53482bd Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00