Mercurial > projects > mde
comparison mde/setup/paths.d @ 115:1b1e2297e2fc
Enums handled more generically now via either a popup list or flat list of BoolContentWidgets.
EnumContent is an IContentList with BoolContent sub-contents.
Content modules moved around (again).
ContentListWidget can now list horizontally.
Log-level setting callback.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 20 Dec 2008 17:57:05 +0000 |
parents | 20f7d813bb0f |
children |
comparison
equal
deleted
inserted
replaced
114:b16a534f5302 | 115:1b1e2297e2fc |
---|---|
262 { return isDir || fp.suffix == ".ttf" || fp.suffix == ".pfb"; }, | 262 { return isDir || fp.suffix == ".ttf" || fp.suffix == ".pfb"; }, |
263 true); | 263 true); |
264 fontFiles = new SortedMap!(char[],char[]); | 264 fontFiles = new SortedMap!(char[],char[]); |
265 foreach (fp; fs.files) | 265 foreach (fp; fs.files) |
266 fontFiles.add (fp.file, fp.cString); // both strings should be slices of same memory | 266 fontFiles.add (fp.file, fp.cString); // both strings should be slices of same memory |
267 logger.trace ("found {} font files, {} dirs", fs.files.length, fs.folders.length); | |
268 } | 267 } |
269 } else version (Windows) { | 268 } else version (Windows) { |
270 char[] fontDir; | 269 char[] fontDir; |
271 /** Get the actual path of a font file, or throw NoFileException if not found. | 270 /** Get the actual path of a font file, or throw NoFileException if not found. |
272 * | 271 * |