On Tue, Oct 02, 2007 at 06:35:41PM +0200, Abdelrazak Younes wrote: > Andre Poenitz wrote: > >On Tue, Oct 02, 2007 at 09:51:12AM +0200, Abdelrazak Younes wrote: > >>And here is the beginning of a patch. If you could take it and finish > >>the remaining bits together with your patch, you'd make me very happy. > >> > >>Abdel. > >> > > > >>Index: Buffer.cpp > >>=================================================================== > >>--- Buffer.cpp (revision 20651) > >>+++ Buffer.cpp (working copy) > >>@@ -68,6 +68,7 @@ > >> #include "mathed/MathSupport.h" > >> > >> #include "frontends/alert.h" > >>+#include "frontends/WorkAreaManager.h" > > > >With that done, does that mean you are now fine with the delegate patch? > > Just one question: what about Buffer::structureChanged() signal? How > would you solve that bit in a multiview context? Maybe we also need a > LyXViewManager?
In the long run perhaps. But there will be stuctural changes needed to get there, and we know that the problems are solvable with a few lines. So I am not really too concerned right now. We could also have a "generic" gui delegate that in turn uses signal/slot in its private implementation to connect to the views/workareas/whatever. This way the kernel would not need to use s/s, yet we could use them when they really make sense. Andre'