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;

that gets connected to Tooltips::enabled() (other side of the frontends 
firewall). I have no time to do that tonight. Gotta dash.

Shall I just commit what I have done or post it to the list? (it does work!)

Angus

Reply via email to