Skip to content
Snippets Groups Projects
Select Git revision
  • 16c1958d22c1cf3659bf413e7505f003a33d554d
  • master default protected
  • albertpiwonski-master-patch-57409
  • quadspheres
  • fix_Tmatrix_code_epsr_background
  • albertpiwonski-master-patch-12427
  • cavity
  • c1
8 results

Integration_Lib.pro

Blame
  • Callbacks.cpp 143.03 KiB
    // $Id: Callbacks.cpp,v 1.579 2008-04-16 18:12:39 geuzaine Exp $
    //
    // Copyright (C) 1997-2008 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 <string.h>
    #include <signal.h>
    #include <time.h>
    #include <map>
    #include <string>
    #include <sstream>
    
    #include "GmshUI.h"
    #include "Message.h"
    #include "Malloc.h"
    #include "Tools.h"
    #include "GModel.h"
    #include "MElement.h"
    #include "GeoStringInterface.h"
    #include "findLinks.h"
    #include "Generator.h"
    #include "HighOrder.h"
    #include "Draw.h"
    #include "SelectBuffer.h"
    #include "PView.h"
    #include "CreateFile.h"
    #include "OpenFile.h"
    #include "CommandLine.h"
    #include "Context.h"
    #include "Options.h"
    #include "GUI.h"
    #include "GUI_Extras.h"
    #include "Callbacks.h"
    #include "Plugin.h"
    #include "PluginManager.h"
    #include "Visibility.h"
    #include "Numeric.h"
    #include "Solvers.h"
    #include "OS.h"
    #include "Field.h"
    #include "BackgroundMesh.h"
    
    extern Context_T CTX;
    extern GUI *WID;
    
    // Helper routines
    
    int SetGlobalShortcut(int event)
    {
      return WID->global_shortcuts(event);
    }
    
    int SelectContour(int type, int num, List_T * List)
    {