From 8f224e97d8fc1e3563ab39adf8078761b3e32831 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 6 Apr 2001 12:29:32 +0000
Subject: [PATCH] *** empty log message ***

---
 Common/Context.h        | 2 ++
 Common/DefaultOptions.h | 1 +
 Common/Options.cpp      | 6 +++++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Common/Context.h b/Common/Context.h
index b963dcc2e2..f2966b1e6e 100644
--- a/Common/Context.h
+++ b/Common/Context.h
@@ -45,6 +45,8 @@ public :
   int msg_size[2];            // size of the message window on the screen
   int center_windows;         // center popup windows on the menu window
 
+  int default_plugins;        // do we load default plugins on startup?
+
   int batch;                  // 0=full gfx; -1=just parse; 1,2,3=batch 1D, 2D, 3D mesh 
   int verbosity;              // 0=silent -> 3=debug 
   int expose;                 // 1 if everything is ready to expose and draw 
diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h
index d16f915594..cbc3fc936d 100644
--- a/Common/DefaultOptions.h
+++ b/Common/DefaultOptions.h
@@ -98,6 +98,7 @@ StringXNumber GeneralOptions_Number[] = {
   { F|O, "AlphaBlending" , opt_general_alpha_blending , 0. },
   { F|O, "Trackball" , opt_general_trackball , 1. },
   { F|O, "ZoomFactor" , opt_general_zoom_factor , 1.1 }, 
+  { F|O, "DefaultPlugins" , opt_general_default_plugins , 1. }, 
   { F, "Clip0" , opt_general_clip0 , 0. },
   { F, "Clip0A" , opt_general_clip0a , 0.0 }, 
   { F, "Clip0B" , opt_general_clip0b , 0.0 }, 
diff --git a/Common/Options.cpp b/Common/Options.cpp
index 1ba760990f..14dc9eaf6a 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -1,4 +1,4 @@
-// $Id: Options.cpp,v 1.6 2001-03-18 10:40:54 geuzaine Exp $
+// $Id: Options.cpp,v 1.7 2001-04-06 12:29:32 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "GmshUI.h"
@@ -733,6 +733,10 @@ double opt_general_zoom_factor(OPT_ARGS_NUM){
   if(action & GMSH_SET) CTX.zoom_factor = val;
   return CTX.zoom_factor;
 }
+double opt_general_default_plugins(OPT_ARGS_NUM){
+  if(action & GMSH_SET) CTX.default_plugins = val;
+  return CTX.default_plugins;
+}
 double opt_general_clip0(OPT_ARGS_NUM){
   if(action & GMSH_SET) CTX.clip[0] = (int)val;
   return CTX.clip[0];
-- 
GitLab