mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Move Y position, height, and minimized state into TrackView...
... and eliminate some unnecessary calls to SubstitutePendingChangedTrack, because the track and the substitute store Y and height in their shared TrackView object. Also make GetMinimizedHeight() virtual to avoid inclusion of TrackPanel.h in TrackView.cpp.
This commit is contained in:
@@ -56,8 +56,6 @@ TimeTrack::TimeTrack(const std::shared_ptr<DirManager> &projDirManager, const Zo
|
||||
Track(projDirManager)
|
||||
, mZoomInfo(zoomInfo)
|
||||
{
|
||||
mHeight = 100;
|
||||
|
||||
mEnvelope = std::make_unique<BoundedEnvelope>(true, TIMETRACK_MIN, TIMETRACK_MAX, 1.0);
|
||||
|
||||
SetRangeLower( 0.9 );
|
||||
@@ -312,7 +310,8 @@ void TimeTrack::Draw
|
||||
//
|
||||
// LL: It's because the ruler only Invalidate()s when the NEW value is different
|
||||
// than the current value.
|
||||
mRuler->SetFlip(GetHeight() > 75 ? true : true); // MB: so why don't we just call Invalidate()? :)
|
||||
mRuler->SetFlip( true );
|
||||
//mRuler->SetFlip(GetHeight() > 75 ? true : true); // MB: so why don't we just call Invalidate()? :)
|
||||
mRuler->SetTickColour( theTheme.Colour( clrTrackPanelText ));
|
||||
mRuler->Draw(dc, GetEnvelope());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user