> What do you mean? The only difference is that you propose to create a
> new lyxfunc query-function that would call some sort of
> LyXFunc::Query() (via LyXFunc::Dispatch). And this means that we pass
> an additional parameter for each toolbar/menu item, whereas we know
> that this could be done in a central way in lyxfunc.C, as it is done
> currently at the beginning of Dispatch()...
>
> However, I do not really understand what you mean by ``two
> name-spaces''. It is probably why I don't understand you problem :)
>
> Could you elaborate?
Ok, I thought that you meant to have a new interface into the LyXFunc.
I.e. instead of calling dispatch, you'd call "query" with a value that
you'd like to query.
That would imply that we would have two different name-spaces: There
would be names for functinos to dispatch, and names for functions to
query.
Anyway, if we just use a "query-function", there is no problem.
--
Maybe the idea of a communicator/whatever as Allan is proposing for the
pop-ups can be reused in this setting. We need a prototype implementation
of that! Then we can judge whether the system fits for the toolbar as well,
or at least can be modified to do.
Greets,
Asger