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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user