Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MeterToolBar Class Referencefinal

A ToolBar that holds the VU Meter. More...

#include <MeterToolBar.h>

Inheritance diagram for MeterToolBar:
[legend]
Collaboration diagram for MeterToolBar:
[legend]

Public Member Functions

 MeterToolBar (AudacityProject &project, int type)
 Methods for MeterToolBar. More...
 
virtual ~MeterToolBar ()
 
void Create (wxWindow *parent) override
 
void Populate () override
 
void ReCreateButtons () override
 
void Repaint (wxDC *WXUNUSED(dc)) override
 
void EnableDisableButtons () override
 
void UpdatePrefs () override
 
void UpdateControls ()
 
void OnSize (wxSizeEvent &event)
 
bool Expose (bool show) override
 
int GetInitialWidth () override
 Resizable toolbars should implement these. More...
 
int GetMinToolbarWidth () override
 
wxSize GetDockedSize () override
 
virtual void SetDocked (ToolDock *dock, bool pushed) override
 
void ShowOutputGainDialog ()
 
void ShowInputGainDialog ()
 
void AdjustOutputGain (int adj)
 
void AdjustInputGain (int adj)
 
- Public Member Functions inherited from ToolBar
 ToolBar (AudacityProject &project, int type, const TranslatableString &label, const wxString &section, bool resizable=false)
 
virtual ~ToolBar ()
 
bool AcceptsFocus () const override
 
virtual void SetToDefaultSize ()
 
virtual void Create (wxWindow *parent)
 
virtual void EnableDisableButtons ()=0
 
virtual void ReCreateButtons ()
 
void UpdatePrefs () override
 
virtual void RegenerateTooltips ()=0
 
int GetType ()
 
TranslatableString GetTitle ()
 
TranslatableString GetLabel ()
 
wxString GetSection ()
 
ToolDockGetDock ()
 
void SetLabel (const TranslatableString &label)
 
virtual void SetDocked (ToolDock *dock, bool pushed)
 
virtual bool Expose (bool show=true)
 
bool IsResizable () const
 
bool IsVisible () const
 
bool IsDocked () const
 
bool IsPositioned ()
 
void SetVisible (bool bVisible)
 
void SetPositioned ()
 
virtual int GetInitialWidth ()
 Resizable toolbars should implement these. More...
 
virtual int GetMinToolbarWidth ()
 
virtual wxSize GetDockedSize ()
 
wxSize GetSmartDockedSize ()
 
virtual void ResizingDone ()
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Static Public Member Functions

static MeterToolBars GetToolBars (AudacityProject &project)
 
static ConstMeterToolBars GetToolBars (const AudacityProject &project)
 
static MeterToolBarGet (AudacityProject &project, bool forPlayMeterToolBar)
 
static const MeterToolBarGet (const AudacityProject &project, bool forPlayMeterToolBar)
 
- Static Public Member Functions inherited from ToolBar
static AButtonMakeButton (wxWindow *parent, teBmps eUp, teBmps eDown, teBmps eHilite, teBmps eDownHi, teBmps eStandardUp, teBmps eStandardDown, teBmps eDisabled, wxWindowID id, wxPoint placement, bool processdownevents, wxSize size)
 
static AButtonMakeButton (ToolBar *parent, teBmps eEnabledUp, teBmps eEnabledDown, teBmps eDisabled, int id, bool processdownevents, const TranslatableString &label)
 
static void MakeAlternateImages (AButton &button, int idx, teBmps eUp, teBmps eDown, teBmps eHilite, teBmps eDownHi, teBmps eStandardUp, teBmps eStandardDown, teBmps eDisabled, wxSize size)
 
static void SetButtonToolTip (AudacityProject &project, AButton &button, const ComponentInterfaceSymbol commands[], size_t nCommands)
 
static void MakeButtonBackgroundsSmall ()
 
static void MakeButtonBackgroundsLarge ()
 

Private Member Functions

void RegenerateTooltips () override
 

Private Attributes

int mWhichMeters
 
wxGridBagSizer * mSizer
 
MeterPanelmPlayMeter
 
MeterPanelmRecordMeter
 

Additional Inherited Members

- Public Types inherited from ToolBar
using Holder = wxWindowPtr< ToolBar >
 
- Protected Member Functions inherited from ToolBar
void SetButton (bool down, AButton *button)
 
wxBoxSizer * GetSizer ()
 
void Add (wxWindow *window, int proportion=0, int flag=wxALIGN_TOP, int border=0, wxObject *userData=NULL)
 
void Add (wxSizer *sizer, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 
void Add (int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 
void AddSpacer (int size=14)
 
void AddStretchSpacer (int prop=1)
 
void Detach (wxWindow *window)
 
void Detach (wxSizer *sizer)
 
void Updated ()
 
int GetResizeGrabberWidth ()
 Returns the width in pixels of the resizer element. More...
 
virtual void Populate ()=0
 
virtual void Repaint (wxDC *dc)=0
 
void OnErase (wxEraseEvent &event)
 
void OnPaint (wxPaintEvent &event)
 
void OnMouseEvents (wxMouseEvent &event)
 
- Protected Member Functions inherited from PrefsListener
virtual void UpdateSelectedPrefs (int id)
 
 PrefsListener ()
 
virtual ~PrefsListener ()
 
virtual void UpdatePrefs ()=0
 
- Static Protected Member Functions inherited from ToolBar
static void MakeMacRecoloredImage (teBmps eBmpOut, teBmps eBmpIn)
 
static void MakeMacRecoloredImageSize (teBmps eBmpOut, teBmps eBmpIn, const wxSize &size)
 
static void MakeRecoloredImage (teBmps eBmpOut, teBmps eBmpIn)
 
static void MakeRecoloredImageSize (teBmps eBmpOut, teBmps eBmpIn, const wxSize &size)
 
- Static Protected Member Functions inherited from PrefsListener
static void Broadcast (int id=0)
 Call this static function to notify all PrefsListener objects. More...
 
- Protected Attributes inherited from ToolBar
AudacityProjectmProject
 
TranslatableString mLabel
 
wxString mSection
 
int mType
 

Detailed Description

A ToolBar that holds the VU Meter.

Definition at line 37 of file MeterToolBar.h.

Constructor & Destructor Documentation

◆ MeterToolBar()

MeterToolBar::MeterToolBar ( AudacityProject project,
int  type 
)

Methods for MeterToolBar.

Definition at line 52 of file MeterToolBar.cpp.

53: ToolBar(project, type, XO("Combined Meter"), wxT("CombinedMeter"), true)
54{
55 if( mType == RecordMeterBarID ){
57 mLabel = XO("Recording Meter");
58 mSection = wxT("RecordMeter");
59 } else if( mType == PlayMeterBarID ){
61 mLabel = XO("Playback Meter");
62 mSection = wxT("PlayMeter");
63 } else {
65 }
66 mSizer = NULL;
67 mPlayMeter = NULL;
68 mRecordMeter = NULL;
69}
#define XO(s)
Definition: Internat.h:31
const int kWithRecordMeter
Definition: MeterToolBar.h:34
const int kWithPlayMeter
Definition: MeterToolBar.h:35
@ RecordMeterBarID
Definition: ToolBar.h:75
@ PlayMeterBarID
Definition: ToolBar.h:76
MeterPanel * mPlayMeter
Definition: MeterToolBar.h:81
MeterPanel * mRecordMeter
Definition: MeterToolBar.h:82
wxGridBagSizer * mSizer
Definition: MeterToolBar.h:80
int mType
Definition: ToolBar.h:250
TranslatableString mLabel
Definition: ToolBar.h:248
ToolBar(AudacityProject &project, int type, const TranslatableString &label, const wxString &section, bool resizable=false)
Definition: ToolBar.cpp:330
wxString mSection
Definition: ToolBar.h:249

References kWithPlayMeter, kWithRecordMeter, PlayMeterBarID, RecordMeterBarID, and XO.

◆ ~MeterToolBar()

MeterToolBar::~MeterToolBar ( )
virtual

Definition at line 71 of file MeterToolBar.cpp.

72{
73}

Member Function Documentation

◆ AdjustInputGain()

void MeterToolBar::AdjustInputGain ( int  adj)

Definition at line 326 of file MeterToolBar.cpp.

327{
328 if (adj < 0) {
329 mRecordMeter->Decrease(-adj);
330 }
331 else {
333 }
334
336}
void Decrease(float steps)
Definition: MeterPanel.cpp:962
void Increase(float steps)
Definition: MeterPanel.cpp:951
void UpdateSliderControl()
Definition: MeterPanel.cpp:492

References MeterPanel::Decrease(), MeterPanel::Increase(), mRecordMeter, and MeterPanel::UpdateSliderControl().

Here is the call graph for this function:

◆ AdjustOutputGain()

void MeterToolBar::AdjustOutputGain ( int  adj)

Definition at line 314 of file MeterToolBar.cpp.

315{
316 if (adj < 0) {
317 mPlayMeter->Decrease(-adj);
318 }
319 else {
320 mPlayMeter->Increase(adj);
321 }
322
324}

References MeterPanel::Decrease(), MeterPanel::Increase(), mPlayMeter, and MeterPanel::UpdateSliderControl().

Here is the call graph for this function:

◆ Create()

void MeterToolBar::Create ( wxWindow *  parent)
overridevirtual

Reimplemented from ToolBar.

Definition at line 104 of file MeterToolBar.cpp.

105{
106 ToolBar::Create(parent);
107
108 UpdatePrefs();
109
110 // Simulate a size event to set initial meter placement/size
111 wxSizeEvent dummy;
112 OnSize(dummy);
113}
void UpdatePrefs() override
void OnSize(wxSizeEvent &event)
virtual void Create(wxWindow *parent)
Definition: ToolBar.cpp:475

References ToolBar::Create(), OnSize(), and UpdatePrefs().

Here is the call graph for this function:

◆ EnableDisableButtons()

void MeterToolBar::EnableDisableButtons ( )
inlineoverridevirtual

Implements ToolBar.

Definition at line 55 of file MeterToolBar.h.

55{};

◆ Expose()

bool MeterToolBar::Expose ( bool  show)
overridevirtual

Reimplemented from ToolBar.

Definition at line 268 of file MeterToolBar.cpp.

269{
270 auto &projectAudioIO = ProjectAudioIO::Get( mProject );
271 if( show ) {
272 if( mPlayMeter ) {
273 projectAudioIO.SetPlaybackMeter( mPlayMeter->GetMeter() );
274 }
275
276 if( mRecordMeter ) {
277 projectAudioIO.SetCaptureMeter( mRecordMeter->GetMeter() );
278 }
279 } else {
280 if( mPlayMeter &&
281 projectAudioIO.GetPlaybackMeter() == mPlayMeter->GetMeter() ) {
282 projectAudioIO.SetPlaybackMeter( nullptr );
283 }
284
285 if( mRecordMeter &&
286 projectAudioIO.GetCaptureMeter() == mRecordMeter->GetMeter() ) {
287 projectAudioIO.SetCaptureMeter( nullptr );
288 }
289 }
290
291 return ToolBar::Expose( show );
292}
std::shared_ptr< Meter > GetMeter() const
static ProjectAudioIO & Get(AudacityProject &project)
AudacityProject & mProject
Definition: ToolBar.h:247
virtual bool Expose(bool show=true)
Definition: ToolBar.cpp:444

References ToolBar::Expose(), ProjectAudioIO::Get(), MeterPanelBase::GetMeter(), mPlayMeter, ToolBar::mProject, and mRecordMeter.

Here is the call graph for this function:

◆ Get() [1/2]

MeterToolBar & MeterToolBar::Get ( AudacityProject project,
bool  forPlayMeterToolBar 
)
static

Definition at line 91 of file MeterToolBar.cpp.

92{
93 auto& toolManager = ToolManager::Get(project);
94 auto toolBarID = forPlayMeterToolBar ? PlayMeterBarID : RecordMeterBarID;
95
96 return *static_cast<MeterToolBar*>(toolManager.GetToolBar(toolBarID));
97}
A ToolBar that holds the VU Meter.
Definition: MeterToolBar.h:37
static ToolManager & Get(AudacityProject &project)

References ToolManager::Get(), PlayMeterBarID, and RecordMeterBarID.

Referenced by Get(), GetToolBars(), ExtraActions::Handler::OnInputGain(), ExtraActions::Handler::OnInputGainDec(), ExtraActions::Handler::OnInputGainInc(), ExtraActions::Handler::OnOutputGain(), ExtraActions::Handler::OnOutputGainDec(), and ExtraActions::Handler::OnOutputGainInc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Get() [2/2]

const MeterToolBar & MeterToolBar::Get ( const AudacityProject project,
bool  forPlayMeterToolBar 
)
static

Definition at line 99 of file MeterToolBar.cpp.

100{
101 return Get( const_cast<AudacityProject&>( project ), forPlayMeterToolBar );
102}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
static MeterToolBar & Get(AudacityProject &project, bool forPlayMeterToolBar)

References Get().

Here is the call graph for this function:

◆ GetDockedSize()

wxSize MeterToolBar::GetDockedSize ( )
inlineoverridevirtual

Reimplemented from ToolBar.

Definition at line 65 of file MeterToolBar.h.

65 {
66 return GetSmartDockedSize();
67 };
wxSize GetSmartDockedSize()
Definition: ToolBar.cpp:503

References ToolBar::GetSmartDockedSize().

Here is the call graph for this function:

◆ GetInitialWidth()

int MeterToolBar::GetInitialWidth ( )
inlineoverridevirtual

Resizable toolbars should implement these.

Reimplemented from ToolBar.

Definition at line 62 of file MeterToolBar.h.

62 {return (mWhichMeters ==
63 (kWithRecordMeter + kWithPlayMeter)) ? 338 : 460;} // Separate bars used to be smaller.

References kWithPlayMeter, kWithRecordMeter, and mWhichMeters.

◆ GetMinToolbarWidth()

int MeterToolBar::GetMinToolbarWidth ( )
inlineoverridevirtual

Reimplemented from ToolBar.

Definition at line 64 of file MeterToolBar.h.

64{ return 150; }

◆ GetToolBars() [1/2]

MeterToolBars MeterToolBar::GetToolBars ( AudacityProject project)
static

Definition at line 75 of file MeterToolBar.cpp.

76{
77 return MeterToolBars{
78 Get(project, true),
79 Get(project, false)
80 };
81}
std::vector< std::reference_wrapper< MeterToolBar > > MeterToolBars
Definition: MeterToolBar.h:30

References Get().

Referenced by ProjectManager::OnTimer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetToolBars() [2/2]

ConstMeterToolBars MeterToolBar::GetToolBars ( const AudacityProject project)
static

Definition at line 83 of file MeterToolBar.cpp.

84{
85 return ConstMeterToolBars{
86 Get(project, true),
87 Get(project, false)
88 };
89}
std::vector< std::reference_wrapper< const MeterToolBar > > ConstMeterToolBars
Definition: MeterToolBar.h:31

References Get().

Here is the call graph for this function:

◆ OnSize()

void MeterToolBar::OnSize ( wxSizeEvent &  event)

Definition at line 218 of file MeterToolBar.cpp.

219{
220 event.Skip();
221 int width, height;
222
223 // We can be resized before populating...protect against it
224 if( !mSizer ) {
225 return;
226 }
227
228 // Update the layout
229 Layout();
230
231 // Get the usable area
232 wxSize sz = GetSizer()->GetSize();
233 width = sz.x; height = sz.y;
234
235 int nMeters =
236 ((mRecordMeter ==NULL) ? 0:1) +
237 ((mPlayMeter ==NULL) ? 0:1);
238
239 bool bHorizontal = ( width > height );
240 bool bEndToEnd = ( nMeters > 1 ) && wxMin( width, height ) < (60 * nMeters);
241
242 // Default location for second meter
243 wxGBPosition pos( 0, 0 );
244 // If 2 meters, share the height or width.
245 if( nMeters > 1 ){
246 if( bHorizontal ^ bEndToEnd ){
247 height /= nMeters;
248 pos = wxGBPosition( 1, 0 );
249 } else {
250 width /= nMeters;
251 pos = wxGBPosition( 0, 1 );
252 }
253 }
254
255 if( mRecordMeter ) {
256 mRecordMeter->SetMinSize( wxSize( width, height ));
257 }
258 if( mPlayMeter ) {
259 mPlayMeter->SetMinSize( wxSize( width, height));
260 mSizer->SetItemPosition( mPlayMeter, pos );
261 }
262
263 // And make it happen
264 Layout();
265 Fit();
266}
wxBoxSizer * GetSizer()
Definition: ToolBar.cpp:678

References ToolBar::GetSizer(), mPlayMeter, mRecordMeter, and mSizer.

Referenced by Create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Populate()

void MeterToolBar::Populate ( )
overridevirtual

Implements ToolBar.

Definition at line 146 of file MeterToolBar.cpp.

147{
148 SetBackgroundColour( theTheme.Colour( clrMedium ) );
149 Add((mSizer = safenew wxGridBagSizer()), 1, wxEXPAND);
150
152 //JKC: Record on left, playback on right. Left to right flow
153 //(maybe we should do it differently for Arabic language :-) )
155 this,
156 wxID_ANY,
157 true,
158 wxDefaultPosition,
159 wxSize( 260, 28 ) );
160 /* i18n-hint: (noun) The meter that shows the loudness of the audio being recorded.*/
161 mRecordMeter->SetName( XO("Record Meter"));
162 /* i18n-hint: (noun) The meter that shows the loudness of the audio being recorded.
163 This is the name used in screen reader software, where having 'Meter' first
164 apparently is helpful to partially sighted people. */
165 mRecordMeter->SetLabel( XO("Meter-Record") );
166 mSizer->Add( mRecordMeter, wxGBPosition( 0, 0 ), wxDefaultSpan, wxEXPAND );
167 }
168
171 this,
172 wxID_ANY,
173 false,
174 wxDefaultPosition,
175 wxSize( 260, 28 ) );
176 /* i18n-hint: (noun) The meter that shows the loudness of the audio playing.*/
177 mPlayMeter->SetName( XO("Play Meter"));
178 /* i18n-hint: (noun) The meter that shows the loudness of the audio playing.
179 This is the name used in screen reader software, where having 'Meter' first
180 apparently is helpful to partially sighted people. */
181 mPlayMeter->SetLabel( XO("Meter-Play"));
182 mSizer->Add( mPlayMeter, wxGBPosition( (mWhichMeters & kWithRecordMeter)?1:0, 0 ), wxDefaultSpan, wxEXPAND );
183 }
184
186}
#define safenew
Definition: MemoryX.h:10
THEME_API Theme theTheme
Definition: Theme.cpp:82
MeterPanel is a panel that paints the meter used for monitoring or playback.
Definition: MeterPanel.h:104
void RegenerateTooltips() override
wxColour & Colour(int iIndex)
void Add(wxWindow *window, int proportion=0, int flag=wxALIGN_TOP, int border=0, wxObject *userData=NULL)
Definition: ToolBar.cpp:686
void SetName(const TranslatableString &name)
void SetLabel(const TranslatableString &label)

References ToolBar::Add(), ThemeBase::Colour(), kWithPlayMeter, kWithRecordMeter, mPlayMeter, ToolBar::mProject, mRecordMeter, mSizer, mWhichMeters, RegenerateTooltips(), safenew, wxPanelWrapper::SetLabel(), wxPanelWrapper::SetName(), theTheme, and XO.

Here is the call graph for this function:

◆ ReCreateButtons()

void MeterToolBar::ReCreateButtons ( )
overridevirtual

Reimplemented from ToolBar.

Definition at line 115 of file MeterToolBar.cpp.

116{
117 MeterPanel::State playState{ false }, recordState{ false };
118
119 auto &projectAudioIO = ProjectAudioIO::Get( mProject );
120 if (mPlayMeter &&
121 projectAudioIO.GetPlaybackMeter() == mPlayMeter->GetMeter())
122 {
123 playState = mPlayMeter->SaveState();
124 projectAudioIO.SetPlaybackMeter( nullptr );
125 }
126
127 if (mRecordMeter &&
128 projectAudioIO.GetCaptureMeter() == mRecordMeter->GetMeter())
129 {
130 recordState = mRecordMeter->SaveState();
131 projectAudioIO.SetCaptureMeter( nullptr );
132 }
133
135
136 mPlayMeter->RestoreState(playState);
137 if( playState.mSaved ){
138 projectAudioIO.SetPlaybackMeter( mPlayMeter->GetMeter() );
139 }
140 mRecordMeter->RestoreState(recordState);
141 if( recordState.mSaved ){
142 projectAudioIO.SetCaptureMeter( mRecordMeter->GetMeter() );
143 }
144}
State SaveState()
void RestoreState(const State &state)
virtual void ReCreateButtons()
Definition: ToolBar.cpp:516

References ProjectAudioIO::Get(), MeterPanelBase::GetMeter(), mPlayMeter, ToolBar::mProject, mRecordMeter, ToolBar::ReCreateButtons(), MeterPanel::RestoreState(), and MeterPanel::SaveState().

Here is the call graph for this function:

◆ RegenerateTooltips()

void MeterToolBar::RegenerateTooltips ( )
overrideprivatevirtual

Implements ToolBar.

Definition at line 208 of file MeterToolBar.cpp.

209{
210#if wxUSE_TOOLTIPS
211 if( mPlayMeter )
212 mPlayMeter->SetToolTip( XO("Playback Level") );
213 if( mRecordMeter )
214 mRecordMeter->SetToolTip( XO("Recording Level") );
215#endif
216}
void SetToolTip(const TranslatableString &toolTip)

References mPlayMeter, mRecordMeter, wxPanelWrapper::SetToolTip(), and XO.

Referenced by Populate(), and UpdatePrefs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Repaint()

void MeterToolBar::Repaint ( wxDC *  WXUNUSEDdc)
inlineoverride

Definition at line 54 of file MeterToolBar.h.

54{};

◆ SetDocked()

void MeterToolBar::SetDocked ( ToolDock dock,
bool  pushed 
)
overridevirtual

Reimplemented from ToolBar.

Definition at line 297 of file MeterToolBar.cpp.

297 {
298 ToolBar::SetDocked(dock, pushed);
299 Fit();
300}
virtual void SetDocked(ToolDock *dock, bool pushed)
Definition: ToolBar.cpp:638

References ToolBar::SetDocked().

Here is the call graph for this function:

◆ ShowInputGainDialog()

void MeterToolBar::ShowInputGainDialog ( )

Definition at line 308 of file MeterToolBar.cpp.

References mRecordMeter, MeterPanel::ShowDialog(), and MeterPanel::UpdateSliderControl().

Here is the call graph for this function:

◆ ShowOutputGainDialog()

void MeterToolBar::ShowOutputGainDialog ( )

Definition at line 302 of file MeterToolBar.cpp.

References mPlayMeter, MeterPanel::ShowDialog(), and MeterPanel::UpdateSliderControl().

Here is the call graph for this function:

◆ UpdateControls()

void MeterToolBar::UpdateControls ( )

Definition at line 199 of file MeterToolBar.cpp.

200{
201 if ( mPlayMeter )
203
204 if ( mRecordMeter )
206}

References mPlayMeter, mRecordMeter, and MeterPanel::UpdateSliderControl().

Here is the call graph for this function:

◆ UpdatePrefs()

void MeterToolBar::UpdatePrefs ( )
overridevirtual

Implements PrefsListener.

Definition at line 188 of file MeterToolBar.cpp.

189{
191
192 // Set label to pull in language change
193 SetLabel(XO("Meter"));
194
195 // Give base class a chance
197}
void SetLabel(const wxString &label) override
Definition: ToolBar.cpp:398
void UpdatePrefs() override
Definition: ToolBar.cpp:605

References RegenerateTooltips(), ToolBar::SetLabel(), ToolBar::UpdatePrefs(), and XO.

Referenced by Create().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mPlayMeter

MeterPanel* MeterToolBar::mPlayMeter
private

◆ mRecordMeter

MeterPanel* MeterToolBar::mRecordMeter
private

◆ mSizer

wxGridBagSizer* MeterToolBar::mSizer
private

Definition at line 80 of file MeterToolBar.h.

Referenced by OnSize(), and Populate().

◆ mWhichMeters

int MeterToolBar::mWhichMeters
private

Definition at line 79 of file MeterToolBar.h.

Referenced by GetInitialWidth(), and Populate().


The documentation for this class was generated from the following files: