diff --git a/about_dialog.cpp b/about_dialog.cpp index 0defeb7..58a3ec2 100644 --- a/about_dialog.cpp +++ b/about_dialog.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * @@ -58,7 +58,7 @@ UI_Aboutwindow::UI_Aboutwindow() textedit1->setPlainText( "\n " PROGRAM_NAME " " PROGRAM_VERSION "\n" "\n This program is made by Teunis van Beelen.\n" - "\n Copyright (C) 2015, 2016, 2017 Teunis van Beelen.\n" + "\n Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen.\n" "\n Email: teuniz@gmail.com\n" "\n Disclaimer:\n" " Despite this software is intend to be useful, there is no warranty, use this software at your own risk!\n"); diff --git a/about_dialog.h b/about_dialog.h index 778308b..4a58a12 100644 --- a/about_dialog.h +++ b/about_dialog.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/connection.cpp b/connection.cpp index 308c637..292e25e 100644 --- a/connection.cpp +++ b/connection.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/connection.h b/connection.h index 0991981..2fbcb92 100644 --- a/connection.h +++ b/connection.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/decode_dialog.cpp b/decode_dialog.cpp index 06b1ace..b2a8c71 100644 --- a/decode_dialog.cpp +++ b/decode_dialog.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/decode_dialog.h b/decode_dialog.h index 0c5c1ee..de27deb 100644 --- a/decode_dialog.h +++ b/decode_dialog.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/edflib.c b/edflib.c index e0b98eb..f505e18 100644 --- a/edflib.c +++ b/edflib.c @@ -1,7 +1,7 @@ /* ***************************************************************************** * -* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * All rights reserved. * * email: teuniz@gmail.com diff --git a/edflib.h b/edflib.h index 1a1c1e2..2250a53 100644 --- a/edflib.h +++ b/edflib.h @@ -1,7 +1,7 @@ /* ***************************************************************************** * -* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * All rights reserved. * * email: teuniz@gmail.com @@ -63,7 +63,11 @@ #define EDFLIB_FILETYPE_BDFPLUS 3 #define EDFLIB_MALLOC_ERROR -1 #define EDFLIB_NO_SUCH_FILE_OR_DIRECTORY -2 + +/* when this error occurs, try to open the file with EDFbrowser, + it will give you full details about the cause of the error. */ #define EDFLIB_FILE_CONTAINS_FORMAT_ERRORS -3 + #define EDFLIB_MAXFILES_REACHED -4 #define EDFLIB_FILE_READ_ERROR -5 #define EDFLIB_FILE_ALREADY_OPENED -6 @@ -99,6 +103,25 @@ extern "C" { /* For more info about the EDF and EDF+ format, visit: http://edfplus.info/specs/ */ /* For more info about the BDF and BDF+ format, visit: http://www.teuniz.net/edfbrowser/bdfplus%20format%20description.html */ +/* + * note: In EDF, the sensitivity (e.g. uV/bit) and offset are stored using four parameters: + * digital maximum and minimum, and physical maximum and minimum. + * Here, digital means the raw data coming from a sensor or ADC. Physical means the units like uV. + * The sensitivity in units/bit is calculated as follows: + * + * units per bit = (physical max - physical min) / (digital max - digital min) + * + * The digital offset is calculated as follows: + * + * offset = (physical max / units per bit) - digital max + * + * For a better explanation about the relation between digital data and physical data, + * read the document "Coding Schemes Used with Data Converters" (PDF): + * + * http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sbaa042 + * + */ + struct edf_param_struct{ /* this structure contains all the relevant EDF-signal parameters of one signal */ char label[17]; /* label (name) of the signal, null-terminated string */ @@ -372,7 +395,7 @@ int edf_set_transducer(int handle, int edfsignal, const char *transducer); int edf_set_physical_dimension(int handle, int edfsignal, const char *phys_dim); -/* Sets the physical dimension of signal edfsignal. ("uV", "BPM", "mA", "Degr.", etc.) */ +/* Sets the physical dimension (unit) of signal edfsignal. ("uV", "BPM", "mA", "Degr.", etc.) */ /* phys_dim is a pointer to a NULL-terminated ASCII-string containing the physical dimension of the signal edfsignal */ /* Returns 0 on success, otherwise -1 */ /* This function is recommanded for every signal when you want to write a file */ diff --git a/global.h b/global.h index dd25b0d..591c3b4 100644 --- a/global.h +++ b/global.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * @@ -35,7 +35,7 @@ #define PROGRAM_NAME "DSRemote" -#define PROGRAM_VERSION "0.35_1712291053" +#define PROGRAM_VERSION "0.35_1801021833" #define MAX_PATHLEN 4096 diff --git a/interface.cpp b/interface.cpp index 7a193ca..a7e8a4b 100644 --- a/interface.cpp +++ b/interface.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/lan_connect_thread.cpp b/lan_connect_thread.cpp index ad95895..11bfdef 100644 --- a/lan_connect_thread.cpp +++ b/lan_connect_thread.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/lan_connect_thread.h b/lan_connect_thread.h index 0465405..3eeba44 100644 --- a/lan_connect_thread.h +++ b/lan_connect_thread.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/main.cpp b/main.cpp index 1bb6e3b..22840d4 100644 --- a/main.cpp +++ b/main.cpp @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - app.setAttribute(Qt::AA_DontUseNativeMenuBar); +// app.setAttribute(Qt::AA_DontUseNativeMenuBar); class UI_Mainwindow MainWindow; diff --git a/mainwindow.cpp b/mainwindow.cpp index b037061..cc11026 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/mainwindow.h b/mainwindow.h index 50989fa..3ebd770 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/mainwindow_constr.cpp b/mainwindow_constr.cpp index b7ab13b..9baca02 100644 --- a/mainwindow_constr.cpp +++ b/mainwindow_constr.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/playback_dialog.cpp b/playback_dialog.cpp index e3f930e..17856d1 100644 --- a/playback_dialog.cpp +++ b/playback_dialog.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2017 Teunis van Beelen +* Copyright (C) 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/playback_dialog.h b/playback_dialog.h index 5b4c5e3..4b7b9c9 100644 --- a/playback_dialog.h +++ b/playback_dialog.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2017 Teunis van Beelen +* Copyright (C) 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/read_settings_thread.cpp b/read_settings_thread.cpp index 2708d9c..4f1268c 100644 --- a/read_settings_thread.cpp +++ b/read_settings_thread.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/read_settings_thread.h b/read_settings_thread.h index 52f7060..655cf36 100644 --- a/read_settings_thread.h +++ b/read_settings_thread.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/save_data.cpp b/save_data.cpp index 5fc15ec..a043131 100644 --- a/save_data.cpp +++ b/save_data.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/save_data_thread.cpp b/save_data_thread.cpp index e33ce1d..ac34475 100644 --- a/save_data_thread.cpp +++ b/save_data_thread.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/save_data_thread.h b/save_data_thread.h index 2681304..825f348 100644 --- a/save_data_thread.h +++ b/save_data_thread.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/screen_thread.cpp b/screen_thread.cpp index bb2a933..9f45d49 100644 --- a/screen_thread.cpp +++ b/screen_thread.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/screen_thread.h b/screen_thread.h index e6a0db1..3568207 100644 --- a/screen_thread.h +++ b/screen_thread.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/serial_decoder.cpp b/serial_decoder.cpp index 8f0c529..cb9e7a2 100644 --- a/serial_decoder.cpp +++ b/serial_decoder.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/settings_dialog.cpp b/settings_dialog.cpp index 9e43bc1..0da8267 100644 --- a/settings_dialog.cpp +++ b/settings_dialog.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/settings_dialog.h b/settings_dialog.h index ce1e45d..9a9fe98 100644 --- a/settings_dialog.h +++ b/settings_dialog.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/signalcurve.cpp b/signalcurve.cpp index 0dc0a4c..593951e 100644 --- a/signalcurve.cpp +++ b/signalcurve.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/signalcurve.h b/signalcurve.h index 4d0c186..829dcfc 100644 --- a/signalcurve.h +++ b/signalcurve.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tdial.cpp b/tdial.cpp index 829f9c9..d37da1b 100644 --- a/tdial.cpp +++ b/tdial.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tdial.h b/tdial.h index d9e4504..923a6db 100644 --- a/tdial.h +++ b/tdial.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/timer_handlers.cpp b/timer_handlers.cpp index 07e7183..ae9ab74 100644 --- a/timer_handlers.cpp +++ b/timer_handlers.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tled.cpp b/tled.cpp index f8280ae..28af59f 100644 --- a/tled.cpp +++ b/tled.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tled.h b/tled.h index a26dd19..b4a7b5c 100644 --- a/tled.h +++ b/tled.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tmc_dev.c b/tmc_dev.c index b11315d..df314a7 100644 --- a/tmc_dev.c +++ b/tmc_dev.c @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tmc_dev.h b/tmc_dev.h index 8e89101..22e5504 100644 --- a/tmc_dev.h +++ b/tmc_dev.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tmc_lan.c b/tmc_lan.c index 4b8e28a..ec87eb2 100644 --- a/tmc_lan.c +++ b/tmc_lan.c @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/tmc_lan.h b/tmc_lan.h index 2fdef3e..cc673a8 100644 --- a/tmc_lan.h +++ b/tmc_lan.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/utils.c b/utils.c index 64dd691..a058c06 100644 --- a/utils.c +++ b/utils.c @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/utils.h b/utils.h index 311baea..3bee05f 100644 --- a/utils.h +++ b/utils.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Teunis van Beelen +* Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/wave_dialog.cpp b/wave_dialog.cpp index 3cbc2d8..7c545b7 100644 --- a/wave_dialog.cpp +++ b/wave_dialog.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/wave_dialog.h b/wave_dialog.h index be37201..0c7934b 100644 --- a/wave_dialog.h +++ b/wave_dialog.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/wave_view.cpp b/wave_view.cpp index e8329ee..bc18184 100644 --- a/wave_view.cpp +++ b/wave_view.cpp @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com * diff --git a/wave_view.h b/wave_view.h index 1b2f32e..a4bb885 100644 --- a/wave_view.h +++ b/wave_view.h @@ -3,7 +3,7 @@ * * Author: Teunis van Beelen * -* Copyright (C) 2016, 2017 Teunis van Beelen +* Copyright (C) 2016, 2017, 2018 Teunis van Beelen * * Email: teuniz@gmail.com *