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

Method OnExportOptionChange

src/export/ExportOptionsHandler.cpp:228–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void ExportOptionsHandler::OnExportOptionChange(const ExportOption& option)
229{
230 const auto it = mIDRowIndexMap.find(option.id);
231 if(it == mIDRowIndexMap.end())
232 return;
233
234 const auto index = it->second;
235 const auto [prompt, control] = mRows[index];
236
237 const auto visible = (option.flags & ExportOption::Hidden) == 0;
238
239 prompt->Show(visible);
240 control->Show(visible);
241
242 const auto enabled = (option.flags & ExportOption::ReadOnly) == 0;
243 control->Enable(enabled);
244}
245
246void ExportOptionsHandler::OnFormatInfoChange()
247{

Callers 4

SetValueMethod · 0.80
SetValueMethod · 0.80
SetValueMethod · 0.80
SetValueMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
ShowMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected