#include "system_font_dialog.h"
#include "wx_util.h"
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/filesystem.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/listctrl.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
#include <boost/filesystem.hpp>
-#include <iostream>
-using std::cout;
using std::string;
using boost::optional;
fonts = boost::filesystem::path (windir) / "Fonts";
}
- for (auto i: boost::filesystem::directory_iterator (fonts)) {
+ for (auto i: dcp::filesystem::directory_iterator(fonts)) {
auto ext = i.path().extension().string();
transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
int n = 0;
for (auto i: _fonts) {
- _list->InsertItem (n++, std_to_wx (i.leaf().stem().string ()));
+ _list->InsertItem(n++, std_to_wx(i.filename().stem().string()));
}
auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);