From d69edb28839b15dfa09037c5b3de1854cf75af2a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 12 Aug 2001 14:23:36 +0000 Subject: [PATCH] alt+h --- Fltk/Callbacks.cpp | 4 ++-- Fltk/GUI.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp index 86250f817e..6c7ea0e584 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 ec1e41d034..9f13c26af9 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; } -- GitLab