>>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

>>  So the tabs should have the list of buffers in current view, while
>> the Menu should have all buffers, irrespectively of the view,
>> right? This hardly requires fancy widgets.

Abdelrazak> I am not talking about fancy widget but about reusing
Abdelrazak> widget that is already doing the job for us in Qt.

I have to admit that I have 0 trust that I understand what Qt is going
to do to widgets we give it to administer (in terms of sending update
signals of unpleasant things like that). This is why I prefer to do
things by hand.

>>  You mean easier than adding a 'if' in a for loop?

Abdelrazak> Yes. An if loop in the menu stuff doesn't sound right.
Abdelrazak> This looks much better to my eyes:

Abdelrazak> GuiView::addWorkArea(GuiWorkArea *)

So GuiView has a list of workareas and build a tab strip from it. The
fact that the canvas under these tabs are handled by qt or done by
hand by us seems irrelevant to us.

Abdelrazak> Don't forget that, right now the LyXView just pass the
Abdelrazak> setBuffer() call to the BufferView inside the WorkArea. Up
Abdelrazak> until now LyXView doesn't know about documents. The
Abdelrazak> BufferView knows and I would like to keep it that way.

I see.

I do not care that much about how things are done, anyway. I do not want
to start a long discussion about that.

>>  Doing drag and drop of tabs between windows would be indeed very
>> funny. I do not think it deserves a lot of work, however.

Abdelrazak> It is not about drag and drop. A simple right-click
Abdelrazak> "Detach" on the tab would do fine for me.

This is lame :)

This highlight the fact that we lack a good model of what we are
trying to do. How do we open a document several times? How do we close
a view of a document without closing all views? And things like that.
It may be that you worked on this recently and I missed it.

JMarc

Reply via email to