]> git.lyx.org Git - features.git/commitdiff
Jrgen's "Tooltips for the reference dialog" patch. I've tried to incorporate
authorAngus Leeming <leeming@lyx.org>
Tue, 18 Jun 2002 12:39:13 +0000 (12:39 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 18 Jun 2002 12:39:13 +0000 (12:39 +0000)
John and Allan's suggestions too. Feel free to improve...

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

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormRef.C

index 8989510e3a9a3e6459211b68a57b60155bda56b0..1f2440ee1eff2fe0ac881902718aabe2659dded7 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-13  Juergen Spitzmueller <j.spitzmueller@gmx.de>
+
+       * FormRef.C: Add Tooltips
+
 2002-06-18  Angus Leeming  <leeming@lyx.org>
 
        * forms/.cvsignore: ignore any generated files/dirs.
index f66890ae91adce2cef58b05d71b2aeeb00bfb0d2..4b06416c2864c313eaf36f50ab0feaed07f18b50 100644 (file)
@@ -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,25 @@ void FormRef::build()
        bc().addReadOnly(dialog_->button_update);
        bc().addReadOnly(dialog_->input_name);
        bc().addReadOnly(dialog_->input_ref);
+       
+       //set up the tooltip mechanism
+       string str = _("Show the labels of another opened document. Useful if you are working with multipart documents, where you might want to refer to another doc.");
+       tooltips().init(dialog_->choice_buffer, str);
+
+       str = _("Choose a label to refer to.");
+       tooltips().init(dialog_->browser_refs, str);
+
+       str = _("Type in a label name. We recommend that you use the browser instead.");
+       tooltips().init(dialog_->input_ref, str);
+
+       str = _("Choose the reference style.");
+       tooltips().init(dialog_->choice_type, str);
+
+       str = _("Sort labels in alphabetical order.");
+       tooltips().init(dialog_->check_sort, str);
+
+       str = _("Refresh the list of labels.");
+       tooltips().init(dialog_->button_update, str);
 }