Bo Peng wrote:
Yes and I've reported that earlier. I am starting to think you are
filtering my mails Bo... :-)
Sorry that I am buried with emails so I often ignore threads that do
not seem to interest me.
I've also asked Peter to enable the TabBar in te new window. This will
implicitely solves the problem as the menu is only updated when there is
a valid BufferView visible.
A valid BufferView will be good. To complete the bookmark feature, I
also need help on (see another email)
1. tell if a file is
a. not opened: not in theBufferList(), easy.
b. opened in anther window: in theBufferList(), how to tell not in
this window???
c. opened in this window: in theBufferList().
First, a Buffer is opened or it is not. The good question are:
b. opened a Buffer and switch to this Buffer in another window, in
theBufferList(), how to tell not in this window???
theBufferList() should not know. The session stuff should save the id of
the LyXView (as given by Gui::newView() when the view is created). Then
the session stuff can buffer-switch the identified LyXView to this Buffer.
c. Buffer-switch in this window: in theBufferList()?
No, again, BufferList doesn't know about LyXView at all.
2. for these cases:
a. open a file, I can do it.
b. how to setbuffer without open the file again?
In principle this check is done already.
Hope I'm clear...
Abdel.