mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Remove friends from TrackPanel
This commit is contained in:
@@ -718,7 +718,7 @@ void GetInfoCommand::ExploreTrackPanel( const CommandContext &context,
|
||||
{
|
||||
AudacityProject * pProj = &context.project;
|
||||
auto &tp = TrackPanel::Get( *pProj );
|
||||
auto &viewInfo = *tp.mViewInfo;
|
||||
auto &viewInfo = ViewInfo::Get( *pProj );
|
||||
|
||||
wxRect trackRect = pWin->GetRect();
|
||||
|
||||
|
||||
@@ -720,7 +720,7 @@ wxRect ScreenshotCommand::GetScreenRect(){
|
||||
wxRect ScreenshotCommand::GetPanelRect(TrackPanel * panel){
|
||||
//AdornedRulerPanel *ruler = panel->mRuler;
|
||||
|
||||
int h = panel->mRuler->GetRulerHeight();
|
||||
int h = panel->GetRuler()->GetRulerHeight();
|
||||
int x = 0, y = -h;
|
||||
int width, height;
|
||||
|
||||
@@ -819,7 +819,7 @@ bool ScreenshotCommand::Apply(const CommandContext & context)
|
||||
return false;
|
||||
|
||||
TrackPanel *panel = &TrackPanel::Get( context.project );
|
||||
AdornedRulerPanel *ruler = panel->mRuler;
|
||||
AdornedRulerPanel *ruler = panel->GetRuler();
|
||||
|
||||
int nTracks = TrackList::Get( context.project ).size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user