Hello, The attached patch shows that multiple views is becoming a reality ;-)
There is a lot of crash still but you can load different documents into the two LyXView. We need to ensure that every GUI oriented LFUN passes through LyXView to fix these crashes.
Abdel.
Index: lyx_main.C =================================================================== --- lyx_main.C (revision 15306) +++ lyx_main.C (working copy) @@ -42,6 +42,7 @@ #include "frontends/Alert.h" #include "frontends/Application.h" +#include "frontends/Gui.h" #include "frontends/LyXView.h" #include "support/environment.h" @@ -381,6 +382,13 @@ LyXView * view = &theApp->createView(width, height, posx, posy, maximize); ref().addLyXView(view); + int view2_id = theApp->gui().newView(width, height); + LyXView & view2 = theApp->gui().view(view2_id); + ref().addLyXView(&view2); + /*int workArea_id_ =*/ theApp->gui().newWorkArea(width, height, view2_id); + view2.init(); + view2.setGeometry(width-100, height-100, posx, posy, maximize); + // load files for_each(files.begin(), files.end(), bind(&LyXView::loadLyXFile, view, _1, true));