+ path_list.push_back (wx_to_std (paths[i]));
+ }
+
+ add_files (path_list);
+}
+
+void
+ContentPanel::add_files (list<boost::filesystem::path> paths)
+{
+ /* It has been reported that the paths returned from e.g. wxFileDialog are not always sorted;
+ I can't reproduce that, but sort them anyway. Don't use ImageFilenameSorter as a normal
+ alphabetical sort is expected here.
+ */
+
+ paths.sort (CaseInsensitiveSorter ());
+
+ /* XXX: check for lots of files here and do something */
+
+ for (list<boost::filesystem::path>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
+ _film->examine_and_add_content (content_factory (_film, *i));