mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-04 15:50:10 +01:00
Attempt #2 at taming the meter toolbars
It corrects several "multiple project" problems with the meter toolbars and meters. In addition, there was a "multiple project" issue where the transport buttons didn't disable properly in the non-active project.
This commit is contained in:
@@ -90,7 +90,8 @@ void MeterToolBar::Populate()
|
||||
if( mWhichMeters & kWithRecordMeter ){
|
||||
//JKC: Record on left, playback on right. Left to right flow
|
||||
//(maybe we should do it differently for Arabic language :-) )
|
||||
mRecordMeter = new Meter( this,
|
||||
mRecordMeter = new Meter( mProject,
|
||||
this,
|
||||
wxID_ANY,
|
||||
true,
|
||||
wxDefaultPosition,
|
||||
@@ -105,7 +106,8 @@ void MeterToolBar::Populate()
|
||||
}
|
||||
|
||||
if( mWhichMeters & kWithPlayMeter ){
|
||||
mPlayMeter = new Meter( this,
|
||||
mPlayMeter = new Meter( mProject,
|
||||
this,
|
||||
wxID_ANY,
|
||||
false,
|
||||
wxDefaultPosition,
|
||||
|
||||
@@ -66,8 +66,8 @@ enum
|
||||
TransportBarID,
|
||||
ToolsBarID,
|
||||
MeterBarID,
|
||||
PlayMeterBarID, // RecorderMeterBarID should be after PlayMeterBarID
|
||||
RecordMeterBarID, // to ensure proper meter style setup during initialization
|
||||
RecordMeterBarID,
|
||||
PlayMeterBarID,
|
||||
MixerBarID,
|
||||
EditBarID,
|
||||
TranscriptionBarID,
|
||||
|
||||
Reference in New Issue
Block a user