all time-based panels are now derived from a common base class

Cuts down on a lot of duplicate code between
TimelineWidget/ViewerWidget/CurveWidget/NodeParamView
and TimelinePanel/ViewerPanel/CurvePanel/ParamPanel since they all use similar
time functions.
This commit is contained in:
itsmattkc
2020-02-01 19:39:43 +11:00
parent 5d58479f0a
commit 17c1493aa7
62 changed files with 1076 additions and 1042 deletions
@@ -46,9 +46,9 @@ void TimelineViewRect::SetTrack(const TrackReference &track)
track_ = track;
}
void TimelineViewRect::SetScale(const double &scale)
void TimelineViewRect::ScaleChangedEvent(const double &scale)
{
scale_ = scale;
TimelineScaledObject::ScaleChangedEvent(scale);
UpdateRect();
}