mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Code Cleanup: Power Hist
.. static const in class GNU extension.
This commit is contained in:
@@ -42,6 +42,22 @@
|
||||
|
||||
#include "LTMCanvasPicker.h" // for tooltip
|
||||
|
||||
// discritized unit for smoothing
|
||||
static const double wattsDelta = 1.0;
|
||||
static const double wattsKgDelta = 0.01;
|
||||
static const double nmDelta = 0.1;
|
||||
static const double hrDelta = 1.0;
|
||||
static const double kphDelta = 0.1;
|
||||
static const double cadDelta = 1.0;
|
||||
|
||||
// digits for text entry validator
|
||||
static const int wattsDigits = 0;
|
||||
static const int wattsKgDigits = 2;
|
||||
static const int nmDigits = 1;
|
||||
static const int hrDigits = 0;
|
||||
static const int kphDigits = 1;
|
||||
static const int cadDigits = 0;
|
||||
|
||||
PowerHist::PowerHist(MainWindow *mainWindow):
|
||||
minX(0),
|
||||
rideItem(NULL),
|
||||
@@ -185,23 +201,6 @@ PowerHist::~PowerHist() {
|
||||
delete grid;
|
||||
}
|
||||
|
||||
// static const variables from PoweHist.h:
|
||||
// discritized unit for smoothing
|
||||
const double PowerHist::wattsDelta;
|
||||
const double PowerHist::wattsKgDelta;
|
||||
const double PowerHist::nmDelta;
|
||||
const double PowerHist::hrDelta;
|
||||
const double PowerHist::kphDelta;
|
||||
const double PowerHist::cadDelta;
|
||||
|
||||
// digits for text entry validator
|
||||
const int PowerHist::wattsDigits;
|
||||
const int PowerHist::wattsKgDigits;
|
||||
const int PowerHist::nmDigits;
|
||||
const int PowerHist::hrDigits;
|
||||
const int PowerHist::kphDigits;
|
||||
const int PowerHist::cadDigits;
|
||||
|
||||
void
|
||||
PowerHist::refreshZoneLabels()
|
||||
{
|
||||
|
||||
@@ -172,22 +172,6 @@ class PowerHist : public QwtPlot
|
||||
// source cache
|
||||
RideFileCache *cache;
|
||||
|
||||
// discritized unit for smoothing
|
||||
static const double wattsDelta = 1.0;
|
||||
static const double wattsKgDelta = 0.01;
|
||||
static const double nmDelta = 0.1;
|
||||
static const double hrDelta = 1.0;
|
||||
static const double kphDelta = 0.1;
|
||||
static const double cadDelta = 1.0;
|
||||
|
||||
// digits for text entry validator
|
||||
static const int wattsDigits = 0;
|
||||
static const int wattsKgDigits = 2;
|
||||
static const int nmDigits = 1;
|
||||
static const int hrDigits = 0;
|
||||
static const int kphDigits = 1;
|
||||
static const int cadDigits = 0;
|
||||
|
||||
// storage for data counts
|
||||
QVector<unsigned int> wattsArray, wattsZoneArray, wattsKgArray, nmArray, hrArray,
|
||||
hrZoneArray, kphArray, cadArray;
|
||||
|
||||
Reference in New Issue
Block a user