]> git.lyx.org Git - features.git/commit
This commit introduces frontends/Application.[Ch] and makes qt4/GuiApplication (renam...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 22 Sep 2006 09:47:39 +0000 (09:47 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 22 Sep 2006 09:47:39 +0000 (09:47 +0000)
commit3f0fadc48ad6fb14594787e1ecd747bf6e79b2f3
treea6a93df04d9865426cea45877f82a0ddf8eaea53
parentde161c40b1e8c5896f18f503c12cf29ec57bbf1e
This commit introduces frontends/Application.[Ch] and makes qt4/GuiApplication (renamed from qt4/Application) derive from it. Most of the code in qt4/lyx_gui.C has been transferred either to Application or to qt4/GuiApplication. Application handles unique instances of LyXFunc, LyXServer and LyXServerSocket.

Most of qt3 and gtk should stay compilable except for LyXView.h because the LyXFunc instance has been transferred to Application.

* frontends/Application: new class aimed to be the one unique interface between the frontend and the kernel. Contains one global pointer to the unique instanciation theApp.

* frontends/qt4/GuiApplication: renamed from qt4/Application, the qt4 specialisation of the Application class.  Contains one global pointer to the unique instanciation guiApp (equal to theApp but pointing to a GuiApplication instead).

* frontends/qt4/lyx_gui.C: most of the code has been moved to Application and GuiApplication

All other file: adapted to new API.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15114 a592a061-630c-0410-9148-cb99ea01b6c8
12 files changed:
src/frontends/Application.C [new file with mode: 0644]
src/frontends/Application.h [new file with mode: 0644]
src/frontends/LyXView.h
src/frontends/WorkArea.C
src/frontends/qt4/Application.C [deleted file]
src/frontends/qt4/Application.h [deleted file]
src/frontends/qt4/GuiApplication.C [new file with mode: 0644]
src/frontends/qt4/GuiApplication.h [new file with mode: 0644]
src/frontends/qt4/GuiWorkArea.C
src/frontends/qt4/QLPainter.C
src/frontends/qt4/lyx_gui.C
src/frontends/qt4/qfont_metrics.C