Bo Peng wrote:
I am in the process of adding INFO_SHORTCUTS, adding INFO_ICON should
be straightforward.
Except that the icon shall be displayed as a graphics, a bit like what
InsetGraphics does, but without the delayed loading (especially if we
can get the QImage from the toolbar code).
We are inserting something to the LyX document, so InsetGraphics has
to be used.
Not necessarily. We can add Painter::icon() method to the painter interface.
What we need to do is insert
/usr/local/share/lyx/images/blah.png (platform dependent) when
InsetInfo::update() is called.
Icon loading uses the Qt ressource system right now so if you follow my
advice above you won't have to face this problem.
Abdel.