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:
@@ -43,6 +43,7 @@ SetTrackAudioCommand and SetTrackVisualsCommand.
|
||||
#include "../prefs/SpectrogramSettings.h"
|
||||
#include "../Shuttle.h"
|
||||
#include "../ShuttleGui.h"
|
||||
#include "../tracks/ui/TrackView.h"
|
||||
#include "CommandContext.h"
|
||||
|
||||
SetTrackBase::SetTrackBase(){
|
||||
@@ -348,7 +349,7 @@ bool SetTrackVisualsCommand::ApplyInner(const CommandContext & context, Track *
|
||||
wt->SetWaveColorIndex( mColour );
|
||||
|
||||
if( t && bHasHeight )
|
||||
t->SetHeight( mHeight );
|
||||
TrackView::Get( *t ).SetHeight( mHeight );
|
||||
|
||||
if( wt && bHasDisplayType )
|
||||
wt->SetDisplay(
|
||||
|
||||
Reference in New Issue
Block a user