]> git.lyx.org Git - features.git/commit
new LFUN_WINDOW_CLOSE
authorAbdelrazak Younes <younes@lyx.org>
Mon, 23 Oct 2006 16:29:24 +0000 (16:29 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 23 Oct 2006 16:29:24 +0000 (16:29 +0000)
commitf4857dab04e15bfa6dd2e10159a95a5d93b53070
tree04151d7ae2a3fe99935e0a6d58ee40f35a13ff6a
parentdcc3f7f15109a79ebd7c82e781ee7a2cbcb2986a
new LFUN_WINDOW_CLOSE

* LyXFunc:
  - dispatch(): transfer assertion on lyx_view_ to each LFUN on a case by case basis.
  - dispatch(): new LFUN_WINDOW_CLOSE
  - getStatus(): special treatment for LFUN_LYX_QUIT

* LyX:
  - views_, addLyXView(): deleted
  - quit(): call saveGeometry() on each LyXView before exiting.

* GuiApplication:
  - is now a QObject.
  - quitLyX(): new Qt slot for lastWindowClosed signal.

* Gui.h:
  - destroyView(), destroyWorkArea(): deleted
  - viewIds(): new method

* GuiImplementation:
  - implement above changes.
  - GuiImplementation is now a QObject
  - cleanupViews(): new private slot.
  - buildViewIds(): new helper method
  - views_ and work_areas_ are now maps of raw pointers instead of schared_ptr.

* LyXView
  - now stores its id.
  - dispatch(): special treatment for LFUN_WINDOW_CLOSE.
  - workAreaIds(): new method.
  - close(): new pure virtual method.
  - saveGeometry(): new pure virtual method.

* GuiView:
  - implements above changes.
  - GuiView(): set WA_DeleteOnClose and Qt::WA_QuitOnClose to let Qt manage the destruction on close().
  - closeEvent(): session stuff transfered to saveGeometry()

* WorkArea
  - now store its id.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15514 a592a061-630c-0410-9148-cb99ea01b6c8
22 files changed:
development/scons/scons_manifest.py
lib/ui/stdmenus.ui
src/LyXAction.C
src/frontends/Gui.h
src/frontends/LyXView.C
src/frontends/LyXView.h
src/frontends/WorkArea.C
src/frontends/WorkArea.h
src/frontends/qt4/GuiApplication.C
src/frontends/qt4/GuiApplication.h
src/frontends/qt4/GuiImplementation.C
src/frontends/qt4/GuiImplementation.h
src/frontends/qt4/GuiView.C
src/frontends/qt4/GuiView.h
src/frontends/qt4/GuiWorkArea.C
src/frontends/qt4/GuiWorkArea.h
src/frontends/qt4/Makefile.am
src/frontends/qt4/Makefile.dialogs
src/lfuns.h
src/lyx_main.C
src/lyx_main.h
src/lyxfunc.C