Skip to content
Snippets Groups Projects
Commit 451fbe5a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

compile fix

parent 054cb7e4
Branches
Tags
No related merge requests found
......@@ -62,7 +62,7 @@ class GUI{
// return the single static instance of the GUI
static GUI *instance(int argc=0, char **argv=0);
// check if the GUI is available
static bool GUI::available(){ return (_instance != 0); }
static bool available(){ return (_instance != 0); }
// run the GUI until there's no window left
int run(){ return Fl::run(); }
// check (now!) if there are any pending events, and process them
......
......@@ -3,6 +3,7 @@
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#include <string.h>
#include <FL/fl_draw.H>
#include "GUI.h"
#include "graphicWindow.h"
......
......@@ -3,6 +3,7 @@
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#include <string.h>
#include <FL/Fl_Box.H>
#include <FL/Fl_Return_Button.H>
#include <FL/fl_ask.H>
......
......@@ -3,6 +3,7 @@
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#include <string.h>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Return_Button.H>
......@@ -13,7 +14,7 @@
#include "contextWindow.h"
#include "GmshDefines.h"
#include "GmshMessage.h"
#include "GModel.h"'
#include "GModel.h"
#include "MElement.h"
#include "Visibility.h"
#include "SelectBuffer.h"
......@@ -209,7 +210,7 @@ static void visibility_number_cb(Fl_Widget *w, void *data)
Draw();
}
static void _apply_visibility(char mode,
static void apply_visibility(char mode,
std::vector<GVertex*> &vertices,
std::vector<GEdge*> &edges,
std::vector<GFace*> &faces,
......@@ -378,7 +379,7 @@ static void visibility_interactive_cb(Fl_Widget *w, void *data)
char ib = SelectEntity(what, vertices, edges, faces, regions, elements);
if(ib == 'l') {
_apply_visibility(mode, vertices, edges, faces, regions, elements);
apply_visibility(mode, vertices, edges, faces, regions, elements);
// store for possible undo later
vertices_old = vertices;
edges_old = edges;
......@@ -387,7 +388,7 @@ static void visibility_interactive_cb(Fl_Widget *w, void *data)
elements_old = elements;
}
if(ib == 'u' && !mode){ // undo only in hide mode
_apply_visibility(2, vertices_old, edges_old, faces_old,
apply_visibility(2, vertices_old, edges_old, faces_old,
regions_old, elements_old);
}
if(ib == 'q'){
......
......@@ -3,6 +3,7 @@
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#include <string.h>
#include <FL/gl.h>
#include "drawContext.h"
#include "Draw.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment