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

Method MakeAudioSetupButton

src/toolbars/AudioSetupToolBar.cpp:146–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void AudioSetupToolBar::MakeAudioSetupButton()
147{
148 const auto size = wxSize{-1, (toolbarSingle - toolbarMargin ) * 2 };
149 mAudioSetup = safenew AButton(this, ID_AUDIO_SETUP_BUTTON);
150 //i18n-hint: Audio setup button text, keep as short as possible
151 mAudioSetup->SetLabel(XO("Audio Setup"));
152 mAudioSetup->SetButtonType(AButton::FrameTextVButton);
153 mAudioSetup->SetImages(
154 theTheme.Image(bmpRecoloredUpSmall),
155 theTheme.Image(bmpRecoloredUpHiliteSmall),
156 theTheme.Image(bmpRecoloredDownSmall),
157 theTheme.Image(bmpRecoloredHiliteSmall),
158 theTheme.Image(bmpRecoloredUpSmall));
159 mAudioSetup->SetIcon(theTheme.Image(bmpSetup));
160 mAudioSetup->SetForegroundColour(theTheme.Colour(clrTrackPanelText));
161 mAudioSetup->SetMinSize(size);
162 mAudioSetup->SetMaxSize(size);
163}
164
165void AudioSetupToolBar::ArrangeButtons()
166{

Callers

nothing calls this directly

Calls 5

SetButtonTypeMethod · 0.80
SetImagesMethod · 0.80
SetIconMethod · 0.80
AButtonClass · 0.70
SetLabelMethod · 0.45

Tested by

no test coverage detected