implemented vertical "zooming" in the TimelineWidget and CurveView

This comes in the form of changing the vertical scale in the CurveView and
adjusting all track heights in the Timeline.
This commit is contained in:
itsmattkc
2019-12-31 00:23:28 +11:00
parent 441555e9f2
commit 2b24fae26f
22 changed files with 220 additions and 41 deletions
+6
View File
@@ -25,6 +25,8 @@ protected:
virtual void ScaleChangedEvent(double scale) override;
virtual void VerticalScaleChangedEvent(double scale) override;
private:
QList<NodeKeyframe*> GetKeyframesSortedByTime();
@@ -36,6 +38,8 @@ private:
void AdjustLines();
void CreateBezierControlPoints(KeyframeViewItem *item);
int text_padding_;
int minimum_grid_space_;
@@ -47,6 +51,8 @@ private:
private slots:
void KeyframeValueChanged();
void KeyframeTypeChanged();
void SelectionChanged();
void BezierControlPointDestroyed();