Dirk Brandherm wrote:

> Hi there,
>  
> I just installed LyX 1.3.4 on my SuSe 9.0 machine.
> Basically, everything seems to work fine. However, from
> the "Development News for 20030504" on the LyX.org site I
> gather that there should be some way to configure the
> toolbar(s). How is this done? And how do I get the new
> icons to show up in the toolbar?

You mean multiple toolbars whose visibility is context-sensitive? Eg, 
you enter a math inset and a toolbar pops up with a bunch of math 
icons. That is a feature that will appear with the LyX 1.4.x series. 
You'll have to wait 'til 1.4.0 is released.

If, however, you want to change the icons and actions of the existing 
toolbar, then copy the system-default 
${PREFIX}/share/lyx/ui/default.ui file to ${HOME}/.lyx/ui/default.ui 
and start modifying it.

Toolbar
    Layouts
    Icon "file-open"
    Icon "buffer-write"
    Icon "buffer-print"
    Separator

"file-open" is the action that is invoked when you click on the icon. 
You'll find a list of available actions, a.k.a LFUNs at 
http://wiki.lyx.org/pmwiki.php/Devel/LFUNs

Each LFUN should have an implicitly-named icon. Eg, 
${PREFIX}/share/lyx/images/file-open.xpm. I *believe* that you can 
override the system-default icons by placing your own version in 
${HOME}/.lyx/images/file-open.xpm. Go experiment.

If you want to invoke an 'unusual' LFUN from the toolbar, then you'll 
need to create the icon for it.

HTH,
-- 
Angus

Reply via email to