Compare commits

...

2 Commits

Author SHA1 Message Date
Alejandro Martinez
f89e8bbb74 Deprecate RouteWindow and add Segments chart
RouteWindows has beeen inactivated for years,
Replaced by a more flexible Python chart added
to default layout.
Required Jinja2 package added to included Python.
[publish binaries]
2026-03-30 15:02:24 -03:00
Alejandro Martinez
753758f893 Don't update intervals when metadata changes
It may be to expensive in some cases making the
user interfase too slow when updating fields
for little benefit, intervals are updated on save.
2026-03-29 13:16:37 -03:00
10 changed files with 17 additions and 16 deletions

View File

@@ -584,7 +584,7 @@ bool RideItem::hasLinkedActivity() const
}
void
RideItem::refresh()
RideItem::refresh(bool bUpdateIntervals)
{
if (!isstale) return;
@@ -685,7 +685,7 @@ RideItem::refresh()
}
// Update auto intervals AFTER ridefilecache as used for bests
updateIntervals();
if (bUpdateIntervals) updateIntervals();
// update fingerprints etc, crc done above
fingerprint = static_cast<unsigned long>(context->athlete->zones(sport)->getFingerprint(dateTime.date()))

View File

@@ -223,7 +223,7 @@ class RideItem : public QObject
bool hasLinkedActivity() const;
// refresh when stale
void refresh();
void refresh(bool bUpdateIntervals=true);
// get/set
void setRide(RideFile *);

View File

@@ -57,8 +57,6 @@
#include "Overview.h"
#endif
#include "UserChartWindow.h"
// Not until v4.0
//#include "RouteWindow.h"
// GcWindows initialization is done in initialize method to enable translations
GcWindowRegistry* GcWindows;
@@ -231,11 +229,7 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
case GcWindowTypes::WebPageWindow: returning = new WebPageWindow(context); break;
case GcWindowTypes::LiveMapWebPageWindow: returning = new LiveMapWebPageWindow(context); break;
case GcWindowTypes::ElevationChart: returning = new ElevationChartWindow(context); break;
#if 0 // not till v4.0
case GcWindowTypes::RouteSegment: returning = new RouteWindow(context); break;
#else
case GcWindowTypes::RouteSegment: returning = new GcChartWindow(context); break;
#endif
case GcWindowTypes::RouteSegment: returning = new GcChartWindow(context); break; // Deprecated
// summary and old ride summary charts now replaced with an Overview - note id gets reset
case GcWindowTypes::Summary:

View File

@@ -9,6 +9,7 @@ scipy
lmfit
plotly
importlib_metadata
Jinja2
#
# Nice to have
#

File diff suppressed because one or more lines are too long

View File

@@ -789,12 +789,6 @@ win32-msvc* {
SOURCES += Core/WindowsCrashHandler.cpp
}
###======================================
### PENDING SOURCE FILES [not active yet]
###======================================
DEFERRES += Core/RouteWindow.h Core/RouteWindow.cpp Core/RouteItem.h Core/RouteItem.cpp
###====================
### MISCELLANEOUS FILES
###====================