mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Deprecate DiaryWindow
Old calendar is replaced by the new Planning Calendar
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ChartBar.h"
|
#include "ChartBar.h"
|
||||||
#include "DiaryWindow.h"
|
|
||||||
#include "DiarySidebar.h"
|
#include "DiarySidebar.h"
|
||||||
#include "Context.h"
|
#include "Context.h"
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "GcOverlayWidget.h"
|
#include "GcOverlayWidget.h"
|
||||||
#include "DiaryWindow.h"
|
|
||||||
#include "DiarySidebar.h"
|
#include "DiarySidebar.h"
|
||||||
#include "Context.h"
|
#include "Context.h"
|
||||||
#include "Colors.h"
|
#include "Colors.h"
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "GcSideBarItem.h"
|
#include "GcSideBarItem.h"
|
||||||
#include "DiaryWindow.h"
|
|
||||||
#include "DiarySidebar.h"
|
#include "DiarySidebar.h"
|
||||||
|
|
||||||
// fixed width stuff, easier to set globally
|
// fixed width stuff, easier to set globally
|
||||||
|
|||||||
@@ -24,9 +24,6 @@
|
|||||||
#include "AerolabWindow.h"
|
#include "AerolabWindow.h"
|
||||||
#include "AllPlotWindow.h"
|
#include "AllPlotWindow.h"
|
||||||
#include "CriticalPowerWindow.h"
|
#include "CriticalPowerWindow.h"
|
||||||
#ifdef GC_HAVE_ICAL
|
|
||||||
#include "DiaryWindow.h"
|
|
||||||
#endif
|
|
||||||
#include "HistogramWindow.h"
|
#include "HistogramWindow.h"
|
||||||
#include "LTMWindow.h"
|
#include "LTMWindow.h"
|
||||||
#include "VideoWindow.h"
|
#include "VideoWindow.h"
|
||||||
@@ -99,7 +96,7 @@ GcWindowRegistry::initialize()
|
|||||||
//{ VIEW_ANALYSIS, tr("Bing Map"),GcWindowTypes::BingMap },
|
//{ VIEW_ANALYSIS, tr("Bing Map"),GcWindowTypes::BingMap },
|
||||||
{ VIEW_ANALYSIS, tr("Scatter"),GcWindowTypes::Scatter },
|
{ VIEW_ANALYSIS, tr("Scatter"),GcWindowTypes::Scatter },
|
||||||
{ VIEW_ANALYSIS, tr("Aerolab"),GcWindowTypes::Aerolab },
|
{ VIEW_ANALYSIS, tr("Aerolab"),GcWindowTypes::Aerolab },
|
||||||
{ VIEW_TRENDS|VIEW_DIARY, tr("Calendar"),GcWindowTypes::Diary },
|
//{ VIEW_TRENDS|VIEW_DIARY, tr("Calendar"),GcWindowTypes::Diary },
|
||||||
{ VIEW_TRENDS|VIEW_DIARY, tr("Navigator"), GcWindowTypes::ActivityNavigator },
|
{ VIEW_TRENDS|VIEW_DIARY, tr("Navigator"), GcWindowTypes::ActivityNavigator },
|
||||||
//{ VIEW_DIARY|VIEW_TRENDS, tr("Summary "), GcWindowTypes::DateRangeSummary }, // DEPRECATED IN V3.6
|
//{ VIEW_DIARY|VIEW_TRENDS, tr("Summary "), GcWindowTypes::DateRangeSummary }, // DEPRECATED IN V3.6
|
||||||
{ VIEW_TRAIN, tr("Telemetry"),GcWindowTypes::DialWindow },
|
{ VIEW_TRAIN, tr("Telemetry"),GcWindowTypes::DialWindow },
|
||||||
@@ -160,11 +157,6 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
|
|||||||
case GcWindowTypes::AllPlot: returning = new AllPlotWindow(context); break;
|
case GcWindowTypes::AllPlot: returning = new AllPlotWindow(context); break;
|
||||||
case GcWindowTypes::CriticalPower: returning = new CriticalPowerWindow(context, false); break;
|
case GcWindowTypes::CriticalPower: returning = new CriticalPowerWindow(context, false); break;
|
||||||
case GcWindowTypes::CriticalPowerSummary: returning = new CriticalPowerWindow(context, true); break;
|
case GcWindowTypes::CriticalPowerSummary: returning = new CriticalPowerWindow(context, true); break;
|
||||||
#ifdef GC_HAVE_ICAL
|
|
||||||
case GcWindowTypes::Diary: returning = new DiaryWindow(context); break;
|
|
||||||
#else
|
|
||||||
case GcWindowTypes::Diary: returning = new GcChartWindow(context); break;
|
|
||||||
#endif
|
|
||||||
case GcWindowTypes::Histogram: returning = new HistogramWindow(context); break;
|
case GcWindowTypes::Histogram: returning = new HistogramWindow(context); break;
|
||||||
#ifdef GC_WANT_R
|
#ifdef GC_WANT_R
|
||||||
case GcWindowTypes::RConsole: returning = new RChart(context, true); break;
|
case GcWindowTypes::RConsole: returning = new RChart(context, true); break;
|
||||||
@@ -256,6 +248,7 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
|
|||||||
case GcWindowTypes::SeasonPlan: returning = new PlanningWindow(context); break;
|
case GcWindowTypes::SeasonPlan: returning = new PlanningWindow(context); break;
|
||||||
case GcWindowTypes::UserAnalysis: returning = new UserChartWindow(context, false); break;
|
case GcWindowTypes::UserAnalysis: returning = new UserChartWindow(context, false); break;
|
||||||
case GcWindowTypes::UserTrends: returning = new UserChartWindow(context, true); break;
|
case GcWindowTypes::UserTrends: returning = new UserChartWindow(context, true); break;
|
||||||
|
case GcWindowTypes::Diary:
|
||||||
case GcWindowTypes::Calendar: returning = new PlanningCalendarWindow(context); break;
|
case GcWindowTypes::Calendar: returning = new PlanningCalendarWindow(context); break;
|
||||||
default: return NULL; break;
|
default: return NULL; break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ class NavigatorCellDelegate;
|
|||||||
class GroupByModel;
|
class GroupByModel;
|
||||||
class SearchFilter;
|
class SearchFilter;
|
||||||
class SearchFilterBox;
|
class SearchFilterBox;
|
||||||
class DiaryWindow;
|
|
||||||
class DiarySidebar;
|
class DiarySidebar;
|
||||||
class QSortFilterProxyModel;
|
class QSortFilterProxyModel;
|
||||||
class RideNavigatorSortProxyModel;
|
class RideNavigatorSortProxyModel;
|
||||||
@@ -73,7 +72,6 @@ class RideNavigator : public GcChartWindow
|
|||||||
|
|
||||||
friend class ::NavigatorCellDelegate;
|
friend class ::NavigatorCellDelegate;
|
||||||
friend class ::GroupByModel;
|
friend class ::GroupByModel;
|
||||||
friend class ::DiaryWindow;
|
|
||||||
friend class ::DiarySidebar;
|
friend class ::DiarySidebar;
|
||||||
friend class ::GcMiniCalendar;
|
friend class ::GcMiniCalendar;
|
||||||
friend class ::DataFilter;
|
friend class ::DataFilter;
|
||||||
|
|||||||
@@ -345,8 +345,8 @@ contains(DEFINES, "GC_WANT_R") {
|
|||||||
LIBS += $${ICAL_LIBS}
|
LIBS += $${ICAL_LIBS}
|
||||||
|
|
||||||
# add caldav and diary functions
|
# add caldav and diary functions
|
||||||
HEADERS += Core/ICalendar.h Charts/DiaryWindow.h Cloud/CalDAV.h Cloud/CalDAVCloud.h
|
HEADERS += Core/ICalendar.h Cloud/CalDAV.h Cloud/CalDAVCloud.h
|
||||||
SOURCES += Core/ICalendar.cpp Charts/DiaryWindow.cpp Cloud/CalDAV.cpp Cloud/CalDAVCloud.cpp
|
SOURCES += Core/ICalendar.cpp Cloud/CalDAV.cpp Cloud/CalDAVCloud.cpp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user