]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
* src/inset/InsetNomencl.cpp:
[lyx.git] / src / insets / InsetNomencl.cpp
index dc5e2489e37c898b94b8b0acf4a88a402b1cd37b..b3a3cb30ec0987e3851b66fad2c17d319c502ba8 100644 (file)
 
 #include "support/docstream.h"
 #include "support/gettext.h"
+#include "support/lstrings.h"
 
 using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
 
 
 /////////////////////////////////////////////////////////////////////
 //
-// InsetPrintNomencl
+// InsetNomencl
 //
 /////////////////////////////////////////////////////////////////////
 
@@ -66,6 +68,18 @@ docstring InsetNomencl::screenLabel() const
 }
 
 
+docstring InsetNomencl::toolTip(BufferView const & /*bv*/, int /*x*/, int /*y*/) const
+{
+       docstring tip = _("Nomenclature Symbol: ") + getParam("symbol") + "\n";
+       tip += _("Description: ") + "\t"
+               + subst(getParam("description"), from_ascii("\\\\"), from_ascii("\n\t"));
+       if (!getParam("prefix").empty())
+               tip += "\n" + _("Sorting: ") + getParam("prefix");
+       return tip;
+}
+
+
+
 int InsetNomencl::docbook(odocstream & os, OutputParams const &) const
 {
        os << "<glossterm linkend=\"" << nomenclature_entry_id << "\">"