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
df06a09c
Commit
df06a09c
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
tweak dlg size
parent
20510aec
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Fltk/fileDialogs.cpp
+36
-31
36 additions, 31 deletions
Fltk/fileDialogs.cpp
Fltk/menuWindow.cpp
+1
-1
1 addition, 1 deletion
Fltk/menuWindow.cpp
Post/adaptiveData.cpp
+1
-1
1 addition, 1 deletion
Post/adaptiveData.cpp
with
38 additions
and
33 deletions
Fltk/fileDialogs.cpp
+
36
−
31
View file @
df06a09c
...
@@ -618,31 +618,32 @@ int pos_dialog(const char *name)
...
@@ -618,31 +618,32 @@ int pos_dialog(const char *name)
static
_pos_dialog
*
dialog
=
NULL
;
static
_pos_dialog
*
dialog
=
NULL
;
int
_fontsize
=
GetFontSize
();
int
_fontsize
=
GetFontSize
();
int
BBB
=
BB
+
9
;
// labels too long
if
(
!
dialog
){
if
(
!
dialog
){
dialog
=
new
_pos_dialog
;
dialog
=
new
_pos_dialog
;
int
h
=
3
*
WB
+
8
*
BH
,
w
=
2
*
BB
+
3
*
WB
,
y
=
WB
;
int
h
=
3
*
WB
+
8
*
BH
,
w
=
2
*
BB
B
+
3
*
WB
,
y
=
WB
;
// not a "dialogWindow" since it is modal
// not a "dialogWindow" since it is modal
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"POS Options"
);
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"POS Options"
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
b
[
0
]
=
new
Fl_Check_Button
dialog
->
b
[
0
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
dialog
->
b
[
1
]
=
new
Fl_Check_Button
dialog
->
b
[
1
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Print elementary tags"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Print elementary tags"
);
y
+=
BH
;
dialog
->
b
[
2
]
=
new
Fl_Check_Button
dialog
->
b
[
2
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Print element numbers"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Print element numbers"
);
y
+=
BH
;
dialog
->
b
[
3
]
=
new
Fl_Check_Button
dialog
->
b
[
3
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Print Gamma quality measure"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Print Gamma quality measure"
);
y
+=
BH
;
dialog
->
b
[
4
]
=
new
Fl_Check_Button
dialog
->
b
[
4
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Print Eta quality measure"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Print Eta quality measure"
);
y
+=
BH
;
dialog
->
b
[
5
]
=
new
Fl_Check_Button
dialog
->
b
[
5
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Print Rho quality measure"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Print Rho quality measure"
);
y
+=
BH
;
dialog
->
b
[
6
]
=
new
Fl_Check_Button
dialog
->
b
[
6
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Print Disto quality measure"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Print Disto quality measure"
);
y
+=
BH
;
for
(
int
i
=
0
;
i
<
6
;
i
++
)
for
(
int
i
=
0
;
i
<
6
;
i
++
)
dialog
->
b
[
i
]
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
[
i
]
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
,
BH
,
"OK"
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
B
,
BH
,
"OK"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
,
y
+
WB
,
BB
,
BH
,
"Cancel"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
B
,
y
+
WB
,
B
BB
,
BH
,
"Cancel"
);
dialog
->
window
->
set_modal
();
dialog
->
window
->
set_modal
();
dialog
->
window
->
end
();
dialog
->
window
->
end
();
dialog
->
window
->
hotspot
(
dialog
->
window
);
dialog
->
window
->
hotspot
(
dialog
->
window
);
...
@@ -703,24 +704,25 @@ int msh_dialog(const char *name)
...
@@ -703,24 +704,25 @@ int msh_dialog(const char *name)
};
};
int
_fontsize
=
GetFontSize
();
int
_fontsize
=
GetFontSize
();
int
BBB
=
BB
+
9
;
// labels too long
if
(
!
dialog
){
if
(
!
dialog
){
dialog
=
new
_msh_dialog
;
dialog
=
new
_msh_dialog
;
int
h
=
3
*
WB
+
4
*
BH
,
w
=
2
*
BB
+
3
*
WB
,
y
=
WB
;
int
h
=
3
*
WB
+
4
*
BH
,
w
=
2
*
BB
B
+
3
*
WB
,
y
=
WB
;
// not a "dialogWindow" since it is modal
// not a "dialogWindow" since it is modal
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"MSH Options"
);
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"MSH Options"
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
c
=
new
Fl_Choice
(
WB
,
y
,
BB
+
BB
/
2
,
BH
,
"Format"
);
y
+=
BH
;
dialog
->
c
=
new
Fl_Choice
(
WB
,
y
,
BB
B
+
BB
B
/
2
,
BH
,
"Format"
);
y
+=
BH
;
dialog
->
c
->
menu
(
formatmenu
);
dialog
->
c
->
menu
(
formatmenu
);
dialog
->
c
->
align
(
FL_ALIGN_RIGHT
);
dialog
->
c
->
align
(
FL_ALIGN_RIGHT
);
dialog
->
b
=
new
Fl_Check_Button
dialog
->
b
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
dialog
->
b
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
p
=
new
Fl_Check_Button
dialog
->
p
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save Parametric Coordinates"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save Parametric Coordinates"
);
y
+=
BH
;
dialog
->
p
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
p
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
,
BH
,
"OK"
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
B
,
BH
,
"OK"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
,
y
+
WB
,
BB
,
BH
,
"Cancel"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
B
,
y
+
WB
,
B
BB
,
BH
,
"Cancel"
);
dialog
->
window
->
set_modal
();
dialog
->
window
->
set_modal
();
dialog
->
window
->
end
();
dialog
->
window
->
end
();
dialog
->
window
->
hotspot
(
dialog
->
window
);
dialog
->
window
->
hotspot
(
dialog
->
window
);
...
@@ -768,21 +770,22 @@ int unv_dialog(const char *name)
...
@@ -768,21 +770,22 @@ int unv_dialog(const char *name)
static
_unv_dialog
*
dialog
=
NULL
;
static
_unv_dialog
*
dialog
=
NULL
;
int
_fontsize
=
GetFontSize
();
int
_fontsize
=
GetFontSize
();
int
BBB
=
BB
+
9
;
// labels too long
if
(
!
dialog
){
if
(
!
dialog
){
dialog
=
new
_unv_dialog
;
dialog
=
new
_unv_dialog
;
int
h
=
3
*
WB
+
3
*
BH
,
w
=
2
*
BB
+
3
*
WB
,
y
=
WB
;
int
h
=
3
*
WB
+
3
*
BH
,
w
=
2
*
BB
B
+
3
*
WB
,
y
=
WB
;
// not a "dialogWindow" since it is modal
// not a "dialogWindow" since it is modal
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"UNV Options"
);
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"UNV Options"
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
b
[
0
]
=
new
Fl_Check_Button
dialog
->
b
[
0
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
dialog
->
b
[
0
]
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
[
0
]
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
[
1
]
=
new
Fl_Check_Button
dialog
->
b
[
1
]
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save groups of nodes"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save groups of nodes"
);
y
+=
BH
;
dialog
->
b
[
1
]
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
[
1
]
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
,
BH
,
"OK"
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
B
,
BH
,
"OK"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
,
y
+
WB
,
BB
,
BH
,
"Cancel"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
B
,
y
+
WB
,
B
BB
,
BH
,
"Cancel"
);
dialog
->
window
->
set_modal
();
dialog
->
window
->
set_modal
();
dialog
->
window
->
end
();
dialog
->
window
->
end
();
dialog
->
window
->
hotspot
(
dialog
->
window
);
dialog
->
window
->
hotspot
(
dialog
->
window
);
...
@@ -834,21 +837,22 @@ int bdf_dialog(const char *name)
...
@@ -834,21 +837,22 @@ int bdf_dialog(const char *name)
};
};
int
_fontsize
=
GetFontSize
();
int
_fontsize
=
GetFontSize
();
int
BBB
=
BB
+
9
;
// labels too long
if
(
!
dialog
){
if
(
!
dialog
){
dialog
=
new
_bdf_dialog
;
dialog
=
new
_bdf_dialog
;
int
h
=
3
*
WB
+
3
*
BH
,
w
=
2
*
BB
+
3
*
WB
,
y
=
WB
;
int
h
=
3
*
WB
+
3
*
BH
,
w
=
2
*
BB
B
+
3
*
WB
,
y
=
WB
;
// not a "dialogWindow" since it is modal
// not a "dialogWindow" since it is modal
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"BDF Options"
);
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
,
"BDF Options"
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
c
=
new
Fl_Choice
(
WB
,
y
,
BB
+
BB
/
2
,
BH
,
"Format"
);
y
+=
BH
;
dialog
->
c
=
new
Fl_Choice
(
WB
,
y
,
BB
B
+
BB
B
/
2
,
BH
,
"Format"
);
y
+=
BH
;
dialog
->
c
->
menu
(
formatmenu
);
dialog
->
c
->
menu
(
formatmenu
);
dialog
->
c
->
align
(
FL_ALIGN_RIGHT
);
dialog
->
c
->
align
(
FL_ALIGN_RIGHT
);
dialog
->
b
=
new
Fl_Check_Button
dialog
->
b
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
dialog
->
b
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
,
BH
,
"OK"
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
B
,
BH
,
"OK"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
,
y
+
WB
,
BB
,
BH
,
"Cancel"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
B
,
y
+
WB
,
B
BB
,
BH
,
"Cancel"
);
dialog
->
window
->
set_modal
();
dialog
->
window
->
set_modal
();
dialog
->
window
->
end
();
dialog
->
window
->
end
();
dialog
->
window
->
hotspot
(
dialog
->
window
);
dialog
->
window
->
hotspot
(
dialog
->
window
);
...
@@ -899,21 +903,22 @@ int generic_mesh_dialog(const char *name, const char *title, int format,
...
@@ -899,21 +903,22 @@ int generic_mesh_dialog(const char *name, const char *title, int format,
};
};
int
_fontsize
=
GetFontSize
();
int
_fontsize
=
GetFontSize
();
int
BBB
=
BB
+
9
;
// labels too long
if
(
!
dialog
){
if
(
!
dialog
){
dialog
=
new
_generic_mesh_dialog
;
dialog
=
new
_generic_mesh_dialog
;
int
h
=
3
*
WB
+
3
*
BH
,
w
=
2
*
BB
+
3
*
WB
,
y
=
WB
;
int
h
=
3
*
WB
+
3
*
BH
,
w
=
2
*
BB
B
+
3
*
WB
,
y
=
WB
;
// not a "dialogWindow" since it is modal
// not a "dialogWindow" since it is modal
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
);
dialog
->
window
=
new
Fl_Double_Window
(
w
,
h
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
window
->
box
(
GMSH_WINDOW_BOX
);
dialog
->
c
=
new
Fl_Choice
(
WB
,
y
,
BB
+
BB
/
2
,
BH
,
"Format"
);
y
+=
BH
;
dialog
->
c
=
new
Fl_Choice
(
WB
,
y
,
BB
B
+
BB
B
/
2
,
BH
,
"Format"
);
y
+=
BH
;
dialog
->
c
->
menu
(
formatmenu
);
dialog
->
c
->
menu
(
formatmenu
);
dialog
->
c
->
align
(
FL_ALIGN_RIGHT
);
dialog
->
c
->
align
(
FL_ALIGN_RIGHT
);
dialog
->
b
=
new
Fl_Check_Button
dialog
->
b
=
new
Fl_Check_Button
(
WB
,
y
,
2
*
BB
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
(
WB
,
y
,
2
*
BB
B
+
WB
,
BH
,
"Save all (ignore physical groups)"
);
y
+=
BH
;
dialog
->
b
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
b
->
type
(
FL_TOGGLE_BUTTON
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
,
BH
,
"OK"
);
dialog
->
ok
=
new
Fl_Return_Button
(
WB
,
y
+
WB
,
BB
B
,
BH
,
"OK"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
,
y
+
WB
,
BB
,
BH
,
"Cancel"
);
dialog
->
cancel
=
new
Fl_Button
(
2
*
WB
+
BB
B
,
y
+
WB
,
B
BB
,
BH
,
"Cancel"
);
dialog
->
window
->
set_modal
();
dialog
->
window
->
set_modal
();
dialog
->
window
->
end
();
dialog
->
window
->
end
();
dialog
->
window
->
hotspot
(
dialog
->
window
);
dialog
->
window
->
hotspot
(
dialog
->
window
);
...
...
This diff is collapsed.
Click to expand it.
Fltk/menuWindow.cpp
+
1
−
1
View file @
df06a09c
...
@@ -2353,7 +2353,7 @@ contextItem menu_mesh[] = {
...
@@ -2353,7 +2353,7 @@ contextItem menu_mesh[] = {
{
"Partition"
,
(
Fl_Callback
*
)
mesh_partition_cb
}
,
{
"Partition"
,
(
Fl_Callback
*
)
mesh_partition_cb
}
,
#endif
#endif
#if defined(HAVE_FOURIER_MODEL)
#if defined(HAVE_FOURIER_MODEL)
{
"Reparameterize"
,
(
Fl_Callback
*
)
mesh_parameterize_cb
}
,
//
{"Reparameterize", (Fl_Callback *)mesh_parameterize_cb} ,
#endif
#endif
{
"Reclassify"
,
(
Fl_Callback
*
)
mesh_classify_cb
}
,
{
"Reclassify"
,
(
Fl_Callback
*
)
mesh_classify_cb
}
,
{
"Save"
,
(
Fl_Callback
*
)
mesh_save_cb
}
,
{
"Save"
,
(
Fl_Callback
*
)
mesh_save_cb
}
,
...
...
This diff is collapsed.
Click to expand it.
Post/adaptiveData.cpp
+
1
−
1
View file @
df06a09c
...
@@ -956,7 +956,7 @@ void adaptiveElements<T>::_changeResolution(int level, GMSH_Post_Plugin *plug, i
...
@@ -956,7 +956,7 @@ void adaptiveElements<T>::_changeResolution(int level, GMSH_Post_Plugin *plug, i
else
else
T
::
GSF
(
p
->
x
,
p
->
y
,
p
->
z
,
sf
);
T
::
GSF
(
p
->
x
,
p
->
y
,
p
->
z
,
sf
);
for
(
int
k
=
0
;
k
<
_posX
->
size2
();
k
++
)
for
(
int
k
=
0
;
k
<
_posX
->
size2
();
k
++
)
(
*
_geometry
)
(
kk
,
k
)
=
sf
[
k
];
(
*
_geometry
)(
kk
,
k
)
=
sf
[
k
];
kk
++
;
kk
++
;
}
}
...
...
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