MCPcopy Create free account
hub / github.com/audacity/audacity / BuildTopBar

Method BuildTopBar

src/effects/EffectUI.cpp:357–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void EffectUIHost::BuildTopBar(ShuttleGui &S)
358{
359 S.StartPanel();
360 {
361 S.SetBorder( InnerMargin );
362
363 S.StartHorizontalLay(wxEXPAND, 0);
364 {
365 if (IsOpenedFromEffectPanel())
366 {
367 mEnableBtn = MakeBitmapToggleButton(S.GetParent(),
368 theTheme.Image(bmpEffectOn), theTheme.Image(bmpEffectOff));
369 mEnableBtn->SetBackgroundColour(GetBackgroundColour());
370 S
371 .Position(wxALIGN_CENTER | wxTOP | wxBOTTOM)
372 .Name(XO("Power"))
373 .AddWindow(mEnableBtn);
374 }
375
376 mMenuBtn = S.Id( kMenuID )
377 .ToolTip(XO("Manage presets and options"))
378 .AddButton( XO("Presets && settings"), wxALIGN_CENTER | wxTOP | wxBOTTOM );
379
380 S.AddSpace(1, 0, 1);
381
382
383
384 if (mEffectUIHost.GetDefinition().EnablesDebug())
385 {
386 mDebugBtn = S.Id(eDebugID)
387 .AddButton( XXO("Debu&g"),
388 wxALIGN_CENTER | wxTOP | wxBOTTOM );
389 }
390 }
391 S.EndHorizontalLay();
392 }
393 S.EndPanel();
394}
395
396bool EffectUIHost::Initialize()
397{

Callers

nothing calls this directly

Calls 9

MakeBitmapToggleButtonFunction · 0.85
StartPanelMethod · 0.80
SetBackgroundColourMethod · 0.80
AddWindowMethod · 0.80
PositionMethod · 0.80
EndPanelMethod · 0.80
GetParentMethod · 0.45
AddButtonMethod · 0.45
EnablesDebugMethod · 0.45

Tested by

no test coverage detected