| 226 | } |
| 227 | |
| 228 | void 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 | |
| 246 | void ExportOptionsHandler::OnFormatInfoChange() |
| 247 | { |