Skip to content
Snippets Groups Projects
Select Git revision
  • 4a40818b94215eb62c10c6ef97c41333dccd162f
  • master default protected
  • hierarchical-basis
  • alphashapes
  • bl
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • convert_fdivs
  • tmp_jcjc24
  • fixedMeshIF
  • save_edges
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

gmsh.py

Blame
  • GUI.cpp 172.39 KiB
    // $Id: GUI.cpp,v 1.610 2007-05-04 16:22:37 geuzaine Exp $
    //
    // Copyright (C) 1997-2007 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>.
    
    #include "Gmsh.h"
    #include "GmshUI.h"
    #include "GmshDefines.h"
    #include "Numeric.h"
    #include "Context.h"
    #include "Options.h"
    #include "Draw.h"
    #include "GUI.h"
    #include "Callbacks.h"
    #include "Bitmaps.h"
    #include "Win32Icon.h"
    #include "OpenFile.h"
    #include "CommandLine.h"
    #include "Generator.h"
    #include "Solvers.h"
    #include "PluginManager.h"
    #include "Shortcut_Window.h"
    
    #define NB_BUTT_SCROLL 25
    #define NB_HISTORY_MAX 1000
    
    #define IW (10*fontsize)  // input field width
    #define BB (7*fontsize)   // width of a button with internal label
    #define BH (2*fontsize+1) // button height
    #define WB (7)            // window border
    
    extern Context_T CTX;
    
    // Definition of the static menus (we cannot use the 'g', 'm' 's' and
    // 'p' mnemonics since they are already defined as global shortcuts)
    
    Fl_Menu_Item m_menubar_table[] = {
      {"&File", 0, 0, 0, FL_SUBMENU},
        {"&New...",     FL_CTRL+'n', (Fl_Callback *)file_new_cb, 0},
        {"&Open...",    FL_CTRL+'o', (Fl_Callback *)file_open_cb, 0},
        {"M&erge...",   FL_CTRL+FL_SHIFT+'o', (Fl_Callback *)file_merge_cb, 0, FL_MENU_DIVIDER},
        {"&Rename...",  FL_CTRL+'r', (Fl_Callback *)file_rename_cb, 0},
        {"Save &As...", FL_CTRL+'s', (Fl_Callback *)file_save_as_cb, 0},
        {"Sa&ve Mesh",  FL_CTRL+FL_SHIFT+'s', (Fl_Callback *)mesh_save_cb, 0, FL_MENU_DIVIDER},
        {"&Quit",       FL_CTRL+'q', (Fl_Callback *)file_quit_cb, 0},
        {0},
      {"&Tools", 0, 0, 0, FL_SUBMENU},
        {"&Options...",      FL_CTRL+FL_SHIFT+'n', (Fl_Callback *)options_cb, 0},
        {"Pl&ugins...",      FL_CTRL+FL_SHIFT+'u', (Fl_Callback *)view_plugin_cb, (void*)(-1)},
        {"&Visibility",      FL_CTRL+FL_SHIFT+'v', (Fl_Callback *)visibility_cb, 0},
        {"&Clipping Planes", FL_CTRL+FL_SHIFT+'c', (Fl_Callback *)clip_cb, 0},
        {"&Manipulator",     FL_CTRL+FL_SHIFT+'m', (Fl_Callback *)manip_cb, 0, FL_MENU_DIVIDER},
        {"S&tatistics",      FL_CTRL+'i', (Fl_Callback *)statistics_cb, 0},
        {"M&essage Console", FL_CTRL+'l', (Fl_Callback *)message_cb, 0},