mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Define WaveTrackView::GetAllSubViews
This commit is contained in:
parent
d6317ae6af
commit
dd369da6a0
@ -181,6 +181,17 @@ auto WaveTrackView::GetSubViews( const wxRect &rect ) -> Refinement
|
||||
return results;
|
||||
}
|
||||
|
||||
std::vector< std::shared_ptr< WaveTrackSubView > >
|
||||
WaveTrackView::GetAllSubViews()
|
||||
{
|
||||
std::vector< std::shared_ptr< WaveTrackSubView > > results;
|
||||
WaveTrackSubViews::ForEach( [&]( WaveTrackSubView &subView ){
|
||||
results.push_back( std::static_pointer_cast<WaveTrackSubView>(
|
||||
subView.shared_from_this() ) );
|
||||
} );
|
||||
return results;
|
||||
}
|
||||
|
||||
void WaveTrackView::DoSetMinimized( bool minimized )
|
||||
{
|
||||
// May come here. Invoke also on sub-views.
|
||||
|
@ -77,6 +77,10 @@ public:
|
||||
void RestorePlacements( const WaveTrackSubViewPlacements &placements )
|
||||
{ mPlacements = placements; }
|
||||
|
||||
// Get all the sub-views, in a sequence that is unspecified but in
|
||||
// correspondence with the result of SavePlacements
|
||||
std::vector< std::shared_ptr< WaveTrackSubView > > GetAllSubViews();
|
||||
|
||||
private:
|
||||
// TrackPanelDrawable implementation
|
||||
void Draw(
|
||||
@ -89,6 +93,7 @@ private:
|
||||
override;
|
||||
|
||||
// TrackView implementation
|
||||
// Get the visible sub-views with top y coordinates
|
||||
Refinement GetSubViews( const wxRect &rect ) override;
|
||||
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user