mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-17 16:50:26 +02:00
Remove friends from TrackPanel
This commit is contained in:
parent
529e1b2b38
commit
7c4b624388
@ -211,13 +211,8 @@ protected:
|
|||||||
|
|
||||||
bool mRedrawAfterStop;
|
bool mRedrawAfterStop;
|
||||||
|
|
||||||
friend class TrackPanelAx;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// The screenshot class needs to access internals
|
|
||||||
friend class ScreenshotCommand;
|
|
||||||
|
|
||||||
SelectedRegion mLastDrawnSelectedRegion {};
|
SelectedRegion mLastDrawnSelectedRegion {};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -231,10 +226,6 @@ protected:
|
|||||||
unsigned refreshResult) override;
|
unsigned refreshResult) override;
|
||||||
|
|
||||||
void UpdateStatusMessage( const wxString &status ) override;
|
void UpdateStatusMessage( const wxString &status ) override;
|
||||||
|
|
||||||
// friending GetInfoCommand allow automation to get sizes of the
|
|
||||||
// tracks, track control panel and such.
|
|
||||||
friend class GetInfoCommand;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// A predicate class
|
// A predicate class
|
||||||
|
@ -718,7 +718,7 @@ void GetInfoCommand::ExploreTrackPanel( const CommandContext &context,
|
|||||||
{
|
{
|
||||||
AudacityProject * pProj = &context.project;
|
AudacityProject * pProj = &context.project;
|
||||||
auto &tp = TrackPanel::Get( *pProj );
|
auto &tp = TrackPanel::Get( *pProj );
|
||||||
auto &viewInfo = *tp.mViewInfo;
|
auto &viewInfo = ViewInfo::Get( *pProj );
|
||||||
|
|
||||||
wxRect trackRect = pWin->GetRect();
|
wxRect trackRect = pWin->GetRect();
|
||||||
|
|
||||||
|
@ -720,7 +720,7 @@ wxRect ScreenshotCommand::GetScreenRect(){
|
|||||||
wxRect ScreenshotCommand::GetPanelRect(TrackPanel * panel){
|
wxRect ScreenshotCommand::GetPanelRect(TrackPanel * panel){
|
||||||
//AdornedRulerPanel *ruler = panel->mRuler;
|
//AdornedRulerPanel *ruler = panel->mRuler;
|
||||||
|
|
||||||
int h = panel->mRuler->GetRulerHeight();
|
int h = panel->GetRuler()->GetRulerHeight();
|
||||||
int x = 0, y = -h;
|
int x = 0, y = -h;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
@ -819,7 +819,7 @@ bool ScreenshotCommand::Apply(const CommandContext & context)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
TrackPanel *panel = &TrackPanel::Get( context.project );
|
TrackPanel *panel = &TrackPanel::Get( context.project );
|
||||||
AdornedRulerPanel *ruler = panel->mRuler;
|
AdornedRulerPanel *ruler = panel->GetRuler();
|
||||||
|
|
||||||
int nTracks = TrackList::Get( context.project ).size();
|
int nTracks = TrackList::Get( context.project ).size();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user