]> git.lyx.org Git - features.git/commitdiff
Just cosmetics and remove a FIXME.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 19 Oct 2006 10:32:38 +0000 (10:32 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 19 Oct 2006 10:32:38 +0000 (10:32 +0000)
Now, lyx is really ready for multiple LyXView. Just need to create an LFUN for it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15370 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Application.C

index b8ac7c26a75397ef3f7bc31c5f4cad9d82ecbd2d..a7189c22a7ae9033d199a1b448f5ef3d3dbba884 100644 (file)
@@ -42,6 +42,11 @@ namespace frontend {
 
 Application::Application(int &, char **)
 {
+       // FIXME: please confirm: with unicode, I think initEncoding()
+       // is not needed anymore!
+       
+       // this can't be done before because it needs the Languages object
+       //initEncodings();
 }
 
 
@@ -56,20 +61,12 @@ LyXView & Application::createView(unsigned int width,
                                                                  int posx, int posy,
                                                                  bool maximize)
 {
-       // FIXME: please confirm: with unicode, I think initEncoding()
-       // is not needed anymore!
-       
-       // this can't be done before because it needs the Languages object
-       //initEncodings();
-
        int view_id = gui().newView();
        LyXView & view = gui().view(view_id);
 
        theLyXFunc().setLyXView(&view);
 
-       // FIXME: for now we assume that there is only one LyXView with id = 0.
-       /*int workArea_id_ =*/ gui().newWorkArea(width, height, 0);
-       //WorkArea * workArea_ = & theApp->gui().workArea(workArea_id_);
+       /*int workArea_id_ =*/ gui().newWorkArea(width, height, view_id);
 
        view.init();
        view.setGeometry(width, height, posx, posy, maximize);