On Wed, Jun 14, 2006 at 11:00:06PM +0200, Abdelrazak Younes wrote: > Andre Poenitz wrote: > >On Tue, Jun 13, 2006 at 11:36:09AM +0100, Angus Leeming wrote: > >>Why not have namespaces to reflect the directory > >>structure? > >> > >>lyx > >>lyx::frontends > >>lyx::frontends::qt4 > >>lyx::support > > > >Well, maybe better than what we have now, but having classes of the same > >name only distinguished by namespace is still a pain maintanance wise. > >No decent searching e.g. > > I am not sure I understand why it is a pain but OK I will do the change > one last time.
Because you can't 'simple search-and-replace' anymore because you end up replacing everything (making simple things 'C++ namespace aware' is difficult to say the least). Also, with our using policy the namespace context is gone in the implementation. OTOH full qualification is not a good option either... > So this is my last proposal and this is non negotiable: > > in src/: lyx > in src/frontends/: lyx::frontend:: > > Gui : virtual interface for all Gui operation > View: virtual interface for Views > WorkArea: virtual interface for WorkAreas > Clipboard: virtual interface for clipboard operation > GuiCursor: this one is special because it does not need a frontend > specialisation. > in src/frontends/[qt3,qt4,gtk,xforms]/: in the respective namespace we > have lyx::frontend::[qt3,qt4,gtk,xforms]:: > > TheGui, GuiView, GuiWorkArea, GuiClipboard, > > I will also change cursor() to guiCursor() to please JMarc. > > Comments? Fine with me. Andre'