On Mon, Nov 26, 2007 at 11:59:11PM +0100, Abdelrazak Younes wrote: > Just look at the current size of LyXView.h and WorkArea.h and you'll > understanding where I am heading. Thanks to Andre's recent cleanup and mine > we are closer now to the so called GUI independence goal than we never was.
Just to add to that notion: Nowadays we have ~59000 lines of code under frontends/* (i.e. basically in frontends/*.{h,cpp} and frontends/qt4/*.{h,cpp}. That's our own code, not compiled code. In "'proper' GUII times" (say revision 19000) we had ~77000 lines under frontends/* including ~54000 lines in frontends/qt4/*. Assuming that the GUII stuff scaled linearily we'd need _four and a half_ (n * 59000 >= 77000 + (n - 1) * 54000, i.e n >= 4.5) frontends to see any benefit in _code size_. And this assumes that (a) there was no increase in functionality since rev 19000 and (b) that the current cleaning was finished. More likely we are already in a state were the frontend proper is already slimmer than in GUII times as there might be ~5000 lines worth of new functionality since rev 19000, and on top of that we still shave off a few lines every day because of the ongoing cleanup. So Abdel is right when claiming that we are closer to GUII than we ever were as creating a new frontend by just fully copying/adapting the existing code is less effort than to pluck anything into the "old" scheme. We should have put an end to that madness five years earlier... Andre'