mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Trends view perspective filter
.. applies to all charts in the perspective, so you can create a perspective called "Running" and set the filter to "isRun" and all charts in the perspective will only show data from runs. .. updated charts on Trends view to honor the perspective filter, as below: * Overview * Trends * User Chart * Treemap * Critical Power * R Chart * Python Chart * Histogram - for metrics * Summary - no change as deprecating shortly .. renamed the HomeView to TrendsView in line with some of the other recent name changes. The class names were set over 10 years ago and no longer reflect the UI concepts. .. New signal: GcWindow::perspectiveChanged(Perspective *) When the chart is moved from one perspective to another, likely does not need to do anything on Analysis view, but on Trends view its quite likely the filter has changed, so refresh is needed. .. New signal: GcWindow::perspectiveFilterChanged(QString) When the perspective filter is updated this signal is called but only on trends view since it doesn't really matter on Analysis from the charts point of view.
This commit is contained in:
@@ -65,12 +65,6 @@
|
||||
// Not until v4.0
|
||||
//#include "RouteWindow.h"
|
||||
|
||||
#define VIEW_TRAIN 0x01
|
||||
#define VIEW_ANALYSIS 0x02
|
||||
#define VIEW_DIARY 0x04
|
||||
#define VIEW_HOME 0x08
|
||||
#define VIEW_INTERVAL 0x16
|
||||
|
||||
// GcWindows initialization is done in initialize method to enable translations
|
||||
GcWindowRegistry* GcWindows;
|
||||
|
||||
@@ -79,37 +73,37 @@ GcWindowRegistry::initialize()
|
||||
{
|
||||
static GcWindowRegistry GcWindowsInit[34] = {
|
||||
// name GcWinID
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("Overview "),GcWindowTypes::OverviewTrends },
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("User Chart"),GcWindowTypes::UserTrends },
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("Trends"),GcWindowTypes::LTM },
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("TreeMap"),GcWindowTypes::TreeMap },
|
||||
//{ VIEW_HOME, tr("Weekly Summary"),GcWindowTypes::WeeklySummary },// DEPRECATED
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("Power Duration "),GcWindowTypes::CriticalPowerSummary },
|
||||
//{ VIEW_HOME, tr("Training Plan"),GcWindowTypes::SeasonPlan },
|
||||
//{ VIEW_HOME|VIEW_DIARY, tr("Performance Manager"),GcWindowTypes::PerformanceManager },
|
||||
{ VIEW_TRENDS|VIEW_DIARY, tr("Overview "),GcWindowTypes::OverviewTrends },
|
||||
{ VIEW_TRENDS|VIEW_DIARY, tr("User Chart"),GcWindowTypes::UserTrends },
|
||||
{ VIEW_TRENDS|VIEW_DIARY, tr("Trends"),GcWindowTypes::LTM },
|
||||
{ VIEW_TRENDS|VIEW_DIARY, tr("TreeMap"),GcWindowTypes::TreeMap },
|
||||
//{ VIEW_TRENDS, tr("Weekly Summary"),GcWindowTypes::WeeklySummary },// DEPRECATED
|
||||
{ VIEW_TRENDS|VIEW_DIARY, tr("Power Duration "),GcWindowTypes::CriticalPowerSummary },
|
||||
//{ VIEW_TRENDS, tr("Training Plan"),GcWindowTypes::SeasonPlan },
|
||||
//{ VIEW_TRENDS|VIEW_DIARY, tr("Performance Manager"),GcWindowTypes::PerformanceManager },
|
||||
{ VIEW_ANALYSIS, tr("User Chart "),GcWindowTypes::UserAnalysis },
|
||||
{ VIEW_ANALYSIS, tr("Overview"),GcWindowTypes::Overview },
|
||||
{ VIEW_ANALYSIS|VIEW_INTERVAL, tr("Summary"),GcWindowTypes::RideSummary },
|
||||
{ VIEW_ANALYSIS, tr("Summary"),GcWindowTypes::RideSummary },
|
||||
{ VIEW_ANALYSIS, tr("Data"),GcWindowTypes::MetadataWindow },
|
||||
//{ VIEW_ANALYSIS, tr("Summary and Details"),GcWindowTypes::Summary },
|
||||
//{ VIEW_ANALYSIS, tr("Editor"),GcWindowTypes::RideEditor },
|
||||
{ VIEW_ANALYSIS|VIEW_INTERVAL, tr("Performance"),GcWindowTypes::AllPlot },
|
||||
{ VIEW_ANALYSIS, tr("Performance"),GcWindowTypes::AllPlot },
|
||||
{ VIEW_ANALYSIS, tr("Power Duration"),GcWindowTypes::CriticalPower },
|
||||
{ VIEW_ANALYSIS, tr("Histogram"),GcWindowTypes::Histogram },
|
||||
{ VIEW_HOME|VIEW_DIARY, tr("Distribution"),GcWindowTypes::Distribution },
|
||||
{ VIEW_TRENDS|VIEW_DIARY, tr("Distribution"),GcWindowTypes::Distribution },
|
||||
{ VIEW_ANALYSIS, tr("Pedal Force vs Velocity"),GcWindowTypes::PfPv },
|
||||
{ VIEW_ANALYSIS, tr("Heartrate vs Power"),GcWindowTypes::HrPw },
|
||||
{ VIEW_ANALYSIS|VIEW_INTERVAL, tr("Map"),GcWindowTypes::RideMapWindow },
|
||||
{ VIEW_ANALYSIS, tr("Map"),GcWindowTypes::RideMapWindow },
|
||||
{ VIEW_ANALYSIS, tr("R Chart"),GcWindowTypes::RConsole },
|
||||
{ VIEW_HOME, tr("R Chart "),GcWindowTypes::RConsoleSeason },
|
||||
{ VIEW_TRENDS, tr("R Chart "),GcWindowTypes::RConsoleSeason },
|
||||
{ VIEW_ANALYSIS, tr("Python Chart"),GcWindowTypes::Python },
|
||||
{ VIEW_HOME, tr("Python Chart "),GcWindowTypes::PythonSeason },
|
||||
{ VIEW_TRENDS, tr("Python Chart "),GcWindowTypes::PythonSeason },
|
||||
//{ VIEW_ANALYSIS, tr("Bing Map"),GcWindowTypes::BingMap },
|
||||
{ VIEW_ANALYSIS, tr("Scatter"),GcWindowTypes::Scatter },
|
||||
{ VIEW_ANALYSIS, tr("Aerolab"),GcWindowTypes::Aerolab },
|
||||
{ VIEW_DIARY, tr("Calendar"),GcWindowTypes::Diary },
|
||||
{ VIEW_DIARY, tr("Navigator"), GcWindowTypes::ActivityNavigator },
|
||||
{ VIEW_DIARY|VIEW_HOME, tr("Summary "), GcWindowTypes::DateRangeSummary },
|
||||
{ VIEW_DIARY|VIEW_TRENDS, tr("Summary "), GcWindowTypes::DateRangeSummary },
|
||||
{ VIEW_TRAIN, tr("Telemetry"),GcWindowTypes::DialWindow },
|
||||
{ VIEW_TRAIN, tr("Workout"),GcWindowTypes::WorkoutPlot },
|
||||
{ VIEW_TRAIN, tr("Realtime"),GcWindowTypes::RealtimePlot },
|
||||
@@ -117,7 +111,7 @@ GcWindowRegistry::initialize()
|
||||
{ VIEW_TRAIN, tr("Video Player"),GcWindowTypes::VideoPlayer },
|
||||
{ VIEW_TRAIN, tr("Workout Editor"),GcWindowTypes::WorkoutWindow },
|
||||
{ VIEW_TRAIN, tr("Live Map"),GcWindowTypes::LiveMapWebPageWindow },
|
||||
{ VIEW_ANALYSIS|VIEW_HOME|VIEW_TRAIN, tr("Web page"),GcWindowTypes::WebPageWindow },
|
||||
{ VIEW_ANALYSIS|VIEW_TRENDS|VIEW_TRAIN, tr("Web page"),GcWindowTypes::WebPageWindow },
|
||||
{ 0, "", GcWindowTypes::None }};
|
||||
// initialize the global registry
|
||||
GcWindows = GcWindowsInit;
|
||||
|
||||
Reference in New Issue
Block a user