2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Moved out control of animations for line filtering to separated class.

This commit is contained in:
23rd
2023-09-27 14:43:37 +03:00
committed by John Preston
parent bdd35a6e2b
commit 8ded88baf5
12 changed files with 195 additions and 318 deletions

View File

@@ -21,6 +21,7 @@ class PointDetailsWidget;
class ChartLinesFilterWidget;
class AbstractChartView;
class Header;
class LinesFilterController;
class ChartWidget : public Ui::RpWidget {
public:
@@ -60,7 +61,8 @@ private:
void setXPercentageLimits(
Data::StatisticalChart &chartData,
Limits xPercentageLimits,
const std::unique_ptr<AbstractChartView> &AbstractChartView,
const std::unique_ptr<AbstractChartView> &chartView,
const std::shared_ptr<LinesFilterController> &linesFilter,
crl::time now);
void start();
void finish();
@@ -70,7 +72,8 @@ private:
crl::time now,
ChartHorizontalLinesView &horizontalLinesView,
std::vector<BottomCaptionLineData> &dateLines,
const std::unique_ptr<AbstractChartView> &AbstractChartView);
const std::unique_ptr<AbstractChartView> &chartView,
const std::shared_ptr<LinesFilterController> &linesFilter);
[[nodiscard]] Limits currentXLimits() const;
[[nodiscard]] Limits currentXIndices() const;
@@ -162,6 +165,8 @@ private:
bool _useMinHeight = false;
std::shared_ptr<LinesFilterController> _linesFilterController;
ChartAnimationController _animationController;
crl::time _lastHeightLimitsChanged = 0;