1
0
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:
lllucius
2014-12-19 16:38:56 +00:00
parent 5d526a8009
commit 9bbc261321
11 changed files with 162 additions and 88 deletions

View File

@@ -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,

View File

@@ -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,