Peter Kümmel wrote:
Martin Vermeer wrote:
We _have_ tabs. But -- they are arranged vertically under a pulldown
menu :-)
I would love it to have tabs for the multiple documents.
Implementing tabs was the reason for me to become a lyx developer.
Currently we have one QWidget which shows all documents.
This is GuiWorkArea.
We could
replace this widget with a QTabWidget and host the original QWidget
in all tabs. Then, when the tab is changed the viewing QWidget is
updated with the new document (as now), but is visiable in the new
tab.
This changes seems not so critical. Abdel could you give me some
tips we I have to start?
There are two solutions:
1) Make the central widget a QTabWidget in GuiView (which is a
QMainApplication). Then host a new QWorkArea for each tab. In this
context, this would mean that two WorkArea in two tabs or in two split
windows would look the same to the parent GuiView.
2) Make the GuiWorkArea viewport a tab widget and handle the buffer
switch there. This would mean that there's only one WorkArea.
I like 1) more but 2) might be easier to do.
Abdel.