mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Calibration Messages minor update
.. add some sample files with calibration messages to the test/rides directory .. remove the calibration marker color config (we can add it back if needed, but was in the wrong 'sequence' and is probably just a little bit *too* fine grained).
This commit is contained in:
@@ -861,10 +861,10 @@ AllPlot::refreshCalibrationMarkers()
|
||||
mrk->attach(this);
|
||||
mrk->setLineStyle(QwtPlotMarker::VLine);
|
||||
mrk->setLabelAlignment(Qt::AlignRight | Qt::AlignTop);
|
||||
mrk->setLinePen(QPen(GColor(CCALIBRATIONMARKER), 0, Qt::DashDotLine));
|
||||
mrk->setLinePen(QPen(GColor(CPLOTMARKER), 0, Qt::DashDotLine));
|
||||
QwtText text("\n\n"+calibration.name);
|
||||
text.setFont(QFont("Helvetica", 9, QFont::Bold));
|
||||
text.setColor(GColor(CCALIBRATIONMARKER));
|
||||
text.setColor(GColor(CPLOTMARKER));
|
||||
if (!bydist)
|
||||
mrk->setValue(calibration.start / 60.0, 0.0);
|
||||
else
|
||||
|
||||
@@ -110,7 +110,6 @@ void GCColor::setupColors()
|
||||
{ tr("Alternate Power"), "CALTPOWER", Qt::magenta },
|
||||
{ tr("Left Balance"), "CBALANCELEFT", QColor(178,0,0) },
|
||||
{ tr("Right Balance"), "CBALANCERIGHT", QColor(128,0,50) },
|
||||
{ tr("Plot Markers"), "COLORCALIBRATIONMARKER", QColor(40,40,40) },
|
||||
{ "", "", QColor(0,0,0) },
|
||||
};
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ class ColorEngine : public QObject
|
||||
#define GColor(x) GCColor::getColor(x)
|
||||
|
||||
// Define how many cconfigurable metric colors are available
|
||||
#define CNUMOFCFGCOLORS 71
|
||||
#define CNUMOFCFGCOLORS 70
|
||||
|
||||
#define CPLOTBACKGROUND 0
|
||||
#define CRIDEPLOTBACKGROUND 1
|
||||
@@ -171,6 +171,5 @@ class ColorEngine : public QObject
|
||||
#define CALTPOWER 67
|
||||
#define CBALANCELEFT 68
|
||||
#define CBALANCERIGHT 69
|
||||
#define CCALIBRATIONMARKER 70
|
||||
|
||||
#endif
|
||||
|
||||
BIN
test/rides/20130716_202738.fit
Normal file
BIN
test/rides/20130716_202738.fit
Normal file
Binary file not shown.
BIN
test/rides/20130717_143733.fit
Normal file
BIN
test/rides/20130717_143733.fit
Normal file
Binary file not shown.
@@ -70,3 +70,7 @@ lgulseth...pwx
|
||||
A very short ride (12 seconds) to test array processing and general
|
||||
bounds checking in the GC codebase.
|
||||
|
||||
20130716_202738.fit
|
||||
20130717_143733.fit
|
||||
Two rides that contain the calibration messages collected from
|
||||
an osync headunit.
|
||||
|
||||
Reference in New Issue
Block a user