diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index b90f60319baf914a9ec2c7a269d6b74976045316..07ee4658cfd1f70d86642aa2a8771dc886cd3a92 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -167,7 +167,7 @@ StringXNumber GeneralOptions_Number[] = { "Use trackball rotation mode" }, { F|O, "ZoomFactor" , opt_general_zoom_factor , 1.1 , "'Speed' of the middle mouse button zoom" }, - { F|O, "DefaultPlugins" , opt_general_default_plugins , 1. , + { F|O, "DefaultPlugins" , opt_general_default_plugins , 0. , "Load default plugins on startup" }, { F, "Clip0" , opt_general_clip0 , 0. , "Enable clip plane 0" }, diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp index d7d57a97e2f7d071b155f5962d84af08b50c355f..33bc09b9a9ecd3f50030805a7296b132bca6064c 100644 --- a/Fltk/GUI.cpp +++ b/Fltk/GUI.cpp @@ -1,4 +1,4 @@ -// $Id: GUI.cpp,v 1.95 2001-07-31 09:51:36 geuzaine Exp $ +// $Id: GUI.cpp,v 1.96 2001-07-31 09:56:52 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. @@ -1689,8 +1689,7 @@ void GUI::set_statistics(){ the plugin on the top of the window */ -PluginDialogBox * GUI::create_plugin_window(GMSH_Plugin *p, int iView) -{ +PluginDialogBox * GUI::create_plugin_window(GMSH_Plugin *p, int iView){ char buffer[1024],namep[1024],copyright[256],author[256],help[1024]; PluginDialogBox *pdb = new PluginDialogBox; @@ -1729,6 +1728,11 @@ PluginDialogBox * GUI::create_plugin_window(GMSH_Plugin *p, int iView) ok->callback(view_plugin_cb, (void*)pair); cancel->labelsize(CTX.fontsize); cancel->callback(cancel_cb, (void*)pl_window); + + if(CTX.center_windows) + pl_window->position(m_window->x()+m_window->w()/2-width/2, + m_window->y()+9*BH-height/2); + pl_window->end(); return pdb;