Commit Graph

5558 Commits

Author SHA1 Message Date
Mark Liversedge
17543e061f Merge pull request #1515 from amtriathlon/master
Minor fixes
2015-08-16 15:50:16 +01:00
Alejandro Martinez
94586ae438 Added a reference for Daniels/Gilbert VDOT formula 2015-08-16 11:10:08 -03:00
Alejandro Martinez
d8b92afaca Fixed Energy Expenditure chart for imperial units 2015-08-16 11:09:18 -03:00
Mark Liversedge
84053c8dca Formula Editor Improvements 1 of 2
.. update the editor to do some basic syntax
   highlighting; literals in red, comments in
   blue and so on.

.. next commit will focus on highlighting errors
   with a wavy line and some form of error list.
2015-08-15 23:47:04 +01:00
Mark Liversedge
ecce7ad19f Merge pull request #1514 from amtriathlon/master
More example charts SWOLF and Energy Expenditure
2015-08-15 23:37:50 +01:00
Alejandro Martinez
b88983bd81 More example charts SWOLF and Energy Expenditure 2015-08-15 19:35:22 -03:00
Mark Liversedge
738277561d Merge pull request #1513 from amtriathlon/master
Minor changes for DataFilter to compile on MinGW
2015-08-15 15:51:21 +01:00
Alejandro Martinez
5649575b2d Minor changes for DataFilter to compile on MinGW 2015-08-15 11:46:32 -03:00
Alejandro Martinez
b607d5bbf7 Added sample charts using formulas for VDOT and sTSS 2015-08-15 11:45:24 -03:00
Mark Liversedge
7728b3fabf DataFilter Functions and "math"
.. updated the datafilter to handle general functions
   and parse them without needing them declared in the lexer

.. makes it much easier to add new functions in the future

.. did this to add core math functions;
   *  sin, cos, tan, asin, acos, atan,
   *  sinh, cosh, tanh, asinh, acosh, atanh
   *  exp, log, log10, ceil, floor, round
   *  fabs, isinf, isnan

.. we can add more later; erf/gamma spring to mind !
2015-08-15 14:17:53 +01:00
Mark Liversedge
2e2e9c39e7 Formula const()
.. for pi and e, we can add more later
   i.e. const(pi) and const(e) return high
   precision values for both
2015-08-15 10:33:09 +01:00
Mark Liversedge
b5ce92a045 Formula config() function and test charts
.. added config(cv) .. config(pmax) etc

.. also added some test charts including one that
   just displays configuration
2015-08-14 22:10:29 +01:00
Mark Liversedge
b7dabef8ea Bests need curve filtering applied
.. but only if needed !
2015-08-14 12:40:48 +01:00
Mark Liversedge
1d90ec32da LTM Filter for a curve
.. allow the data selected for a curve to filter
   as well. So you can e.g. plot duration riding vs
   duration biking on the same plot.
2015-08-14 11:23:53 +01:00
Mark Liversedge
9693b85b1f Library LTM Chart subtitle
.. changes when using a preset.
2015-08-14 08:24:32 +01:00
Mark Liversedge
075f97c713 Formula Running Total
.. so can accumulate e.g. time and distance
2015-08-14 08:13:53 +01:00
Mark Liversedge
3156c1e111 Add DataFilter functions to autocomplete list
.. so you get best(), tiz(), lts() et al
   popup in the autocompleter.
2015-08-13 23:09:48 +01:00
grauser
7b401ce19e AnalysisSidebar: Rename Route
fix #1430
2015-08-13 22:25:54 +02:00
Mark Liversedge
dde01c0bfe Fix SEGV LTM Edit
.. when using Moving Average trend.
2015-08-13 17:38:07 +01:00
Mark Liversedge
4d63727cc2 Formula Aggregation Type
.. is it Peak, Average, Max, Total to control how
   values are aggregated.
2015-08-13 17:07:51 +01:00
Mark Liversedge
21058d5480 Merge pull request #1512 from amtriathlon/VDOTCalculator
VDOT and T-Pace Calculator
2015-08-13 16:31:45 +01:00
Alejandro Martinez
148cab11a5 VDOT and T-Pace Calculator
An alternative tool to estimate threshold pace for running
2015-08-13 12:29:27 -03:00
Mark Liversedge
d3411420cc Formula Editor Completer
.. edit formulas on LTM tool with autocompletion
   but not when in comments.
2015-08-13 13:53:18 +01:00
Mark Liversedge
480c9d0d04 LTM Plot Formula Part 2 of 2
.. added to LTMPlot and DataFilter methods

.. very rough and ready, but works.

.. can refine and enhance now basics are in place.
2015-08-13 12:35:17 +01:00
Mark Liversedge
def8c989f1 LTM Plot Formula Part 1 of 2
.. added to settings and chart configuration
2015-08-13 11:33:17 +01:00
Mark Liversedge
270da50d3f DataFilter Comments with '#'
.. just one line comments to help explain when
   writing more complex types of expressions
2015-08-13 10:16:52 +01:00
Mark Liversedge
6f37b208b3 DataFilter Conditional Expression
.. uses the C/C++ notation:

   expr ? expr2 : expr3

   Where expr is the condition e.g. X>2
   and expr2 is what to evaluate to if expr is true
   and expr3 is what to evaluate to if expr is false

   e.g.

   (Workout_Code = "1L3") ? 1 : 0

   Will evaluate as 1 for all workouts where the
   workout code is 1L3 and 0 for all other workouts.
2015-08-13 09:24:26 +01:00
Mark Liversedge
6c2cb6d73b Enhanced DataFilter Completion
.. now will repeat completion beyond the very
   first word on the line

.. needs to be enhanced to work when not at the
   end of the text (i.e. cursor move)
2015-08-13 07:38:22 +01:00
Mark Liversedge
8b65975ff5 Fix exit SEGV on SearchBox
.. resize event was checking menu icon, which was never
   going to change due to a resize event.

.. it crashed during window exit since it dereferenced objects
   that had been deleted.
2015-08-12 23:16:58 +01:00
Mark Liversedge
477e2ff613 Fix QCompleter Crash
.. still only works for first typing and will fix
   that, but no longer crashes on change mode from
   named search.
2015-08-12 17:35:38 +01:00
Mark Liversedge
5a0499c22c Disable Searchbox completer
.. for now, it crashes occasionally due to cross-thread
   issues, and doesn't work across the text anyway.
   will make it permanently associated by not active
   when in search mode.
2015-08-12 13:34:57 +01:00
Mark Liversedge
122283fe65 MainWindow search box animation
.. expand when active since we're gonna get funky
   with it in v4.0
2015-08-12 13:31:43 +01:00
Mark Liversedge
226e63f9f4 Basic Autocompleter for Filter
.. need to update to work in the middle of the expression
   not just at the beginning.
2015-08-12 11:54:56 +01:00
Mark Liversedge
0857d1ce13 V4.0 Development starts
.. update versioning info
2015-08-12 10:13:44 +01:00
Mark Liversedge
d0cfd5f663 Refactor DataFilter
.. get rid of terrible cut and paste code, duplicating
   eval for particular leafs

.. eval returns a Result() object which can be numeric
   or textual (date strings are parsed to numeric)

.. can now add formulas to LTM as well as adding more
   functions that may be useful (conditionals, maths
   spring to mind first).
2015-08-12 10:07:11 +01:00
Mark Liversedge
e2cb864d5b Version 3.2 Release
.. update of version numbers
2015-08-12 09:43:33 +01:00
Mark Liversedge
3d4425852c Merge pull request #1510 from prokoudine/master
Updated Russian translation
2015-08-12 09:30:48 +01:00
Alexandre Prokoudine
078534ca9e Update Russian translation 2015-08-12 10:47:01 +03:00
grauser
37ecb2c353 translation: small fix for french 2015-08-12 09:22:46 +02:00
grauser
f7bbc05835 translation: French for 3.2 (2/2) 2015-08-12 00:00:03 +02:00
Mark Liversedge
aa818bec00 Logical Expressions with >2 Primary Expressions
.. ie. expr && expr was supported but not
   expr && expr && expr
2015-08-11 20:08:07 +01:00
Mark Liversedge
4ae9d45695 Merge pull request #1509 from Joern-R/DE
LIBKML patch (only for Windows)
2015-08-11 20:02:39 +01: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
Mark Liversedge
c500d8bb36 Fix DataFilter grammar for logical expressions
.. NP > 200 && IF > 0.85 didn't work because the datafilter
   grammar needed fixing up for precedence of the && and || operators.

.. this has been fixed by embedding into the grammar; binary expressions
   and logical expressions are now declared individually.

.. the generated tree uses the same encoding so no changes required
   to the code, just the grammar
2015-08-11 09:14:43 +01:00
grauser
46769d6ca9 Translation: French for 3.2 (1/2) 2015-08-10 23:22:43 +02:00
grauser
3c5378f047 Export: Unable to export in CSV format
fix #1507
2015-08-10 21:46:58 +02:00
Mark Liversedge
aefb50b6b3 Merge pull request #1506 from Joern-R/DE
Update Translation DE
2015-08-09 15:40:01 +01:00
Joern
3200b9e334 Update Translation DE 2015-08-09 14:20:53 +02:00
Mark Liversedge
602b94b730 Merge pull request #1504 from amtriathlon/master
Updated Spanish Translation
2015-08-08 19:51:47 +01:00
Alejandro Martinez
c877e8731c Updated Spanish Translation
New backup message on upgrade
2015-08-08 15:49:28 -03:00