Abdelrazak Younes wrote:
Jean-Marc Lasgouttes wrote:
FWIW, I agree that the toolbar design is awkward, and that a rewrite
would be welcome.
The first thing to do would be to move *all* code related to toolbar and menubar handling to the frontend. We should do the toolbar/menubar Action unification we were talking about back before 1.4.0 (in Christmas 2005?), basically: [snip]
There are various ways to do this, and we should figure it out. But here's a more sedate proposal, namely, that in the toolbar file itself, we do something like this:
   Toolbar "math" "Math" "Status LFUN"
This would enable to disable the whole toolbar by checking the Status LFUN, and if the toolbar is disabled, then the individual actions don't need checking. The individual items would have something similar:
   Item "Item Name" "LFUN" "Status LFUN"
If it's empty (or missing), that's default; if it's NOOP, then we don't need to check this one at all. That's true, for example, for most of the math panel actions. The point of adding a Status LFUN that was non-default would be that we could perhaps organize the check by LFUN rather than by action. So, if several actions were always going to be enabled--disabled together, you could check some common LFUN once rather than several times. But you could just ignore the non-default case and have "NOOP" be the only real choice.

Richard

Reply via email to