From 2880a99626488e05e2741aab6dee0855d4cf29cd Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 22 Dec 2008 07:45:17 +0000 Subject: [PATCH] Implemented "tooltip " SVN revision: 2158 --- doc/config.html | 5 +++-- src/elogd.c | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/config.html b/doc/config.html index c4022d3d..44a5978c 100755 --- a/doc/config.html +++ b/doc/config.html @@ -1052,11 +1052,12 @@ incorporated in the next version. moves the mouse cursor over the attribute name in the entry form.
  • - Tooltip <attribute option> = <comment>
    + Tooltip <attribute> <attribute option> = <comment>
    Same as Tooltip <attribute>, but for option values of a MOptions attribute. Using this option, a different tooltip can be shown above each check box of an optional - value for an attribute. + value for an attribute. Please note that attributes or options with + spaces should not be enclosed with quotes.
  • Icon comment <icon> = <comment>
    diff --git a/src/elogd.c b/src/elogd.c index 83214560..44b42c3e 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10396,6 +10396,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL if (getcfg(lbs->name, str, comment, sizeof(comment))) sprintf(tooltip, " title=\"%s\"", comment); + sprintf(str, "Tooltip %s %s", attr_list[index], attr_options[index][i]); + tooltip[0] = 0; + if (getcfg(lbs->name, str, comment, sizeof(comment))) + sprintf(tooltip, " title=\"%s\"", comment); + sprintf(str, "%s_%d", ua, i); rsprintf("\n", tooltip);