From: Andreas K. <and...@ac...> - 2009-02-10 23:10:03
|
Jeff Hobbs wrote: > My preference would be a more general icons package that supported > multiple sets of icons, perhaps starting with famfam. This would be > like the tklib style package, with substyles. > > So you have something more like: > > package require icons > set groups [icons::get groups] ; # or packages or something > => famfam kdeicons ... > set group famfam > set icons [icons::list *arrow* ?$group?] > ... > > Where the grouping can be done by some ordering of directories with > files of matching known image format types. > Mind you, I don't have time to write this, so it's just an idea ... Your idea seems to exist on the level above of what I threw together on the quick. I wanted simple physical access, and you seem to be building icon themes on top. Where an abstract icon name exists across all themes, and each theme maps that it proper physical icon. Although from your description it could also be a general physical access. One package, configured with path(s) to icon master directories, or having them as siblings, and automatically picks up a new 'group' when a sub-directory is made for it in a master, and filled. Ok, more meditation required ... might be possible to get something like this in an incremental fashion. Plugin-like ... > Jeff > > On 10-Feb-09, at 12:31 PM, Andreas Kupries wrote: > >> Requesting review of a new module for tklib, before committing. >> >> Sources available at >> ftp://ftp.tcl.tk/pub/incoming/tklib-famfam.tgz >> (Can't put up on SF, they limit attachments to 256 KB, this file is 2 >> MB compressed (6 MB uncompressed)). >> >> A module containing 2 packages wrapping around the silk and flags >> icon sets of >> famfam, to make their use in tcl apps easier. Just require the >> package, then >> load an icon/image by name. >> >> >> Examples of use >> package require famfam::silk >> set arrows [famfam::silk list *arrow*] >> set rotccw [famfam::silk get arrow_rotate_anticlockwise] >> >> package require famfam::flags >> set dubya [famfam::flags list w*] >> set wales [famfam::flags get wales] >> >> >> Ideas for the future >> - Commands to generate packages containing a subset of the icon set. >> - With the icons hardwired into the package code (base64 encoded). >> => Deployable as Tcl Module. >> - With the icons in a subdirectory as for the original package. >> - With the icons attached to the base tcl code (virtual fs). >> >> >> Andreas. > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Tcllib-devel mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcllib-devel |