From ba5d0f2b6b55aab22c6dba2f2ab56f25bf04f266 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 6 Jun 2001 09:39:49 +0000
Subject: [PATCH] *** empty log message ***

---
 Common/Options.cpp | 4 ++--
 Fltk/Callbacks.cpp | 3 ++-
 Fltk/GUI.cpp       | 8 +++++++-
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Common/Options.cpp b/Common/Options.cpp
index 669f9a5493..d9ece1b9d5 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -1,4 +1,4 @@
-// $Id: Options.cpp,v 1.26 2001-06-06 08:47:48 geuzaine Exp $
+// $Id: Options.cpp,v 1.27 2001-06-06 09:39:49 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "GmshUI.h"
@@ -1696,7 +1696,7 @@ double opt_view_visible(OPT_ARGS_NUM){
     v->Visible = (int)val;
   }
 #ifdef _FLTK
-  if(WID && (action & GMSH_GUI) && (num == WID->view_number))
+  if(WID && (action & GMSH_GUI))
     WID->m_toggle_butt[num]->value(v->Visible);
 #endif
   Msg(DEBUG1, "View %d", v->Num);
diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp
index 6b59df0a2e..ddf2b119d6 100644
--- a/Fltk/Callbacks.cpp
+++ b/Fltk/Callbacks.cpp
@@ -1,4 +1,4 @@
-// $Id: Callbacks.cpp,v 1.61 2001-05-31 05:43:11 geuzaine Exp $
+// $Id: Callbacks.cpp,v 1.62 2001-06-06 09:39:49 geuzaine Exp $
 
 #include <sys/types.h>
 #include <signal.h>
@@ -506,6 +506,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+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 1f03359b28..6d3281f99c 100644
--- a/Fltk/GUI.cpp
+++ b/Fltk/GUI.cpp
@@ -1,4 +1,4 @@
-// $Id: GUI.cpp,v 1.82 2001-05-28 07:33:06 geuzaine Exp $
+// $Id: GUI.cpp,v 1.83 2001-06-06 09:39:49 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.
@@ -446,6 +446,12 @@ int GUI::global_shortcuts(int event){
     redraw_opengl();
     return 1;
   }
+  else if(Fl::test_shortcut(FL_ALT+'h')){
+    for(i=0 ; i<List_Nbr(Post_ViewList) ; i++)
+      opt_view_visible(i, GMSH_SET|GMSH_GUI, !opt_view_visible(i, GMSH_GET, 0));
+    redraw_opengl();
+    return 1;
+  }
   
 
   return 0;
-- 
GitLab