# HG changeset patch # User Shai Ayal # Date 1279643477 -10800 # Node ID 85cbd239fce2d856cee13b8797d102f1d112d818 # Parent b988a45b60052f3f4c07ddf424b359093f1004a7 try a better status bar for fltk backend diff -r b988a45b6005 -r 85cbd239fce2 src/ChangeLog --- a/src/ChangeLog Tue Jul 20 07:01:00 2010 -0700 +++ b/src/ChangeLog Tue Jul 20 19:31:17 2010 +0300 @@ -1,3 +1,8 @@ +2010-07-20 Shai Ayal + + * DLD-FUNCTIONS/fltk_backend.cc (plot_window::plot_window): + Added a bottom Fl_Box (copied from gmsh) and tooltips + 2010-07-20 Rik * DLD-FUNCTIONS/typecast.cc (typecast): Combine two @seealso macro diff -r b988a45b6005 -r 85cbd239fce2 src/DLD-FUNCTIONS/fltk_backend.cc --- a/src/DLD-FUNCTIONS/fltk_backend.cc Tue Jul 20 07:01:00 2010 -0700 +++ b/src/DLD-FUNCTIONS/fltk_backend.cc Tue Jul 20 19:31:17 2010 +0300 @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -230,6 +231,13 @@ canvas = new OpenGL_fltk (0, 0, ww , hh - status_h, number ()); + bottom = new + Fl_Box (0, + hh - status_h, + ww, + status_h); + bottom->box(FL_FLAT_BOX); + autoscale = new Fl_Button (0, hh - status_h, @@ -237,6 +245,7 @@ status_h, "A"); autoscale->callback (button_callback, static_cast (this)); + autoscale->tooltip ("Autoscale"); togglegrid = new Fl_Button (status_h, @@ -245,6 +254,7 @@ status_h, "G"); togglegrid->callback (button_callback, static_cast (this)); + togglegrid->tooltip ("Toggle Grid"); panzoom = new Fl_Button (2 * status_h, @@ -253,6 +263,7 @@ status_h, "P"); panzoom->callback (button_callback, static_cast (this)); + panzoom->tooltip ("Mouse Pan/Zoom"); rotate = new Fl_Button (3 * status_h, @@ -261,7 +272,8 @@ status_h, "R"); rotate->callback (button_callback, static_cast (this)); - + rotate->tooltip ("Mouse Rotate"); + help = new Fl_Button (4 * status_h, hh - status_h, @@ -269,6 +281,7 @@ status_h, "?"); help->callback (button_callback, static_cast (this)); + help->tooltip ("Help"); status = new Fl_Output (5 * status_h, @@ -389,6 +402,7 @@ } OpenGL_fltk* canvas; + Fl_Box* bottom; Fl_Button* autoscale; Fl_Button* togglegrid; Fl_Button* panzoom;