On Mon, 11 Nov 2002, Andre Poenitz wrote: > On Mon, Nov 11, 2002 at 01:33:04PM +0000, Edwin Leuven wrote: > > > Does this count as comment? ;-) > > > > I guess not ;-) > > > > At the moment the various bullets are put/defined in static strings > > within the Bullet class. If you have a look in Bullet.C you will see this > > in bulletEntry(int,int). > > I wonder why such a bullet can't be a thin wrapper around a std::string > like "\ding{49}"? Is this just a performance enhancement?
It was more a matter of: it's easier to generate the string from a table of the known bullets that it is/was to attempt to remap a string to a bullet table position. The thing is the bullet tabs were always supposed to have the current bullet "pushed" for whatever level you were setting (ie. the pseudo-push-button was supposed to be indented but that never worked because of limitations in the image map thingy. A string is stored however for those cases where a person decides to customise the latex command -- such as wanting a rotated \ding{49}. > > Thing is that I need them so that users can set custom bullets using the > > UI. > > You need the strings? All of them at once? Why? Why couldn't you just request the string when the appropriate button is pushed? That is, use a Bullet as a lookup table. I haven't looked at your code yet. But I don't see why you need to change this -- even loading the pixmaps into the respective buttons on a bullets tab shouldn't have needed removing the strings. Maybe I'm forgetting something after all I wrote this stuff about 6 years ago. Allan. (ARRae)