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

Method Populate

src/toolbars/ToolsToolBar.cpp:202–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void ToolsToolBar::Populate()
203{
204 SetBackgroundColour( theTheme.Colour( clrMedium ) );
205 MakeButtonBackgroundsSmall();
206
207 Add(mToolSizer = safenew wxGridSizer(2, 2, toolbarSpacing, toolbarSpacing),
208 0, wxALIGN_CENTRE | wxALL, toolbarSpacing);
209
210 /* Tools */
211 using namespace ToolCodes;
212 mTool[ selectTool ] =
213 MakeToolsToolBarButton(this, selectTool, XO("Selection Tool"), theTheme.Image(bmpIBeam));
214 //MakeTool( this, bmpIBeam, selectTool, XO("Selection Tool") );
215 mTool[ envelopeTool ] =
216 MakeToolsToolBarButton(this, envelopeTool, XO("Envelope Tool"), theTheme.Image(bmpEnvelope));
217 //MakeTool( this, bmpEnvelope, envelopeTool, XO("Envelope Tool") );
218 mTool[ drawTool ] =
219 MakeToolsToolBarButton(this, drawTool, XO("Draw Tool"), theTheme.Image(bmpDraw));
220 //MakeTool( this, bmpDraw, drawTool, XO("Draw Tool") );
221 mTool[ multiTool ] =
222 MakeToolsToolBarButton(this, multiTool, XO("Multi-Tool"), theTheme.Image(bmpMulti));
223 //MakeTool( this, bmpMulti, multiTool, XO("Multi-Tool") );
224 mToolSizer->Add(mTool[selectTool]);
225 mToolSizer->Add(mTool[envelopeTool]);
226 mToolSizer->Add(mTool[drawTool]);
227 mToolSizer->Add(mTool[multiTool]);
228
229 DoToolChanged();
230
231 RegenerateTooltips();
232}
233
234void ToolsToolBar::OnTool(wxCommandEvent & evt)
235{

Callers

nothing calls this directly

Calls 4

AddFunction · 0.85
MakeToolsToolBarButtonFunction · 0.85
wxGridSizerClass · 0.70
AddMethod · 0.45

Tested by

no test coverage detected