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

Method Enable

src/MenuCreator.cpp:219–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void MenuItemVisitor::CommandListEntryEx::Enable(bool b)
220{
221 if (!menu) {
222 enabled = b;
223 return;
224 }
225
226 // LL: Refresh from real state as we can get out of sync on the
227 // Mac due to its reluctance to enable menus when in a modal
228 // state.
229 enabled = menu->IsEnabled(id);
230
231 // Only enabled if needed
232 if (enabled != b) {
233 menu->Enable(id, b);
234 enabled = menu->IsEnabled(id);
235 }
236}
237
238void MenuItemVisitor::CommandListEntryEx::EnableMultiItem(bool b)
239{

Callers 15

EnableDisableControlsMethod · 0.45
OnBeforeRefreshMethod · 0.45
OnRefreshCompletedMethod · 0.45
OnGridSelectMethod · 0.45
OnBeforeRefreshMethod · 0.45
OnRefreshCompletedMethod · 0.45
OnGridSelectMethod · 0.45
PopulateMethod · 0.45
OnTextChangedMethod · 0.45
DefaultErrorHandlerFunction · 0.45

Calls 1

IsEnabledMethod · 0.45

Tested by

no test coverage detected