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

Method MakeSetupButton

src/toolbars/SelectionBar.cpp:180–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180AButton* SelectionBar::MakeSetupButton()
181{
182 wxImage up = theTheme.Image(bmpRecoloredUpSmall);
183 up.Rescale(23, 23, wxIMAGE_QUALITY_HIGH);
184 wxImage down = theTheme.Image(bmpRecoloredDownSmall);
185 down.Rescale(23, 23, wxIMAGE_QUALITY_HIGH);
186 wxImage hiliteUp = theTheme.Image(bmpRecoloredUpHiliteSmall);
187 hiliteUp.Rescale(23, 23, wxIMAGE_QUALITY_HIGH);
188 wxImage hiliteDown = theTheme.Image(bmpRecoloredHiliteSmall);
189 hiliteDown.Rescale(23, 23, wxIMAGE_QUALITY_HIGH);
190
191 auto btn = safenew AButton(
192 this, wxID_ANY, wxDefaultPosition, wxSize { 23, 23 }, up, hiliteUp, down,
193 hiliteDown, up, false);
194
195 btn->SetButtonType(AButton::FrameButton);
196 btn->SetIcon(theTheme.Image(bmpCogwheel));
197 btn->SetLabel({});
198 btn->SetName(XO("Selection Toolbar Setup").Translation());
199
200 return btn;
201}
202
203void SelectionBar::AddTitle(
204 const TranslatableString & Title, wxSizer * pSizer ){

Callers

nothing calls this directly

Calls 7

RescaleMethod · 0.80
SetButtonTypeMethod · 0.80
SetIconMethod · 0.80
TranslationMethod · 0.80
AButtonClass · 0.70
SetLabelMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected