lyx_mirror/src/frontends
Enrico Forestieri d08210e961 Fix cancel on quit
* src/lyxfunc.C
	(LyXFunc::dispatch): Move to GuiView::closeEvent the session code
	for lastpos in LFUN_LYX_QUIT. Check for unsaved changes before
	initiating the quit procedure in LFUN_LYX_QUIT and LFUN_WINDOW_CLOSE. 

	* src/frontends/qt4/GuiView.h
	(class GuiView): New boolean member quitting_by_menu_.

	* src/frontends/qt4/GuiView.C
	(GuiView::GuiView): Initialize quitting_by_menu_.
	(GuiView::close): Set to true quitting_by_menu_ before calling
	the quit procedure and reset it afterwards.
	(GuiView::closeEvent): Account for the close window button.
	Save last positions to the session file. Remove wrongly placed
	call to quitWriteAll.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16248 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 01:39:50 +00:00
..
controllers convert thesaurus and spellchecker to docstring 2006-12-10 11:52:46 +00:00
qt4 Fix cancel on quit 2006-12-12 01:39:50 +00:00
Alert_pimpl.h
Alert.C
Alert.h
Application.C unneeded header 2006-12-07 12:03:58 +00:00
Application.h * GuiApplication::x11EventFilter(): check for currentView() before using it. 2006-12-04 13:52:02 +00:00
ChangeLog
Clipboard.h
Dialogs.C
Dialogs.h
FileDialog.h
FontLoader.h
FontMetrics.h * enable font metrics cache for all platforms. 2006-12-04 10:09:22 +00:00
Gui.h Clean up quit code. 2006-12-02 17:39:31 +00:00
key_state.h
LyXKeySym.h
LyXKeySymFactory.h
LyXView.C Clean up quit code. 2006-12-02 17:39:31 +00:00
LyXView.h remove unused signal 2006-12-03 10:14:35 +00:00
Makefile.am
Menubar.h
mouse_state.h
NoGuiFontLoader.h
NoGuiFontMetrics.h fix compiler warning 2006-12-07 17:48:38 +00:00
Painter.C Button face-lift: stop shifting text under mouse 2006-12-07 16:26:17 +00:00
Painter.h Button face-lift: use mouse hover-buttons. 2006-12-04 04:31:18 +00:00
pch.h
Selection.h
Timeout.C
Timeout.h
Toolbars.C add an extra blank 2006-11-18 20:47:53 +00:00
Toolbars.h
WorkArea.C * BufferView: 2006-12-07 11:46:27 +00:00
WorkArea.h * Status.15x: updates. 2006-11-20 14:42:18 +00:00