mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 17:41:15 +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;
|
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 )
|
void WaveTrackView::DoSetMinimized( bool minimized )
|
||||||
{
|
{
|
||||||
// May come here. Invoke also on sub-views.
|
// May come here. Invoke also on sub-views.
|
||||||
|
@ -77,6 +77,10 @@ public:
|
|||||||
void RestorePlacements( const WaveTrackSubViewPlacements &placements )
|
void RestorePlacements( const WaveTrackSubViewPlacements &placements )
|
||||||
{ mPlacements = 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:
|
private:
|
||||||
// TrackPanelDrawable implementation
|
// TrackPanelDrawable implementation
|
||||||
void Draw(
|
void Draw(
|
||||||
@ -89,6 +93,7 @@ private:
|
|||||||
override;
|
override;
|
||||||
|
|
||||||
// TrackView implementation
|
// TrackView implementation
|
||||||
|
// Get the visible sub-views with top y coordinates
|
||||||
Refinement GetSubViews( const wxRect &rect ) override;
|
Refinement GetSubViews( const wxRect &rect ) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user