User Configurable Colors

A new config pane for defining color preferences for chart
curves, shading, background and grid lines et al. Default values
echo the current hard-coded values.
This commit is contained in:
Mark Liversedge
2010-03-22 19:11:47 +00:00
committed by Sean Rhea
parent 778d651f00
commit 38df7c28bd
34 changed files with 586 additions and 131 deletions

View File

@@ -24,6 +24,7 @@
#include "AllPlot.h"
#include "BestIntervalDialog.h"
#include "ChooseCyclistDialog.h"
#include "Colors.h"
#include "Computrainer.h"
#include "ConfigDialog.h"
#include "CriticalPowerWindow.h"
@@ -103,7 +104,10 @@ MainWindow::MainWindow(const QDir &home) :
setAttribute(Qt::WA_DeleteOnClose);
settings = GetApplicationSettings();
GCColor *GCColorSet = new GCColor(this); // get/keep colorset
GCColorSet->colorSet(); // shut up the compiler
QVariant unit = settings->value(GC_UNIT);
useMetricUnits = (unit.toString() == "Metric");