[Patch] Usage of URL's filename to detect hidden files

David Faure faure at kde.org
Wed Mar 17 21:34:02 GMT 2004


On Wednesday 17 March 2004 22:28, Craig Drummond wrote:
> > > The reason being in the fonts:/ ioslave I want to return the font name
> > > (e.g. "Times New Roman") as the UDS_NAME, and the actual file name
> > > (times.ttf) as the UDS_URL.
> >
> > That sounds fine.
> > But when would you have a hidden file? And what would be its visible item
> > name?
> 
> When a font is "disabled" - made inactive, but not deleted - I simply make it 
> a hidden file. For the visible name I'm just using the font name and adding 
> "(Disabled)" - e.g. "Times New Roman (Disabled)"

Hmm, then making the filename start with a dot is a hack :)
Maybe it would be better to add a UDS_FLAGS (a long), which would include 
a bitfield, among which we'd have a hidden flag (and this would give room
for more).

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list