1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

TrackPanelResizerCell, also in 1-to-1 with TrackView, now owned by it

This commit is contained in:
Paul Licameli
2019-06-17 23:23:44 -04:00
parent 18b4c01c51
commit b4c7a8ef2a
6 changed files with 39 additions and 17 deletions

View File

@@ -101,6 +101,7 @@ is time to refresh some aspect of the screen.
#include "toolbars/ControlToolBar.h"
#include "tracks/ui/TrackControls.h"
#include "tracks/ui/TrackView.h"
#include "tracks/ui/TrackVRulerControls.h"
//This loads the appropriate set of cursors, depending on platform.
@@ -2224,7 +2225,8 @@ struct ChannelGroup final : TrackPanelGroup {
channel->SubstitutePendingChangedTrack();
yy += substitute->GetHeight();
refinement.emplace_back(
yy - kSeparatorThickness, channel->GetResizer() );
yy - kSeparatorThickness,
TrackView::Get( *channel ).GetResizer() );
}
}
@@ -2262,7 +2264,8 @@ struct ResizingChannelGroup final : TrackPanelGroup {
{ rect.GetTop(),
std::make_shared< LabeledChannelGroup >( mpTrack, mLeftOffset ) },
{ rect.GetTop() + rect.GetHeight() - kSeparatorThickness,
( *TrackList::Channels( mpTrack.get() ).rbegin() )->GetResizer() }
TrackView::Get( **TrackList::Channels( mpTrack.get() ).rbegin() )
.GetResizer() }
} }; }
std::shared_ptr< Track > mpTrack;
wxCoord mLeftOffset;