2021-01-05 12:51:39 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
// The background grid of a chart
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class StatsAxis;
|
2021-01-14 11:37:26 +00:00
|
|
|
class StatsView;
|
|
|
|
class ChartLineItem;
|
2021-01-05 12:51:39 +00:00
|
|
|
|
|
|
|
class StatsGrid {
|
|
|
|
public:
|
2021-01-14 11:37:26 +00:00
|
|
|
StatsGrid(StatsView &view, const StatsAxis &xAxis, const StatsAxis &yAxis);
|
2021-01-05 12:51:39 +00:00
|
|
|
void updatePositions();
|
|
|
|
private:
|
2021-01-14 11:37:26 +00:00
|
|
|
StatsView &view;
|
2021-01-05 12:51:39 +00:00
|
|
|
const StatsAxis &xAxis, &yAxis;
|
2021-01-14 11:37:26 +00:00
|
|
|
std::vector<std::unique_ptr<ChartLineItem>> lines;
|
2021-01-05 12:51:39 +00:00
|
|
|
};
|