On Friday 22 September 2006 18:24, Paul A. Rubin wrote:
>
> (Note:  I have not tested the following.) I think you can edit
> .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
> something like
>
> Item "Toggle read-only|Q" "buffer-toggle-read-only"

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using "T"  instead of "Q" as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.
>
> (perhaps changing Q to a more salubrious hot key, or omitting it).  I
> would save the hacked file in the ui subfolder under your home
> directory, so that it would survive reinstallations and upgrades.
>
> On the other hand, the path of least resistance might be simply to use
> File->New from template... to open documents you don't want to modify.
> The resulting file is writable, but it gets a default name (e.g.
> newfile1.lyx), so inadvertently saving it will at worst clutter your
> drive a bit.
>
> /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741

Reply via email to