Commit Graph

79 Commits

Author SHA1 Message Date
Alejandro Martinez
be01a861b8 Fix crash when importing compressed zip files
The bug was introduced by #4751 when QScopedPointer was replaced
by std::unique_ptr but release() was not called to replace take().
2025-12-19 14:05:52 -03:00
Paul Johnson
c67d913f11 Deprecate QT5 support (#4751)
* Remove Qt5 Compatibility
* Remove QT compiler directives < QT6.5.3, set QT6.5.3 as minimum GC version
* Remove references to QT5 Video
Fixes #4750
2025-12-18 10:37:55 -03:00
Joachim Kohlhammer
77df5b372c Train View: Improved the selection of workouts (#4400)
Added support to
* filter workouts by multiple metrics
* rate and tag workouts
* view detailed information about the selected workout
* Preserving user-content in trainDB on rescan for workouts
Fixes #411
2024-05-20 13:57:58 -03:00
Alejandro Martinez
e3ad77e9c6 Remove levmar dependency
It is not being used
2024-03-19 16:36:34 -03:00
Andreas Buhr
360b740dad adapt SSL protocol name (#3954)
QSsl::TlsV1SslV3 has been renamed to TlsV1_0.
See
https://doc.qt.io/qt-5/qssl.html#SslProtocol-enum

This might be merged at any time.
2024-01-10 16:51:52 -03:00
Andreas Buhr
32d10609d7 Replace QColor::dark by QColor::darker and light by lighter (#3941)
QColor::dark and QColor::light are deprecated. This patch adapts
the code to use QColor::darker and QColor::lighter.
2024-01-09 20:48:17 -03:00
Andreas Buhr
28d8390fac Replace QFontMetrics::width by QFontMetrics::horizontalAdvance (#3921)
QFontMetrics::width was deprecated. This patch replaces all usages
by QFontMetrics::horizontalAdvance.
It also replace three usages of QTextEdit::setTabStopWidth
by QTestEdit::setTabStopDistance.
2024-01-09 08:26:43 -03:00
enngq11k
0dd4bf6816 Cursor in text workout editor was invisible
Changed the background to a lighter color to get the cursor visible again. To achive a good contrast, the text color for the selected line is now black. This combination works for dark and light mode.
2023-11-28 08:25:12 +00:00
Alejandro Martinez
73e2e0709b Fix wrapper code for zlib to recognize directories
encoded as files of size=0 with names ending in "/"
Fixes #4189
2022-07-28 15:48:39 -03:00
Alejandro Martinez
387873d9f0 Guard GCC pragmas
To avoid warnings when using other compilers s.t. clang or msvc
2022-07-17 20:27:31 -03:00
Mark Liversedge
a3f42c0746 Horizontal and Vertical Line Annotations on UserChart
.. annotate(hline|vline, "text", style, value) to add a horizontal or
   vertical line to the plot for the current series on a UserChart.

   style is one of solid, dash, dot, dashdot or dashdotdot which are
   the standard Qt pen styles for drawing lines.

   I also took the opportunity to refactor how annotations are passed
   from the datafilter down to the generic plot. This should make it
   far easier to add annotations in the future.

.. fixed a SEGV in the voronoi annotation, which was related to memory
   management and the sqrt_nsites variable (honestly, I am amazed it
   ever worked).

.. labels in Python and R charts are now broken, will fixup shortly when
   worked out how it should work (annotations are related to a series).
2021-10-12 22:13:09 +01:00
Mark Liversedge
7be34c1dcd malloc.h, you ok grandad?
.. its stdlib.h now old timer.
2021-09-30 19:56:43 +01:00
Mark Liversedge
70ed4e36e0 Voronoi diagram on chart
.. The diagram now displays on a chart, but there are a few issues.
   Will work through them as more testing done.
2021-09-30 19:00:35 +01:00
Mark Liversedge
5502d87af7 Additional Refactor Voronoi
.. updated to have a more Qt/C++ friendly interface:

    Voronoi *test = new Voronoi();
    test->addSite(QPointF(2,5));
    test->addSite(QPointF(3,2));
    test->addSite(QPointF(6,4));
    test->run(QRectF());
    delete test;

    the output is still written to standard out as a
    series of points, lines, vertexes and edges. This
    was to enable validation against the original
    c program.

.. whilst the original functionality is now embedded a
   further update will need to convert the output into
   a vector of lines to draw.

   will do this as part of adding it to a plot as an
   annotation.
2021-09-30 08:42:38 +01:00
Mark Liversedge
d56d52c01f Refactor Future's algorithm
.. from C to a C++ class.

   Moved the original code to a sundirectory for reference and
   moved all the global variables and methods into a new class
   called Voronoi.

.. the code still needs more work but wanted to remove the global
   variables as there were lots and a big risk they interact
   with other parts of the codebase and libraries.
2021-09-29 10:07:30 +01:00
Mark Liversedge
d568dd0e06 Linux build error (Another Voronoi fixup)
.. apologies, working on multiple platforms at once is a pain.

   will refactor the Steven Future code into its own C++ class
   in the next few days.
2021-09-28 23:02:01 +01:00
Mark Liversedge
53ee8f358c Future's Algorithm
.. for calculating Vornoi diagrams.
2021-09-28 19:28:42 +01:00
Mark Liversedge
4c720884b6 DataFilter - kmeans()
.. kmeans(centers|assignments, k, dim1, dim2 .. dimn)

   perform a k means cluster on data with multiple dimensions
   and return the centers, or the assignments.

   the return values are ordered so they can be displayed
   easily in an overview table e.g.

   values {
       kmeans(centers, 3, metrics(TSS), metrics(IF));
   }

.. will look at how we might plot these in charts with either
   color coding of points or perhaps voronoi diagrams.
2021-09-28 17:31:09 +01:00
Mark Liversedge
4c6c8e6d71 Additional Windows fixups for Fast Kmeans
.. std::max needs <algorithm> and don't need <unistd> at all.
2021-09-28 11:45:34 +01:00
Mark Liversedge
5fb2dfb73e Fast Kmeans on Windows
.. remove unused general functions that work with memory and time
   in a non-portable way.
2021-09-28 11:35:32 +01:00
Mark Liversedge
1dc1cd678f Fast Kmeans Algorithm
.. with grateful thanks to Greg Hamerly

   A fast kmeans algorithm described here:
   https://epubs.siam.org/doi/10.1137/1.9781611972801.12

   The source repository is also here:
   https://github.com/ghamerly/fast-kmeans

   NOTE:

   The original source has been included largely as-is with
   a view to writing a wrapper around it using Qt semantics
   for use in GoldenCheetah (e.g. via datafilter)

   The original source included multiple kmeans algorithms
   we have only kept the `fast' Hamerly variant.
2021-09-28 10:25:17 +01:00
Mark Liversedge
a4d928e4a0 More muted and modern Toolbar buttons
.. the side bar, bottom bar and related buttons were still
   following a skeuomorphic design that has long since
   fallen into disuse.

.. now have a more muted feel with hover/press colors active
   on mouse events.

.. moved the whatsthis button to the far right since this
   is quite a common placement in other apps.

.. it is noticeable how we use many many different schemes
   for hover/pressed colors across the UI- at some point
   this should be unified.

.. also deprecated the segmentcontrol.
2021-08-24 20:56:31 +01:00
Mark Liversedge
4d5841e4b1 Move Boost GeometricTools_BSplineCurve.h to contrib
.. it is not our code.
2021-05-16 12:27:17 +01:00
Mark Liversedge
e1ac00b860 Move contributed sources to contrib directory
.. Makes it easier to identify code that has been snaffled in from
   other repositories and check licensing

.. The httpserver is now no longer optional, since it is delivered
   as contributed source.
2021-05-16 10:33:09 +01:00
Dave Waterworth
5e9a5dc75c Fixes for Fortius USB timeout issue and new Fortius VR driver package built with Zadig
- Fortius read was timing out on some hardware
- If read fails then write fails
- Moved write before read to rectify
- Added windows 10 x64 compatible driver inf built with Zadig
2016-01-18 09:48:52 +13:00
Joern
052ac8222d LIBKML patch (only for Windows)
... removing tests,... from LIBKML build
... allowing building of base functionality of LIBKML on Windows with MinGW
... covering the LIBKML functional scope used by GoldenCheetah
2015-08-11 20:27:45 +02:00
Chet Henry
32d80b524a Fix inital screen load value format bug 2014-12-07 07:24:56 -07:00
Chet Henry
36f8b36df5 Even though ridelogger doen't use fit the ant+ plugin does 2014-12-07 07:24:56 -07:00
Chet Henry
69fbec9061 Syncronize values, keys and keylables
Also don't wait for unpaired ant devices forever
2014-12-07 07:24:56 -07:00
Chet Henry
dcb78aff9e Fix but with prefence update and screen. 2014-12-07 07:24:55 -07:00
Chet Henry
d899584d4b Lighter Ant+ connections 2014-12-07 07:24:55 -07:00
Chet Henry
1acd2304cf More ant code clean up 2014-12-07 07:24:55 -07:00
Chet Henry
18159ed113 Clean up ant code 2014-12-07 07:24:55 -07:00
Chet Henry
04d0042df7 Add classes to proguard keep 2014-12-07 07:24:55 -07:00
Chet Henry
b1f72ce77a Adding Proguard 2014-12-07 07:24:55 -07:00
Chet Henry
1efecf1705 Extendable File Format
All file formats to be extended

Also fixed a bug in the display of values
2014-12-07 07:24:55 -07:00
Chet Henry
54c4cd6daa Clean up code, reduce memory and make the world a better place 2014-12-07 07:24:55 -07:00
Chet Henry
1823e202ff Fix textview overflow in display 2014-12-07 07:24:55 -07:00
Chet Henry
3764b0b7ca Update view on sensor list change 2014-12-07 07:24:55 -07:00
Chet Henry
c63104f612 Clean up currenValues view and better style of dashboard 2014-12-07 07:24:55 -07:00
Chet Henry
0acce7538f Replace default diamater with circumference and increase it to 2.096 2014-12-07 07:24:55 -07:00
Chet Henry
204135fc20 Better frount screen layout 2014-12-07 07:24:55 -07:00
Chet Henry
58694d51b6 Change gzip extention to gz for bash completion 2014-12-07 07:24:55 -07:00
Chet Henry
cc31b093f8 Fix wheel size bug 2014-12-07 07:24:55 -07:00
Chet Henry
796a1d6a4e Comment out unimplemented message 2014-12-07 07:24:55 -07:00
Chet Henry
4000453d03 Add wheel diamater configuration 2014-12-07 07:24:55 -07:00
Chet Henry
f00c2deb1f Allow user to display imperial units 2014-12-07 07:24:55 -07:00
Chet Henry
842f334ff6 Fix ant+ ui flow 2014-12-07 07:24:55 -07:00
Chet Henry
f64acd3d68 Better theme and style 2014-12-07 07:24:55 -07:00
Chet Henry
f1bf65e60d Light theme and better sample view 2014-12-07 07:24:55 -07:00