Skip to content
Snippets Groups Projects
Select Git revision
  • c2e4ffc4f71622208437bb05f9d87b054d004cd5
  • master default
  • library-names
  • fix_script_header
  • fix_libdir
  • fix_cmake_hdf5
  • partition
  • cgnsUnstructured
  • partitioning
  • HighOrderBLCurving
  • gmsh_3_0_5
  • 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
30 results

Callbacks.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    FlGui.cpp 36.07 KiB
    // Gmsh - Copyright (C) 1997-2014 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@geuz.org>.
    
    #include "GmshConfig.h"
    #if !defined(HAVE_NO_STDINT_H)
    #include <stdint.h>
    #elif defined(HAVE_NO_INTPTR_T)
    typedef unsigned long intptr_t;
    #endif
    #include <sstream>
    #include <string.h>
    #include <FL/Fl.H>
    #include <FL/Fl_Tooltip.H>
    #include <FL/Fl_Shared_Image.H>
    #include <FL/Fl_File_Icon.H>
    #include <FL/fl_draw.H>
    #include "FlGui.h"
    #include "drawContextFltk.h"
    #include "drawContextFltkCairo.h"
    #include "graphicWindow.h"
    #include "optionWindow.h"
    #include "fieldWindow.h"
    #include "pluginWindow.h"
    #include "statisticsWindow.h"
    #include "visibilityWindow.h"
    #include "highOrderToolsWindow.h"
    #include "clippingWindow.h"
    #include "manipWindow.h"
    #include "contextWindow.h"
    #include "onelabGroup.h"
    #include "helpWindow.h"
    #include "colorbarWindow.h"
    #include "fileDialogs.h"
    #include "GmshDefines.h"
    #include "GmshMessage.h"
    #include "GModel.h"
    #include "MElement.h"
    #include "PView.h"
    #include "Field.h"
    #include "Plugin.h"
    #include "PluginManager.h"
    #include "OpenFile.h"
    #include "WinIcon.h"
    #include "Options.h"
    #include "CommandLine.h"
    #include "Context.h"
    #include "StringUtils.h"
    #include "Generator.h"
    #include "gl2ps.h"
    #include "gmshPopplerWrapper.h"
    #include "PixelBuffer.h"
    #if defined(HAVE_3M)
    #include "3M.h"
    #endif
    
    // check (now!) if there are any pending events, and process them
    void FlGui::check(){ Fl::check(); }
    
    // wait (possibly indefinitely) for any events, then process them
    void FlGui::wait(){ Fl::wait(); }
    
    // wait (at most time seconds) for any events, then process them
    void FlGui::wait(double time){ Fl::wait(time); }
    
    static int globalShortcut(int event)
    {
      if(!FlGui::available()) return 0;
      return FlGui::instance()->testGlobalShortcuts(event);