From 79b0a031a99e1879de7089d781014a412dc8071b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 2 Dec 2003 22:57:41 +0000 Subject: [PATCH] better name for MacOS system menu bar option --- Common/Context.h | 2 +- Common/DefaultOptions.h | 4 ++-- Common/Options.cpp | 8 ++++---- Common/Options.h | 2 +- Fltk/GUI.cpp | 6 +++--- configure | 10 +++++----- configure.in | 12 ++++++------ doc/texinfo/opt_general.texi | 16 ++++++++-------- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Common/Context.h b/Common/Context.h index cdcab1d975..fe5a1ca3ce 100644 --- a/Common/Context.h +++ b/Common/Context.h @@ -75,7 +75,7 @@ public : int vis_position[2]; // position of the visibility window on the screen int stat_position[2]; // position of the statistics window on the screen int center_windows; // center popup windows on the menu window - int apple_menu_bar; // Apple-style menubar? + int system_menu_bar; // use the system menu bar on MacOS? int default_plugins; // do we load default plugins on startup? diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index 9ab60e14b8..5689f273cc 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -346,8 +346,8 @@ StringXString PrintOptions_String[] = { StringXNumber GeneralOptions_Number[] = { { F|O, "AlphaBlending" , opt_general_alpha_blending , 1. , "Enable alpha blending (transparency) in post-processing views" }, - { F|S, "AppleMenuBar" , opt_general_apple_menu_bar , 0. , - "Use Apple-style menu bar on Mac OS X?" }, + { F|S, "SystemMenuBar" , opt_general_system_menu_bar , 1. , + "Use the system menu bar on Mac OS X (if possible)?" }, { F|O, "Axes" , opt_general_axes , 1. , "Display the axes linked to the model" }, diff --git a/Common/Options.cpp b/Common/Options.cpp index ddf9a78b4b..f26b5b474a 100644 --- a/Common/Options.cpp +++ b/Common/Options.cpp @@ -1,4 +1,4 @@ -// $Id: Options.cpp,v 1.123 2003-12-01 21:51:19 geuzaine Exp $ +// $Id: Options.cpp,v 1.124 2003-12-02 22:57:41 geuzaine Exp $ // // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // @@ -1739,11 +1739,11 @@ double opt_general_menu_position1(OPT_ARGS_NUM) return CTX.position[1]; } -double opt_general_apple_menu_bar(OPT_ARGS_NUM) +double opt_general_system_menu_bar(OPT_ARGS_NUM) { if(action & GMSH_SET) - CTX.apple_menu_bar = (int)val; - return CTX.apple_menu_bar; + CTX.system_menu_bar = (int)val; + return CTX.system_menu_bar; } double opt_general_message_position0(OPT_ARGS_NUM) diff --git a/Common/Options.h b/Common/Options.h index df651e3658..1b9caae0fa 100644 --- a/Common/Options.h +++ b/Common/Options.h @@ -195,7 +195,7 @@ double opt_general_viewport2(OPT_ARGS_NUM); double opt_general_viewport3(OPT_ARGS_NUM); double opt_general_menu_position0(OPT_ARGS_NUM); double opt_general_menu_position1(OPT_ARGS_NUM); -double opt_general_apple_menu_bar(OPT_ARGS_NUM); +double opt_general_system_menu_bar(OPT_ARGS_NUM); double opt_general_message_position0(OPT_ARGS_NUM); double opt_general_message_position1(OPT_ARGS_NUM); double opt_general_message_size0(OPT_ARGS_NUM); diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp index 221937b6aa..f17d7fff2d 100644 --- a/Fltk/GUI.cpp +++ b/Fltk/GUI.cpp @@ -1,4 +1,4 @@ -// $Id: GUI.cpp,v 1.258 2003-12-01 22:02:58 geuzaine Exp $ +// $Id: GUI.cpp,v 1.259 2003-12-02 22:57:41 geuzaine Exp $ // // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // @@ -788,7 +788,7 @@ void GUI::create_menu_window(int argc, char **argv) // this is the initial height: no dynamic button is shown! #if defined(__APPLE__) && defined(HAVE_FL_SYS_MENU_BAR) - if(CTX.apple_menu_bar){ + if(CTX.system_menu_bar){ MH = BH + 6; // the menu bar is not in the application! } else{ @@ -803,7 +803,7 @@ void GUI::create_menu_window(int argc, char **argv) m_window->callback(file_quit_cb); #if defined(__APPLE__) && defined(HAVE_FL_SYS_MENU_BAR) - if(CTX.apple_menu_bar){ + if(CTX.system_menu_bar){ m_sys_menu_bar = new Fl_Sys_Menu_Bar(0, 0, width, BH); m_sys_menu_bar->menu(m_menubar_table); m_sys_menu_bar->global(); diff --git a/configure b/configure index d163ada776..70941b43be 100755 --- a/configure +++ b/configure @@ -849,7 +849,7 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-gsl use GSL as numerical toolkit (default=yes) --enable-gui build the graphical user interface (default=yes) - --enable-macmenu enable Apple-style menu bar on Mac OS X (default=no) + --enable-system-menubar use the system menu bar on MacOS X (default=no) --enable-parallel enable parallel version (default=no) --enable-triangle compile Triangle if available (default=yes) --enable-jpeg enable JPEG support (default=yes) @@ -1339,9 +1339,9 @@ if test "${enable_gui+set}" = set; then enableval="$enable_gui" fi; -# Check whether --enable-macmenu or --disable-macmenu was given. -if test "${enable_macmenu+set}" = set; then - enableval="$enable_macmenu" +# Check whether --enable-system-menubar or --disable-system-menubar was given. +if test "${enable_system_menubar+set}" = set; then + enableval="$enable_system_menubar" fi; # Check whether --enable-parallel or --disable-parallel was given. @@ -3712,7 +3712,7 @@ if test "x$enable_parallel" = "xyes"; then FLAGS="-DPARALLEL ${FLAGS}" fi -if test "x$enable_macmenu" = "xyes"; then +if test "x$enable_system_menubar" = "xyes"; then FLAGS="-DHAVE_FL_SYS_MENU_BAR ${FLAGS}" fi diff --git a/configure.in b/configure.in index c7a6d07102..1c39be1bd9 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.47 2003-11-23 07:41:26 geuzaine Exp $ +dnl $Id: configure.in,v 1.48 2003-12-02 22:57:41 geuzaine Exp $ dnl dnl Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle dnl @@ -57,9 +57,9 @@ AC_ARG_ENABLE(gsl, AC_ARG_ENABLE(gui, AC_HELP_STRING([--enable-gui], [build the graphical user interface (default=yes)])) -AC_ARG_ENABLE(macmenu, - AC_HELP_STRING([--enable-macmenu], - [enable Apple-style menu bar on Mac OS X (default=no)])) +AC_ARG_ENABLE(system-menubar, + AC_HELP_STRING([--enable-system-menubar], + [use the system menu bar on MacOS X (default=no)])) AC_ARG_ENABLE(parallel, AC_HELP_STRING([--enable-parallel], [enable parallel version (default=no)])) @@ -291,8 +291,8 @@ if test "x$enable_parallel" = "xyes"; then FLAGS="-DPARALLEL ${FLAGS}" fi -dnl Check if we should enable the Apple-style menu bar -if test "x$enable_macmenu" = "xyes"; then +dnl Check if we should enable the system menu bar on MacOS X +if test "x$enable_system_menubar" = "xyes"; then FLAGS="-DHAVE_FL_SYS_MENU_BAR ${FLAGS}" fi diff --git a/doc/texinfo/opt_general.texi b/doc/texinfo/opt_general.texi index 31ee7f7f47..1bd41f5741 100644 --- a/doc/texinfo/opt_general.texi +++ b/doc/texinfo/opt_general.texi @@ -44,9 +44,9 @@ Enable alpha blending (transparency) in post-processing views@* Default value: @code{1}@* Saved in: @code{General.OptionsFileName} -@item General.AppleMenuBar -Use Apple-style menu bar on Mac OS X?@* -Default value: @code{0}@* +@item General.SystemMenuBar +Use the system menu bar on Mac OS X (if possible)?@* +Default value: @code{1}@* Saved in: @code{General.SessionFileName} @item General.Axes @@ -599,6 +599,11 @@ Level of information printed during processing (0=no information)@* Default value: @code{2}@* Saved in: @code{General.OptionsFileName} +@item General.VisibilityMode +Default mode for the visibility browser (0=Geometry+Mesh, 1=Geometry, 2=Mesh)@* +Default value: @code{0}@* +Saved in: @code{General.SessionFileName} + @item General.VisibilityPositionX Horizontal position (in pixels) of the upper left corner of the visibility window@* Default value: @code{650}@* @@ -609,11 +614,6 @@ Vertical position (in pixels) of the upper left corner of the visibility window@ Default value: @code{150}@* Saved in: @code{General.SessionFileName} -@item General.VisibilityMode -Default mode for the visibility browser (0=Geometry+Mesh, 1=Geometry, 2=Mesh)@* -Default value: @code{0}@* -Saved in: @code{General.SessionFileName} - @item General.ZoomFactor `Speed' of the middle mouse button zoom@* Default value: @code{1.1}@* -- GitLab