diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp index 86250f817ed3c7f588d7444f83d4ed0de36f50ee..6c7ea0e58403001d3959da01cc552649f1f57752 100644 --- a/Fltk/Callbacks.cpp +++ b/Fltk/Callbacks.cpp @@ -1,4 +1,4 @@ -// $Id: Callbacks.cpp,v 1.76 2001-08-11 23:28:31 geuzaine Exp $ +// $Id: Callbacks.cpp,v 1.77 2001-08-12 14:23:36 geuzaine Exp $ #include <sys/types.h> #include <signal.h> @@ -519,7 +519,7 @@ void help_short_cb(CALLBACK_ARGS){ Msg(DIRECT, " Shift+d decrease animation delay"); Msg(DIRECT, " Ctrl+Shift+d increase animation delay"); Msg(DIRECT, " Alt+f toggle redraw mode (fast/full)"); - Msg(DIRECT, " Alt+h toggle visibility for all post-processing views"); + Msg(DIRECT, " Alt+h hide/show all post-processing views"); Msg(DIRECT, " Alt+l hide/show geometry lines"); Msg(DIRECT, " Alt+Shift+l hide/show mesh lines"); Msg(DIRECT, " Alt+m toggle visibility of all mesh entities"); diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp index ec1e41d034feed2bd977a1539d57c65703a64b7e..9f13c26af91a59847e60dc936cdc0b638f24b546 100644 --- a/Fltk/GUI.cpp +++ b/Fltk/GUI.cpp @@ -1,4 +1,4 @@ -// $Id: GUI.cpp,v 1.106 2001-08-11 23:28:31 geuzaine Exp $ +// $Id: GUI.cpp,v 1.107 2001-08-12 14:23:36 geuzaine Exp $ // To make the interface as visually consistent as possible, please: // - use the BH, BW, WB, IW values for button heights/widths, window borders, etc. @@ -21,6 +21,7 @@ #include "Callbacks.h" #include "Bitmaps.h" #include "Icon.h" +#include "OpenFile.h" #include "GetOptions.h" #define WINDOW_BOX FL_FLAT_BOX @@ -450,9 +451,11 @@ int GUI::global_shortcuts(int event){ return 1; } else if(Fl::test_shortcut(FL_ALT+'h')){ + static int show = 0; for(i=0 ; i<List_Nbr(Post_ViewList) ; i++) - opt_view_visible(i, GMSH_SET|GMSH_GUI, !opt_view_visible(i, GMSH_GET, 0)); + opt_view_visible(i, GMSH_SET|GMSH_GUI, show); redraw_opengl(); + show = !show; return 1; }