Use LyXLookup when xforms version < 0.89.5

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1258 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-12-05 17:12:47 +00:00
parent 4789208ca1
commit 33f1ba925a
5 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,13 @@
2000-12-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* config/lyxinclude.m4 (LYX_PATH_XFORMS): display also the
fixlevel along with xforms version.
* src/WorkArea.C (work_area_handler): use stuff in lyxlookup.h when
xforms version is strictly less than 0.89.5.
* src/lyx_gui.C (LyXGUI): ditto.
* src/LyXView.C (show): ditto.
2000-12-02 Dekel Tsur <dekelts@tau.ac.il>
* src/BufferView_pimpl.C (workAreaMotionNotify): Fixed mouse

View File

@ -609,7 +609,7 @@ if test $ac_cv_header_forms_h = yes; then
#if ! defined(FL_INCLUDE_VERSION)
"%%%"(unknown)"%%%"
#else
"%%%"FL_VERSION.FL_REVISION"%%%"
"%%%"FL_VERSION.FL_REVISION.FL_FIXLEVEL"%%%"
#endif
EOF
lyx_cv_xfversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
@ -617,12 +617,12 @@ lyx_cv_xfversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
sed -e 's/^"%%%"\(.*\)"%%%"/\1/' -e 's/ //g'`
rm -f conftest*])
case "$lyx_cv_xfversion" in
"(unknown)"|0.8[1-7])
"(unknown)"|0.8[1-7]*)
LYX_ERROR(dnl
Version $lyx_cv_xfversion of xforms is not compatible with LyX.
This version of LyX works best with versions 0.88 (recommended) and later.) ;;
0.88) ;;
0.89) LYX_WARNING(dnl
0.88*) ;;
0.89*) LYX_WARNING(dnl
LyX should work ok with version $lyx_cv_xfversion of xforms[,] but
it is an unproven version and might still have some bugs. If you
have problems[,] please use version 0.88 instead.) ;;

View File

@ -19,7 +19,7 @@
#include "LyXView.h"
#include "lyx_main.h"
#if FL_REVISION < 89
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
#include "lyxlookup.h"
#endif
#include "minibuffer.h"
@ -214,7 +214,7 @@ void LyXView::show(int place, int border, string const & title)
{
fl_show_form(form_, place, border, title.c_str());
minibuffer->Init();
#if FL_REVISION < 89
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
InitLyXLookup(fl_get_display(), form_->window);
#endif
}

View File

@ -22,7 +22,7 @@
#include "LyXView.h"
#include "lyxfunc.h"
#if FL_REVISION < 89
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
#include "lyxlookup.h"
#endif
@ -336,8 +336,8 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event,
KeySym keysym = 0;
char dummy[1];
XKeyEvent * xke = reinterpret_cast<XKeyEvent *>(ev);
#if FL_REVISION < 89
// XForms < 0.89 does not have compose support
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
// XForms < 0.89.5 does not have compose support
// so we are using our own compose support
LyXLookupString(ev, dummy, 1, &keysym);
#else

View File

@ -35,7 +35,7 @@
#include "lyxrc.h"
#include "gettext.h"
#include "lyx_gui_misc.h"
#if FL_REVISION < 89
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
#include "lyxlookup.h"
#endif
#include "bufferlist.h"
@ -167,7 +167,7 @@ LyXGUI::~LyXGUI()
delete lyxserver;
lyxserver = 0;
delete lyxViews;
#if FL_REVISION < 89
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
CloseLyXLookup();
#endif
}