#include <config.h>
#include <iostream>
+#ifdef KDEGUI
+# include <kapp.h>
+#endif
+#ifdef GTKGUI
+# include <gnome--/main.h>
+# include "frontends/gnome/mainapp.h"
+GLyxAppWin * mainAppWin;
+#endif
+
#include FORMS_H_LOCATION
#include "lyx_main.h"
#include "LString.h"
#include "support/filetools.h"
+
// I keep these here so that it will be processed as early in
// the compilation process as possible.
#if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0
"in continuing executing LyX!" << endl;
return 1;
}
+
+#ifdef KDEGUI
+ KApplication a( argc, argv );
+#endif
+#ifdef GTKGUI
+ Gnome::Main a(PACKAGE,VERSION,1,argv); //argc, argv );
+ GLyxAppWin appWin;
+ mainAppWin = &appWin;
+#endif
// lyx_localedir is used by gettext_init() is we have
// i18n support built-in