On Fri, 8 Mar 2002, Angus Leeming wrote: > On Friday 08 March 2002 4:37 pm, Jean-Marc Lasgouttes wrote: > > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > > > > > Angus> How do I create a little check box for the What's This entry in > > Angus> the Help menu, like the Emphasize Style entry in Layouts? > > > > This is done in LyXFunc::getStatus. For example, for > > buffer-toggle-readonly, it is > > > > case LFUN_READ_ONLY_TOGGLE: > > flag.setOnOff(buf->isReadonly()); > > break; > > > > Should be easy enough, no? > > Very easy > > case LFUN_TOOLTIPS_TOGGLE: > flag.setOnOff(Tooltips::enabled()); > break; > > Oops not so easy. I'll need another static signal in Dialogs.h > static bool SigC::Signal0<bool> Dialogs::tooltipsEnabled;
Why? The tooltips should have a lyxrc entry and you can toggle based on that value instead. Otherwise someone who wants/hates tooltips has to turn them on/off in every session! > that gets connected to Tooltips::enabled() (other side of the frontends > firewall). I have no time to do that tonight. Gotta dash. Probably just as well. > Shall I just commit what I have done or post it to the list? (it does work!) I'd be happy enough if you commit what you described in your initial post. Any extras should be argued further. Allan. (ARRae)