From ab94aa1107236eef129049c5b24cdf7e567a9be0 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 2 Feb 2013 11:42:12 +0000 Subject: [PATCH] fine-tuning --- Fltk/inputRange.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Fltk/inputRange.h b/Fltk/inputRange.h index 86520dbe85..f89fad6d42 100644 --- a/Fltk/inputRange.h +++ b/Fltk/inputRange.h @@ -67,18 +67,22 @@ class inputRange : public Fl_Group { tmp << _min; _input->minimum(_min); } - tmp << ":"; + tmp << " : "; if(_max != _max_number){ tmp << _max; _input->maximum(_max); } if(_step == 0.) _step = 1.; - if(_step != 1.) tmp << ":" << _step; + if(_step != 1.) tmp << " : " << _step; _input->step(_fixStep(_step)); _choices.clear(); } _range = tmp.str(); - _range_tooltip = std::string("Range: ") + _range; + if(_range_butt->active()) + _range_tooltip = "Edit range ["; + else + _range_tooltip = "Range ["; + _range_tooltip += _range + "]"; _range_butt->tooltip(_range_tooltip.c_str()); } void _string2values() @@ -139,7 +143,7 @@ class inputRange : public Fl_Group { } void _edit_range() { - const char *ret = fl_input("Edit range ([min:max], [min:max:step], or " + const char *ret = fl_input("Edit range ([min : max], [min : max : step], or " "[val1, val2, ...]):", _range.c_str()); if(ret){ _range = ret; -- GitLab