| 111 | } |
| 112 | |
| 113 | void ImageFilePopulator::PopulateModel(const wxutil::TreeModel::Ptr& model) |
| 114 | { |
| 115 | ImageFileFunctor functor(model, _columns); |
| 116 | |
| 117 | GlobalFileSystem().forEachFile( |
| 118 | "", "*", |
| 119 | [&](const vfs::FileInfo& fileInfo) |
| 120 | { |
| 121 | ThrowIfCancellationRequested(); |
| 122 | |
| 123 | if (_extensions.count(string::to_lower_copy(os::getExtension(fileInfo.name))) == 0) |
| 124 | { |
| 125 | return; |
| 126 | } |
| 127 | |
| 128 | functor.addFile(fileInfo); |
| 129 | }, |
| 130 | 99 |
| 131 | ); |
| 132 | } |
| 133 | |
| 134 | void ImageFilePopulator::SortModel(const wxutil::TreeModel::Ptr& model) |
| 135 | { |
nothing calls this directly
no test coverage detected