Commit Graph

59 Commits

Author SHA1 Message Date
Guy Scharf
9acd685f73 --datadir option now allows fully qualified paths on Mac, Linux.
Before, fully qualified paths were supported only for Windows.
2021-11-04 21:01:18 -07:00
Guy Scharf
e53b66882e Update copyright notices in code -- no other changes 2021-10-23 20:19:53 -07:00
Guy Scharf
3a12ae5c71 Some SleepStyle machines were incorrectly identified as Icon machines. 2021-10-21 10:40:58 -07:00
Guy Scharf
41ea0389f6 Add SleepStyle loader
This is the first test version of the F&P SleepStyle loader
Additional refinements are yet to be made. Events and timestamps
need to be confirmed, but overall the loader appears to be working.
2021-07-08 10:43:02 -07:00
Guy Scharf
a06d37e10e Correct error dialog when data cannot be written to OSCAR_Data
Also minor update to Release Notes
2021-01-18 21:47:59 -07:00
Phil Olynyk
f05320e725 Add font debugging, add setApplicationFont to Daily::Load(date) 2021-01-15 20:20:36 -05:00
Guy Scharf
abf0747b50 Add data directory path to error message when unable to write test file.
- This is intended to make the error message and log entries more descriptive.
2020-09-12 22:07:40 +00:00
Guy Scharf
de0069171a Support migration of OSCAR as well as SleepyHead data. Update Release Notes. 2020-09-10 01:12:45 +00:00
Guy Scharf
b338d7aa3d Check for ability to write to data directory at startup
Show critical error message and exit OSCAR if unable to write to data directory
    Improve qWarning message in logger.cpp
    Present warning dialog if logger cannot write to disk
2020-08-16 12:46:36 -07:00
Guy Scharf
7c350068e0 Minor improvements to some file open and copy error messages 2020-08-12 17:25:15 -07:00
sawinglogz
20dfb666b0 Write the debug log to a file within the OSCAR data folder.
Also immediately emit debug messages to console even before the UI is
initialized.

And present a useful error if the OSCAR data folder can't be created.
2020-07-21 13:25:17 -04:00
sawinglogz
6a658b3be0 Enable serial device recording in the main application.
This is transparent to the user and is recorded into a log directory within
the OSCAR_Data directory.

Also add log rotation so that these logs don't grow forever.
2020-07-21 13:25:16 -04: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
Guy Scharf
dcd2fa9566 Correct syntax and logic error in selecting SleepyHead folder for migration 2020-04-30 08:35:59 -07:00
sawinglogz
17e2ef0a12 Detect OpenGL crashes on Windows and automatically downgrade to the software engine. 2020-04-25 16:30:35 -04:00
Phil Olynyk
61c40a6702 Add /usr/local/share to resource pathlist 2020-03-15 16:27:36 -04:00
Phil Olynyk
a688f48f5d Allow linux standard paths for helper folders 2020-03-14 13:43:24 -04:00
sawinglogz
7fddb47dbc Fix regression in e698879 that prevented detection of shift key on launch. 2020-02-17 17:26:00 -05:00
sawinglogz
e698879e17 Move graphic engine configuration before creation of QApplication.
Qt was emitting console warnings about attempts to change
Qt::AA_UseDesktopOpenGL after creating the QApplication.
2020-02-17 10:59:26 -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
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
1f4bb2d435 Clean up build information and version interface.
This removes git dependencies from everything except for version.cpp,
and removes the associated interfaces in version.h.

Since the full version string contains the branch and revision
number where applicable, the build information no longer needs
to report branch and revision separately. It also now queries
version.cpp for a more consistent and reliable build time.

Debug output of build information is also now more consistent with
less redundant code.
2020-01-16 13:58:18 -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
80489a4b29 Add error handling in case a developer accidentally defines an invalid version. 2020-01-16 11:54:41 -05:00
sawinglogz
88957aeb7f Replace VersionString with getVersion() everywhere. 2020-01-15 19:45:46 -05:00
sawinglogz
93b9007f67 Remove old version comparison code. 2020-01-15 17:15:24 -05:00
sawinglogz
d898581ca4 Remove version.h dependency from appsettings.h to reduce unnecessary recompiling. 2020-01-15 16:34:28 -05:00
sawinglogz
6f194507a8 Move version-related code into version.cpp. 2020-01-13 18:41:24 -05:00
Seeker4
af2fc6f9c3 Automatically convert IS language code to HE on startup (new code for Hebrew) 2019-08-19 12:32:26 -07:00
Seeker4
75c0a9950a Format dates per national settings. 2019-08-06 10:51:14 -07:00
Seeker4
f6941843e8 Merge branch 'master' into defaults 2019-07-14 20:28:06 -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
Phil Olynyk
b497b3ccbb QT 5.7 doesn't like comparison of naked chars - construct a QLatin1Char instead 2019-07-12 15:26:05 -04:00
Seeker4
087b18545f Centralize all font validation and setting into new functions in common.cpp. Add registry key to System Info (call it App Key for cross-platform compatibility). 2019-07-04 18:14:41 -07:00
Seeker4
43462f39d3 Correct typo in comment 2019-06-24 10:12:43 -07:00
Seeker4
775eefee71 Allow a Windows path with drive letter to be used as an argument for --datadir 2019-06-24 10:05:58 -07:00
Seeker4
bee6364c5e Write date and time OSCAR started to debug log 2019-06-21 22:08:44 -07:00
Phil Olynyk
e210813156 Remove Q_WS_X11 from main.cpp and change it to Q_OS_LINUX in reports.cpp 2019-06-21 11:02:35 -04:00
Seeker4
b92502ac63 Make pointer to data directory in System Information message box be clickable to open the directory. 2019-06-07 05:00:23 -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
Seeker4
9561e56ad9 Make xxxBuildInfo functions to create and return build information. 2019-06-01 15:12:38 -07:00
Seeker4
91bf0d097e Write build and other identifying information to the beginning of the debug log. 2019-05-31 21:15:56 -07:00
Seeker4
98df2c9a46 Force use of Software graphics engine (aka LegacyGFX) if shift key held down during program start or --legacy command line parameter present. 2019-05-31 15:50:16 -07:00
Phil Olynyk
a4cf207bd1 replace QDir.isEmpty() with QDir.count() == 0 for QT < 5.9 2019-05-24 16:22:44 +00:00
sawinglogz
52338d3e17 Add initial plumbing for unit testing. 2019-05-02 21:51:56 -04:00
Seeker4
7f336ea9d4 Offer migration when destination directory is empty as well as when it does not exist 2019-05-01 08:58:20 -07:00
Phil Olynyk
bcad3ac9da Disable multitasking to avoid crashes 2019-04-24 15:12:07 -04:00
Phil Olynyk
4223bd7d4f Set up oscar-team.org as the DeveloperDomain all the places 2019-04-08 10:26:59 -04:00
Phil Olynyk
98811bca15 Added progress bar to migration routine 2019-04-02 10:04:44 -04:00
Phil Olynyk
6f2aeb98e0 Clarified messages about folder selection and data migrtion 2019-03-31 09:43:41 -04:00