On Wed, Sep 27, 2006 at 12:02:30PM +0200, Abdelrazak Younes wrote: > >(btw. the bufferlist patch is ok, but we should consolidate > >Application and LyX) > > Yes and my objective is just this indeed. We all agree (I think) that > the frontend should use the kernel and not the other way around. I plan to: > > 1) transfer the remaining bits of lyx_gui to Application and GuiApplication. > 2) transfer bits by bits the lyx_main code to either Application or some > helper methods.
Fine with me. But keep in mind that to reach real encapsulation in the end _in theory_ src/*.[Ch] should not contain any #include "frontends/*". So getting a bufferlist via #include "frontends/Application" ... void foo() { do_something with theApp->bufferList() } does not seem right, it'd rather be something like void foo(BufferList const & bufferlist) { do_something with bufferlist } Andre'