mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
GcChartWindow Refactor
.. use GcChartWindow as the base class for all charts -- so we can truly upload *any* chart to the cloudDB .. miscellaneous charts that were still defined as GcWindow have been converted to GcChartWindow .. GcChartWindow layout issues (using QGridLayout insted of a QStackedLayout) are fixed which will also resolve a few rendering issues related to NOWEBKIT. .. Aerolab needed lots of cosmetic fixups once it became a GcChartWindow .. Added 'Upload Chart...' to mirror the 'Download Chart..' option on the hamburger menu as users will instinctively look for the option there instead of under the chart menu.
This commit is contained in:
@@ -78,6 +78,7 @@ Q_DECLARE_METATYPE(GcWinID)
|
||||
#define VIEW_HOME 0x08
|
||||
#define VIEW_INTERVAL 0x16
|
||||
|
||||
class GcChartWindow;
|
||||
class GcWindowRegistry {
|
||||
Q_DECLARE_TR_FUNCTIONS(GcWindowRegistry)
|
||||
public:
|
||||
@@ -87,7 +88,7 @@ class GcWindowRegistry {
|
||||
GcWinID id;
|
||||
|
||||
static void initialize(); // initialize global registry
|
||||
static GcWindow *newGcWindow(GcWinID id, Context *context);
|
||||
static GcChartWindow *newGcWindow(GcWinID id, Context *context);
|
||||
static QStringList windowsForType(int type);
|
||||
static QList<GcWinID> idsForType(int type);
|
||||
static QString title(GcWinID id);
|
||||
|
||||
Reference in New Issue
Block a user