Skip to content
Snippets Groups Projects
Select Git revision
  • 5fe00cd25fdf0002780c841f9aa461d3ab3860bc
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

Options.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    • Christophe Geuzaine's avatar
      5fe00cd2
      · 5fe00cd2
      Christophe Geuzaine authored
      - better computation of bounds for discrete entities
      - added small widget for light position selection
      - infrastructure for Fourier models
      5fe00cd2
      History
      Christophe Geuzaine authored
      - better computation of bounds for discrete entities
      - added small widget for light position selection
      - infrastructure for Fourier models
    GUI.cpp 102.94 KiB
    // $Id: GUI.cpp,v 1.179 2002-05-23 17:25:09 geuzaine Exp $
    //
    // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
    //
    // This program is free software; you can redistribute it and/or modify
    // it under the terms of the GNU General Public License as published by
    // the Free Software Foundation; either version 2 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU General Public License for more details.
    //
    // You should have received a copy of the GNU General Public License
    // along with this program; if not, write to the Free Software
    // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    // USA.
    // 
    // Please report all bugs and problems to "gmsh@geuz.org".
    
    // To make the interface as visually consistent as possible, please:
    // - use the IW, BB, BH, BW and WB values
    // - examine what's already done before adding something new...
    
    #include "PluginManager.h"
    #include "Plugin.h"
    
    #include "Gmsh.h"
    #include "GmshUI.h"
    #include "Numeric.h"
    #include "GmshVersion.h"
    #include "Context.h"
    #include "Options.h"
    #include "Geo.h"
    #include "Mesh.h"
    #include "Draw.h"
    #include "GUI.h"
    #include "Callbacks.h"
    #include "Bitmaps.h"
    #include "Icon.h"
    #include "OpenFile.h"
    #include "GetOptions.h"
    
    #if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 0)
    #define WINDOW_BOX FL_FLAT_BOX
    #define TOGGLE_BOX FL_DOWN_BOX
    #define TOGGLE_COLOR FL_YELLOW
    #define RADIO_BOX  FL_DIAMOND_DOWN_BOX
    #define RADIO_COLOR FL_YELLOW
    #else
    #define WINDOW_BOX FL_FLAT_BOX
    #define TOGGLE_BOX FL_DOWN_BOX
    #define TOGGLE_COLOR FL_BLACK
    #define RADIO_BOX  FL_ROUND_DOWN_BOX
    #define RADIO_COLOR FL_BLACK
    #endif
    
    #define IW  (10*CTX.fontsize) // input field width
    #define BB  (5*CTX.fontsize-2) // width of a button with internal label
    #define BH  (2*CTX.fontsize+1) // button height
    #define WB  (5) // window border
    
    extern Context_T  CTX;
    
    // Definition of the static menus
    
    // Don't define shortcuts for FL_CTRL+'n', FL_CTRL+'p', FL_CTRL+'f', FL_CTRL+'b'
    // these are used by fltk for widget navigation (in the same way as the 4 arrow keys)