| 79 | |
| 80 | public: |
| 81 | IdlePanelImpl(MainWindow* mainWindow, wxSimplebook* parent): |
| 82 | IdlePanelGen(parent), |
| 83 | IdlePanel(mainWindow), |
| 84 | _imageList(48, 48, true, 0), |
| 85 | _config("FluxEngine") |
| 86 | { |
| 87 | int defaultFormat = 0; |
| 88 | int i = 0; |
| 89 | for (const auto& it : formats) |
| 90 | { |
| 91 | auto config = std::make_unique<ConfigProto>(); |
| 92 | *config = *it.second; |
| 93 | if (config->is_extension()) |
| 94 | continue; |
| 95 | |
| 96 | formatChoice->Append(it.first); |
| 97 | _formatNames.push_back(it.first); |
| 98 | i++; |
| 99 | } |
| 100 | |
| 101 | LoadConfig(); |
| 102 | UpdateDevices(); |
| 103 | UpdateFormatOptions(); |
| 104 | |
| 105 | parent->AddPage(this, "idle"); |
| 106 | |
| 107 | _imageList.Add( |
| 108 | createBitmap(icon_hardware_png, sizeof(icon_hardware_png))); |
| 109 | _imageList.Add( |
| 110 | createBitmap(icon_fluxfile_png, sizeof(icon_fluxfile_png))); |
| 111 | _imageList.Add( |
| 112 | createBitmap(icon_imagefile_png, sizeof(icon_imagefile_png))); |
| 113 | |
| 114 | UpdateSources(); |
| 115 | } |
| 116 | |
| 117 | public: |
| 118 | void Start() override |
nothing calls this directly
no test coverage detected