On Sunday 10 March 2002 7:51 am, Allan Rae wrote:
> >     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!

Well maybe there should be a 
        bool enable_tooltips_on_start
lyxrc entry, but this should be used to initialise the 
        bool tooltips_enabled
variable in the xforms Tooltips class behind the frontends firewall. This can 
go in as a small mod at any time.

So, I disagree with you, at least partially. Anyway, I decided a signal was 
the wrong way too and used a static method returning a bool.

Angus


Reply via email to