Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
a2da5345
Commit
a2da5345
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
remove separator from file dialogs (only used on Macs anyay) - the behaviour changes
inconsistently depending on the fltk version
parent
2f0dec31
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/graphicWindow.cpp
+2
-1
2 additions, 1 deletion
Fltk/graphicWindow.cpp
Fltk/menuWindow.cpp
+0
-20
0 additions, 20 deletions
Fltk/menuWindow.cpp
with
2 additions
and
21 deletions
Fltk/graphicWindow.cpp
+
2
−
1
View file @
a2da5345
...
...
@@ -203,7 +203,8 @@ void status_xyz1p_cb(Fl_Widget *w, void *data)
}
else
if
(
!
strcmp
(
str
,
"reset"
)){
if
(
CTX
::
instance
()
->
camera
)
{
ctx
->
camera
.
init
();}
ctx
->
camera
.
init
();
}
else
{
// reset everything
ctx
->
t
[
0
]
=
ctx
->
t
[
1
]
=
ctx
->
t
[
2
]
=
0.
;
...
...
This diff is collapsed.
Click to expand it.
Fltk/menuWindow.cpp
+
0
−
20
View file @
a2da5345
...
...
@@ -82,29 +82,16 @@ static void file_new_cb(Fl_Widget *w, void *data)
#if defined(HAVE_NATIVE_FILE_CHOOSER)
# define TT "\t"
# define NN "\n"
# if defined(__APPLE__)
# define SEPARATOR_IN " " TT "*" NN
# define SEPARATOR_OUT {" " TT "*.*", _save_auto},
# else
# define SEPARATOR_IN
# define SEPARATOR_OUT
# endif
#else
# define TT " ("
# define NN ")\t"
# define SEPARATOR_IN
# define SEPARATOR_OUT
#endif
static
const
char
*
input_formats
=
"All Files"
TT
"*"
NN
SEPARATOR_IN
"Gmsh Geometry"
TT
"*.geo"
NN
"Gmsh Mesh"
TT
"*.msh"
NN
"Gmsh Post-processing View"
TT
"*.pos"
NN
#if defined(HAVE_ACIS) || defined(HAVE_OCC)
SEPARATOR_IN
#endif
#if defined(HAVE_ACIS)
"ACIS Model"
TT
"*.sat"
NN
#endif
...
...
@@ -113,7 +100,6 @@ static const char *input_formats =
"IGES Model"
TT
"*.{igs,iges}"
NN
"STEP Model"
TT
"*.{stp,step}"
NN
#endif
SEPARATOR_IN
"Diffpack 3D Mesh"
TT
"*.diff"
NN
"I-deas Universal Mesh"
TT
"*.unv"
NN
#if defined(HAVE_MED)
...
...
@@ -126,7 +112,6 @@ static const char *input_formats =
"VTK Mesh"
TT
"*.vtk"
NN
"VRML Surface Mesh"
TT
"*.{wrl,vrml}"
NN
"PLY2 Surface Mesh"
TT
"*.{ply2}"
NN
SEPARATOR_IN
"BMP"
TT
"*.bmp"
NN
#if defined(HAVE_LIBJPEG)
"JPEG"
TT
"*.{jpg,jpeg}"
NN
...
...
@@ -341,12 +326,10 @@ static void file_save_as_cb(Fl_Widget *w, void *data)
{
static
patXfunc
formats
[]
=
{
{
"Guess From Extension"
TT
"*.*"
,
_save_auto
},
SEPARATOR_OUT
{
"Gmsh Mesh"
TT
"*.msh"
,
_save_msh
},
{
"Gmsh Mesh Statistics"
TT
"*.pos"
,
_save_pos
},
{
"Gmsh Options"
TT
"*.opt"
,
_save_options
},
{
"Gmsh Unrolled Geometry"
TT
"*.geo"
,
_save_geo
},
SEPARATOR_OUT
{
"Abaqus INP Mesh"
TT
"*.inp"
,
_save_inp
},
#if defined(HAVE_LIBCGNS)
{
"CGNS (Experimental)"
TT
"*.cgns"
,
_save_cgns
},
...
...
@@ -365,7 +348,6 @@ static void file_save_as_cb(Fl_Widget *w, void *data)
{
"VRML Surface Mesh"
TT
"*.wrl"
,
_save_vrml
},
{
"VTK Mesh"
TT
"*.vtk"
,
_save_vtk
},
{
"PLY2 Mesh"
TT
"*.ply2"
,
_save_ply2
},
SEPARATOR_OUT
{
"Encapsulated PostScript"
TT
"*.eps"
,
_save_eps
},
{
"GIF"
TT
"*.gif"
,
_save_gif
},
#if defined(HAVE_LIBJPEG)
...
...
@@ -416,8 +398,6 @@ static void file_save_as_cb(Fl_Widget *w, void *data)
#undef TT
#undef NN
#undef SEPARATOR_IN
#undef SEPARATOR_OUT
static
void
file_options_save_cb
(
Fl_Widget
*
w
,
void
*
data
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment