|
From: <tim...@en...> - 2006-06-18 03:03:49
|
Ethan A Merritt wrote: > On Saturday 17 June 2006 09:47 pm, Timoth=E9e Lecomte wrote: > =20 >> You can embed a PNG file in the source code after having converted to = a=20 >> C array. Thus you profit from the compression of the PNG format=20 >> (compared to including XPM files) and you don't have to care about the= =20 >> paths as the files are included at compile time. >> =20 > > OK by me. =20 > > But in the abstract, I'd still like to leave open the possibility > of users adding their own custom menu icons with bound actions.=20 > As I envision it, the system would work similarly to the > existing 'bind' command. E.g. instead of binding to a key, you'd > be binding to a menu button: > > bind icon "paintbox.png" \ > action "load 'linestyles'; set style incr user; replot" > > (that doesn't quite work for other reasons, but you get the idea) > =20 Yes, yes, it is on my TODO list for post-4.2, and the move to embedded=20 PNGs for the default icons should not prevent any future extension of=20 the system. For custom icons, it seems reasonable to me to ask the user=20 for the full path. Timoth=E9e |