Yaniv <yaniv256 <at> gmail.com> writes:

> 
> Julien Rioux <jrioux <at> physics.utoronto.ca> writes:/
> 
> > 
> > On 10/08/2011 1:55 AM, Jason Rute wrote:
> > > Hello, I added
> > >
> > >       Item "Insert | |" "math-delim | |"
> > >
> > > to my stdtoolbars.inc file.  It works fine, except that I can't figure out
> > > what the corresponding icon file name should be (in
> > > AppData/Roaming/Lyx2.0/images/math).
> ...
> > > Does anyone know?  Is this a bug?
> 
> I just wanted to share that I also looked for this icon filename but could not
> find what it was. Anyone knows the answer?
> 

I figured it out!  It should be bars_bars.png.  I had to look in the source code
(src/frontends/qt4/GuiApplication.cpp).  It is fairly self explanatory:

QString png_name;
        if (it != end) {
                png_name = it->value;
        } else {
                png_name = name;
                png_name.replace('_', "underscore");
                png_name.replace(' ', '_');

                // This way we can have "math-delim { }" on the toolbar.
                png_name.replace('(', "lparen");
                png_name.replace(')', "rparen");
                png_name.replace('[', "lbracket");
                png_name.replace(']', "rbracket");
                png_name.replace('{', "lbrace");
                png_name.replace('}', "rbrace");
                png_name.replace('|', "bars");
                png_name.replace(',', "thinspace");
                png_name.replace(':', "mediumspace");
                png_name.replace(';', "thickspace");
                png_name.replace('!', "negthinspace");
        }






Reply via email to