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

Method Populate

src/toolbars/CutCopyPasteToolBar.cpp:131–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void CutCopyPasteToolBar::Populate()
132{
133 SetBackgroundColour( theTheme.Colour( clrMedium ) );
134 MakeButtonBackgroundsSmall();
135
136 Add(mToolSizer = safenew wxGridSizer(2, 2, toolbarSpacing, toolbarSpacing),
137 0, wxALIGN_CENTRE | wxALL, toolbarSpacing);
138
139 /* Buttons */
140 // Tooltips match menu entries.
141 // We previously had longer tooltips which were not more clear.
142 AddButton(bmpCut, bmpCut, bmpCutDisabled, TBCutID,
143 XO("Cut"));
144 AddButton(bmpCopy, bmpCopy, bmpCopyDisabled, TBCopyID,
145 XO("Copy"));
146 AddButton(bmpPaste, bmpPaste, bmpPasteDisabled, TBPasteID,
147 XO("Paste"));
148 AddButton(bmpDelete, bmpDelete, bmpDeleteDisabled, TBDeleteID,
149 XO("Delete"));
150
151 mButtons.SetEnabled(TBPasteID, false);
152
153 RegenerateTooltips();
154}
155
156void CutCopyPasteToolBar::UpdatePrefs()
157{

Callers

nothing calls this directly

Calls 3

AddFunction · 0.85
wxGridSizerClass · 0.70
SetEnabledMethod · 0.45

Tested by

no test coverage detected