| 31 | ExportOptionsHandler::~ExportOptionsHandler() = default; |
| 32 | |
| 33 | ExportOptionsHandler::ExportOptionsHandler(ShuttleGui& S, const ExportPlugin& plugin, int format) |
| 34 | { |
| 35 | mParent = S.GetParent(); |
| 36 | |
| 37 | mEditor = plugin.CreateOptionsEditor(format, this); |
| 38 | if(mEditor) |
| 39 | { |
| 40 | mEditor->Load(*gPrefs); |
| 41 | if(auto uiServices = dynamic_cast<ExportOptionsUIServices*>(mEditor.get())) |
| 42 | uiServices->PopulateUI(S); |
| 43 | else |
| 44 | PopulateOptions(S); |
| 45 | } |
| 46 | else |
| 47 | PopulateEmpty(S); |
| 48 | } |
| 49 | |
| 50 | bool ExportOptionsHandler::TransferDataFromEditor() |
| 51 | { |
nothing calls this directly
no test coverage detected