1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-19 06:07:42 +02:00

TrackPanel::HasSoloButton is static and public

This commit is contained in:
Paul Licameli 2017-06-13 08:05:17 -04:00
parent 98b24cd6b9
commit e554f0cdc6
2 changed files with 9 additions and 4 deletions

View File

@ -773,11 +773,13 @@ void TrackPanel::UpdateVirtualStereoOrder()
}
#endif
wxString TrackPanel::gSoloPref;
void TrackPanel::UpdatePrefs()
{
gPrefs->Read(wxT("/GUI/AutoScroll"), &mViewInfo->bUpdateTrackIndicator,
true);
gPrefs->Read(wxT("/GUI/Solo"), &mSoloPref, wxT("Simple"));
gPrefs->Read(wxT("/GUI/Solo"), &gSoloPref, wxT("Simple"));
#ifdef EXPERIMENTAL_OUTPUT_DISPLAY
bool temp = WaveTrack::mMonoAsVirtualStereo;

View File

@ -612,9 +612,12 @@ protected:
#ifdef EXPERIMENTAL_OUTPUT_DISPLAY
void UpdateVirtualStereoOrder();
#endif
// Accessors...
virtual bool HasSoloButton(){ return mSoloPref!=wxT("None");}
public:
// Accessors...
static bool HasSoloButton(){ return gSoloPref!=wxT("None");}
protected:
//JKC: These two belong in the label track.
int mLabelTrackStartXPos;
int mLabelTrackStartYPos;
@ -876,7 +879,7 @@ public:
protected:
wxString mSoloPref;
static wxString gSoloPref;
// Keeps track of extra fractional vertical scroll steps
double mVertScrollRemainder;