Python Trends / Activity Chart

.. update the registry to support both independently. This is
   to get the ridesummary bool set to trigger refresh when the
   user selects a season on trend view.
This commit is contained in:
Mark Liversedge
2017-12-15 09:40:52 +00:00
parent eae7f1d9ed
commit 147d3b83d9
2 changed files with 7 additions and 2 deletions

View File

@@ -103,7 +103,8 @@ GcWindowRegistry::initialize()
{ VIEW_ANALYSIS|VIEW_INTERVAL, tr("Map"),GcWindowTypes::RideMapWindow },
{ VIEW_ANALYSIS, tr("R Chart"),GcWindowTypes::RConsole },
{ VIEW_HOME, tr("R Chart "),GcWindowTypes::RConsoleSeason },
{ VIEW_ANALYSIS|VIEW_HOME, tr("Python Chart"),GcWindowTypes::Python },
{ VIEW_ANALYSIS, tr("Python Chart"),GcWindowTypes::Python },
{ VIEW_HOME, tr("Python Chart "),GcWindowTypes::PythonSeason },
//{ VIEW_ANALYSIS, tr("Bing Map"),GcWindowTypes::BingMap },
{ VIEW_ANALYSIS, tr("2d Plot"),GcWindowTypes::Scatter },
{ VIEW_ANALYSIS, tr("3d Plot"),GcWindowTypes::Model },
@@ -183,7 +184,9 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
#endif
#ifdef GC_WANT_PYTHON
case GcWindowTypes::Python: returning = new PythonChart(context, true); break;
case GcWindowTypes::PythonSeason: returning = new PythonChart(context, false); break;
#else
case GcWindowTypes::PythonSeason:
case GcWindowTypes::Python: returning = new GcChartWindow(context); break;
#endif
case GcWindowTypes::Distribution: returning = new HistogramWindow(context, true); break;