]> git.lyx.org Git - features.git/blobdiff - src/frontends/gtk/Dialogs.C
* remove various xforms relicts, in particular:
[features.git] / src / frontends / gtk / Dialogs.C
index 16c9be14965773d19c8d75a0e15ab13613c4e6ab..65abdfbf4df1258b3e84c9715df403bd2165a934 100644 (file)
@@ -1,5 +1,5 @@
 /**
-// * \file xforms/Dialogs.C
+// * \file gtk/Dialogs.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -58,7 +58,7 @@
 #include "GText.h"
 #include "GMathDelim.h"
 #include "GBibItem.h"
-//#include "FormBibtex.h"
+#include "GBibtex.h"
 #include "GBox.h"
 #include "GBranch.h"
 #include "GChanges.h"
@@ -67,7 +67,7 @@
 #include "GDocument.h"
 #include "GErrorList.h"
 #include "GERT.h"
-//#include "FormExternal.h"
+#include "GExternal.h"
 #include "GFloat.h"
 #include "GGraphics.h"
 #include "GInclude.h"
@@ -189,9 +189,9 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
                dialog->setView(new GBibItem(*dialog));
                dialog->bc().bp(new OkCancelReadOnlyPolicy);
        } else if (name == "bibtex") {
-//             dialog->bc().view(new xformsBC(dialog->bc()));
+               dialog->bc().view(new GBC(dialog->bc()));
                dialog->setController(new ControlBibtex(*dialog));
-//             dialog->setView(new FormBibtex(*dialog));
+               dialog->setView(new GBibtex(*dialog));
                dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
        } else if (name == "box") {
                dialog->bc().view(new GBC(dialog->bc()));
@@ -229,9 +229,9 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
                dialog->setView(new GERT(*dialog));
                dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
        } else if (name == "external") {
-//             dialog->bc().view(new xformsBC(dialog->bc()));
+               dialog->bc().view(new GBC(dialog->bc()));
                dialog->setController(new ControlExternal(*dialog));
-//             dialog->setView(new FormExternal(*dialog));
+               dialog->setView(new GExternal(*dialog));
                dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
        } else if (name == "file") {
                dialog->bc().view(new GBC(dialog->bc()));
@@ -567,12 +567,13 @@ void Dialogs::toggleTooltips()
 {
        // Turning off tooltips is not necessary and will
        // not be implemented by me - jcs
-//     Tooltips::toggleEnabled();
+       //Tooltips::toggleEnabled();
 }
 
 
 /// Are the tooltips on or off?
 bool Dialogs::tooltipsEnabled()
 {
-//     return Tooltips::enabled();
+       //return Tooltips::enabled();
+       return true;
 }