On Mar 12, 2008, at 5:52 PM, Stefan Schimanski wrote:
Am 12.03.2008 um 22:49 schrieb Andre Poenitz:
On Wed, Mar 12, 2008 at 10:40:07PM +0100, Stefan Schimanski wrote:
Here is a series of patches
1) which add an open-in-window mode (enabled on Mac by default)
2) which keep LyX running, even after closing the last window on Mac
3) which close a window when the last tab is closed on Mac
3) which add a preference option to change (1)
For (2) I keep the GuiView with id 0 in memory and only hide it.
It is then
reused when the user requests another window.
Does the result look to a Mac user "more native" than what we have
now?
If so, I am not opposed.
Yes, that's the idea. Bennett proposed that in the thread about the
alpha, and it was discussed a lot some days ago.
Cool -- this is looking good! A few bugs I found:
1. When all windows are closed, it's not possible to open a new
window with the keyboard -- you have to use the mouse to access the
menu. (This also happened once with File > Open, even with a window
open, though I can't reproduce it.)
2. When choosing File > New from template ... and then canceling the
dialog, a new document is created (in a new window) nonetheless.
3. When opening a file when an existing window is open, the open
dialog is a drop-down sheet from the current window, but the new
document opens in a new window. (The open dialog probably should not
be a sheet.)
4. With at least one document open, <Cmd>Q or LyX > Quit (with the
mouse) closes all open windows, but does not quit LyX. Subsequently,
<Cmd>Q still doesn't work, and LyX > Quit sometimes does and
sometimes doesn't; I can't find a pattern. The only thing that
reliably quits LyX is using the dock.
5. Sessions handling doesn't quite work right (perhaps because of
(4)?). Once LyX writes a file to the list of last opened files in the
session file, it's hard to have that file deleted from the list.
Closing it, opening a different file, quitting, and restarting
results in *both* files being automatically opened, e.g.
Also, is it possible to open a document (existing or new) in a tab of
an existing window? I can do it with a master document, clicking on
the child-document buttons to open the child documents. Or I can do
it by opening a document in a new window, switching back to the
window I want to be tabbed, and selecting View > [document name];
this leaves the document open twice, and I can close the extra window
by clicking on the close-window widget -- which is a lot of steps. It
would be nice to have an lfun that we could bind to, say, <cmd><opt>n
or <cmd><opt>o for this case.
Thanks, Stefan.
Bennett