Linking was successful with --disable-debug. Thanks! I felt like it was time to wake up again ;-) As usual, feel free to modify the tips. I know that they can be enhanced by someone with more LyX and English skills than me. Anyway, the main goal is to add the mechanism to any dialog.
This patch is against recent CVS (after mighty-angus.diff ) Regards, Jürgen.
Index: src/frontends/xforms/ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/ChangeLog,v retrieving revision 1.415 diff -u -r1.415 ChangeLog --- src/frontends/xforms/ChangeLog 2002/06/13 13:43:48 1.415 +++ src/frontends/xforms/ChangeLog 2002/06/13 18:43:15 @@ -1,3 +1,7 @@ +2002-06-13 Juergen Spitzmueller <[EMAIL PROTECTED]> + + * FormRef.C: Add Tooltips + 2002-06-12 Angus Leeming <[EMAIL PROTECTED]> * form_*.[Ch]: removed from the repository. Index: src/frontends/xforms/FormRef.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormRef.C,v retrieving revision 1.48 diff -u -r1.48 FormRef.C --- src/frontends/xforms/FormRef.C 2002/06/13 13:43:49 1.48 +++ src/frontends/xforms/FormRef.C 2002/06/13 18:43:16 @@ -17,6 +17,7 @@ #include "ControlRef.h" #include "FormRef.h" #include "forms/form_ref.h" +#include "Tooltips.h" #include "xforms_helpers.h" #include "insets/insetref.h" #include "helper_funcs.h" // getStringFromVector @@ -62,6 +63,28 @@ bc().addReadOnly(dialog_->button_update); bc().addReadOnly(dialog_->input_name); bc().addReadOnly(dialog_->input_ref); + + //set up the tooltip mechanism + string str = _("List of all opened documents. The labels from the one you choose will be displayed in the browser. Useful if you are working with multipart documents, where you might want to refer to another doc."); + tooltips().init(dialog_->choice_buffer, str); + + str = _("The labels of the selected document. Choose the one you want to refer to."); + tooltips().init(dialog_->browser_refs, str); + + str = _("You can type in a label name here. Better choose one from the browser to be shure that it really exists."); + tooltips().init(dialog_->input_ref, str); + + str = _("Select the type of the reference. There are different more or less \"fancy\" ways. Please consult the User Guide for fancy ones like \"PrettyRef\" (which gives references like \"Chapter 2 on page 14\")."); + tooltips().init(dialog_->choice_type, str); + + str = _("Moves the cursor to the selected label and back to the place, where you are about to insert the reference."); + tooltips().init(dialog_->button_go, str); + + str = _("Enable to display the labels in alphabetical order. Otherwise they will be displayed in order of appearance."); + tooltips().init(dialog_->check_sort, str); + + str = _("Updates the List of Labels (if you have inserted new labels)."); + tooltips().init(dialog_->button_update, str); }