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:
Mark Liversedge
2016-05-30 16:07:39 +01:00
parent 72fde27565
commit a4829b9684
38 changed files with 206 additions and 119 deletions

View File

@@ -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);