+2002-03-20 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * ui/default.ui: Change "What's this?" to "Tooltips".
+
2002-03-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* create_fonts_dir:
# HELP MENU
#
Menu "help"
- Item "What's this?|W" "toggle-tooltips"
+ Item "Tooltips|o" "toggle-tooltips"
Separator
Item "Introduction|I" "help-open Intro"
Item "Tutorial|T" "help-open Tutorial"
+2002-03-20 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * xforms_helpers.C (setCursorColor):
+ * Tooltips.C (set): remove XC_question_arrow code.
+
2002-03-19 André Pönitz <poenitz@gmx.net>
* FormParagraph.C: whitespace changes
* Tooltips.[Ch] (initTooltip): renamed init. In the 0.89 version, no
longer call fl_set_object_helper as this routine respects line breaks
only if the dialog is visible.
- (getTooltip): renamed get.
+ (getTooltip): renamed get.
(toggleTooltips): renamed set and made public,
* FormBase.C (show):
char const * const c_str = enabled_ ? it->second.c_str() : 0;
fl_set_object_helper(ob, c_str);
}
-
- FL_OBJECT * const ob = tooltipsMap.begin()->first;
-
- // The dialog is not visible
- if (!ob->form->window)
- return;
-
- // Set the cursor to a question mark or back to the default.
- int const cursor = enabled_ ? XC_question_arrow : FL_DEFAULT_CURSOR;
- fl_set_cursor(ob->form->window, cursor);
}
void Tooltips::set()
-{
- if (tooltipsMap.empty())
- // There are no objects with tooltips in this dialog, so
- // just go away. Don't change the cursor to a question mark.
- return;
-
- FL_OBJECT * const ob = tooltipsMap.begin()->first;
-
- // The dialog is not visible
- if (!ob->form->window)
- return;
-
- // Set the cursor to a question mark or back to the default.
- int const cursor = enabled_ ? XC_question_arrow : FL_DEFAULT_CURSOR;
- fl_set_cursor(ob->form->window, cursor);
-}
+{}
void Tooltips::init(FL_OBJECT * ob, string const & tip)
void setCursorColor(int color)
{
fl_set_cursor_color(FL_DEFAULT_CURSOR, color, FL_WHITE);
- fl_set_cursor_color(XC_question_arrow, color, FL_WHITE);
fl_set_cursor_color(XC_xterm, color, FL_WHITE);
fl_set_cursor_color(XC_watch, color, FL_WHITE);
fl_set_cursor_color(XC_sb_right_arrow, color, FL_WHITE);