MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / PopulateModel

Method PopulateModel

radiant/ui/common/ImageFilePopulator.cpp:113–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void 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
134void ImageFilePopulator::SortModel(const wxutil::TreeModel::Ptr& model)
135{

Callers

nothing calls this directly

Calls 5

to_lower_copyFunction · 0.85
getExtensionFunction · 0.85
addFileMethod · 0.80
forEachFileMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected