mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
3.1 Upgrade Processing Part 3 of 3
.. PM chart is deprecated, so when loading an LTM chart
with skiba curves is implemented instead.
.. we cannot easily add charts to the layout without refactoring
HomeWindow so have moved that out of scope
NOTE: The upgrade processing has not been activated -- but can
be once we build and issue our first 3.1 RC.
This commit is contained in:
@@ -275,10 +275,17 @@ GcUpgrade::upgrade(const QDir &home)
|
||||
// ** high risk of breaking user setups -- this is due to the complexity
|
||||
// ** and multiple ways the user can manage their zones.
|
||||
|
||||
// BELOW ARE TODO
|
||||
// 9. Add a W'bal chart to the ride view
|
||||
// 10. Add a CP History chart to the trend view
|
||||
// 11. Add a Library chart to the trend view
|
||||
// BELOW ARE PROBLEMATIC TOO:
|
||||
// ** there are no functions to read/write the layout.xml
|
||||
// ** files without refactoring HomeWindow to do so -- which
|
||||
// ** is a risky change and instead we will need the user
|
||||
// ** to reset their layout to get the latest chart setup:
|
||||
// Add a W'bal chart to the ride view
|
||||
// Add a CP History chart to the trend view
|
||||
// Add a Library chart to the trend view
|
||||
|
||||
// PM deprecation has been handled by returning an LTM chart with
|
||||
// PMC curves when an PM chart is still in the layout.
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ GcWindowRegistry::initialize()
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("Collection TreeMap"),GcWindowTypes::TreeMap },
|
||||
//{ VIEW_HOME, tr("Weekly Summary"),GcWindowTypes::WeeklySummary },// DEPRECATED
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("Critical Mean Maximal"),GcWindowTypes::CriticalPowerSummary },
|
||||
//{ VIEW_HOME|VIEW_DIARY, tr("Performance Manager"),GcWindowTypes::PerformanceManager },
|
||||
{ VIEW_ANALYSIS, tr("Ride Summary"),GcWindowTypes::RideSummary },
|
||||
{ VIEW_ANALYSIS, tr("Details"),GcWindowTypes::MetadataWindow },
|
||||
{ VIEW_ANALYSIS, tr("Summary and Details"),GcWindowTypes::Summary },
|
||||
@@ -143,7 +144,23 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
|
||||
case GcWindowTypes::GoogleMap: returning = new GoogleMapControl(context); break;
|
||||
case GcWindowTypes::Histogram: returning = new HistogramWindow(context); break;
|
||||
case GcWindowTypes::Distribution: returning = new HistogramWindow(context, true); break;
|
||||
case GcWindowTypes::PerformanceManager: // retired now returns an LTM
|
||||
case GcWindowTypes::PerformanceManager:
|
||||
{
|
||||
// the old PMC is deprecated so we return an LTM with PMC curves and default settings
|
||||
returning = new LTMWindow(context);
|
||||
|
||||
// a PMC LTM Setting
|
||||
QString value = "AAAACgBQAE0AQwArACsAAAAIADIAMAAwADkAJXS3AAAAAP8AJXZBAAAAAP8AAAABAAH///////////////8AAAALAAAAAwAAAAIAAAAAEgBzAGsAaQBiAGEAXwBzAHQAcwAAAC4AUwBrAGkAYgBhACAAUwBoAG8AcgB0ACAAVABlAHIAbQAgAFMAdAByAGUAcwBzAAAALgBTAGsAaQBiAGEAIABTAGgAbwByAHQAIABUAGUAcgBtACAAUwB0AHIAZQBzAHMAAAAMAFMAdAByAGUAcwBzAAAAAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAfyr8IRwk//////////8B/////wAA//8AAAAAAAA/8AAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAAAAAgAADhD/////AAAACv////8AAAAAAAAAAAwAMgAgAFAAYQByAG0AAAAAAAAD5wAADhAAAAAAAgAAAAASAHMAawBpAGIAYQBfAGwAdABzAAAALABTAGsAaQBiAGEAIABMAG8AbgBnACAAVABlAHIAbQAgAFMAdAByAGUAcwBzAAAALABTAGsAaQBiAGEAIABMAG8AbgBnACAAVABlAHIAbQAgAFMAdAByAGUAcwBzAAAADABTAHQAcgBlAHMAcwAAAAAAAQAAAAAAAAAAAAAAAAEAAABYAAAAAwAAAEoAAAAbAAAAFP//////////Af//AAD/////AAAAAAAAP/AAAAAAAAAAAAAAAf//AAAAAAAAAAAAAAAAAAAAAAIAAA4Q/////wAAAAoAAAAAAAAAAAAAAAAMADIAIABQAGEAcgBtAAAAAAAAA+cAAA4QAAAAAAIAAAAAEABzAGsAaQBiAGEAXwBzAGIAAAAoAFMAawBpAGIAYQAgAFMAdAByAGUAcwBzACAAQgBhAGwAYQBuAGMAZQAAACgAUwBrAGkAYgBhACAAUwB0AHIAZQBzAHMAIABCAGEAbABhAG4AYwBlAAAADABTAHQAcgBlAHMAcwAAAAAAAAAAAADAjzgAAAAAAAH////A////wP///8AAAH//AAAAAP//////////Af//VVX//wAAAAAAAAAAP/AAAAAAAAAAAAAAAf//AAAAAAAAAAAAAAAAAQAAAAIAAA4Q/////wAAAAr/////AAAAAAEAAAAMADIAIABQAGEAcgBtAAAAAAAAA+cAAA4QAAAAAAAAAg==";
|
||||
|
||||
// setup and apply the property
|
||||
QByteArray base64(value.toLatin1());
|
||||
QByteArray unmarshall = QByteArray::fromBase64(base64);
|
||||
QDataStream s(&unmarshall, QIODevice::ReadOnly);
|
||||
LTMSettings x;
|
||||
s >> x;
|
||||
returning->setProperty("settings", QVariant().fromValue<LTMSettings>(x));
|
||||
}
|
||||
break;
|
||||
case GcWindowTypes::LTM: returning = new LTMWindow(context); break;
|
||||
#ifdef GC_HAVE_QWTPLOT3D
|
||||
case GcWindowTypes::Model: returning = new ModelWindow(context); break;
|
||||
|
||||
Reference in New Issue
Block a user