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
a74b6792
Commit
a74b6792
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Fix case
parent
ad72fe43
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fltk/Callbacks.cpp
+19
-19
19 additions, 19 deletions
Fltk/Callbacks.cpp
with
19 additions
and
19 deletions
Fltk/Callbacks.cpp
+
19
−
19
View file @
a74b6792
// $Id: Callbacks.cpp,v 1.17
8
2003-06-19 16:
48:49
geuzaine Exp $
// $Id: Callbacks.cpp,v 1.17
9
2003-06-19 16:
52:38
geuzaine Exp $
//
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -844,7 +844,7 @@ void general_options_rotation_center_select_cb(CALLBACK_ARGS)
...
@@ -844,7 +844,7 @@ void general_options_rotation_center_select_cb(CALLBACK_ARGS)
Draw
();
Draw
();
}
}
Msg
(
STATUS3N
,
"Select
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select
p
oint ('q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
if
(
ib
==
1
)
{
// This would bypass the "Apply" button... Not necessarily bad,
// This would bypass the "Apply" button... Not necessarily bad,
...
@@ -1515,7 +1515,7 @@ static void _new_multiline(int type)
...
@@ -1515,7 +1515,7 @@ static void _new_multiline(int type)
n
=
0
;
n
=
0
;
while
(
1
)
{
while
(
1
)
{
Msg
(
STATUS3N
,
"Select
P
oint ('e'=end, 'q'=quit)"
);
Msg
(
STATUS3N
,
"Select
p
oint ('e'=end, 'q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
v
->
Num
;
p
[
n
++
]
=
v
->
Num
;
...
@@ -1572,9 +1572,9 @@ void geometry_elementary_add_new_line_cb(CALLBACK_ARGS)
...
@@ -1572,9 +1572,9 @@ void geometry_elementary_add_new_line_cb(CALLBACK_ARGS)
n
=
0
;
n
=
0
;
while
(
1
)
{
while
(
1
)
{
if
(
n
==
0
)
if
(
n
==
0
)
Msg
(
STATUS3N
,
"Select start
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select start
p
oint ('q'=quit)"
);
if
(
n
==
1
)
if
(
n
==
1
)
Msg
(
STATUS3N
,
"Select end
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select end
p
oint ('q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
v
->
Num
;
p
[
n
++
]
=
v
->
Num
;
...
@@ -1621,11 +1621,11 @@ void geometry_elementary_add_new_circle_cb(CALLBACK_ARGS)
...
@@ -1621,11 +1621,11 @@ void geometry_elementary_add_new_circle_cb(CALLBACK_ARGS)
n
=
0
;
n
=
0
;
while
(
1
)
{
while
(
1
)
{
if
(
n
==
0
)
if
(
n
==
0
)
Msg
(
STATUS3N
,
"Select start
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select start
p
oint ('q'=quit)"
);
if
(
n
==
1
)
if
(
n
==
1
)
Msg
(
STATUS3N
,
"Select center
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select center
p
oint ('q'=quit)"
);
if
(
n
==
2
)
if
(
n
==
2
)
Msg
(
STATUS3N
,
"Select end
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select end
p
oint ('q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
v
->
Num
;
p
[
n
++
]
=
v
->
Num
;
...
@@ -1662,13 +1662,13 @@ void geometry_elementary_add_new_ellipse_cb(CALLBACK_ARGS)
...
@@ -1662,13 +1662,13 @@ void geometry_elementary_add_new_ellipse_cb(CALLBACK_ARGS)
n
=
0
;
n
=
0
;
while
(
1
)
{
while
(
1
)
{
if
(
n
==
0
)
if
(
n
==
0
)
Msg
(
STATUS3N
,
"Select start
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select start
p
oint ('q'=quit)"
);
if
(
n
==
1
)
if
(
n
==
1
)
Msg
(
STATUS3N
,
"Select center
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select center
p
oint ('q'=quit)"
);
if
(
n
==
2
)
if
(
n
==
2
)
Msg
(
STATUS3N
,
"Select major axis
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select major axis
p
oint ('q'=quit)"
);
if
(
n
==
3
)
if
(
n
==
3
)
Msg
(
STATUS3N
,
"Select end
P
oint ('q'=quit)"
);
Msg
(
STATUS3N
,
"Select end
p
oint ('q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
v
->
Num
;
p
[
n
++
]
=
v
->
Num
;
...
@@ -2278,7 +2278,7 @@ void mesh_define_length_cb(CALLBACK_ARGS)
...
@@ -2278,7 +2278,7 @@ void mesh_define_length_cb(CALLBACK_ARGS)
WID
->
create_mesh_context_window
(
0
);
WID
->
create_mesh_context_window
(
0
);
while
(
1
)
{
while
(
1
)
{
Msg
(
STATUS3N
,
"Select
P
oint ('e'=end, 'q'=quit)"
);
Msg
(
STATUS3N
,
"Select
p
oint ('e'=end, 'q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
v
->
Num
;
p
[
n
++
]
=
v
->
Num
;
...
@@ -2317,7 +2317,7 @@ void mesh_define_recombine_cb(CALLBACK_ARGS)
...
@@ -2317,7 +2317,7 @@ void mesh_define_recombine_cb(CALLBACK_ARGS)
n
=
0
;
n
=
0
;
while
(
1
)
{
while
(
1
)
{
Msg
(
STATUS3N
,
"Select
S
urface ('e'=end, 'q'=quit)"
);
Msg
(
STATUS3N
,
"Select
s
urface ('e'=end, 'q'=quit)"
);
ib
=
SelectEntity
(
ENT_SURFACE
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_SURFACE
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
s
->
Num
;
p
[
n
++
]
=
s
->
Num
;
...
@@ -2384,11 +2384,11 @@ static void _add_transfinite(int dim)
...
@@ -2384,11 +2384,11 @@ static void _add_transfinite(int dim)
while
(
1
)
{
while
(
1
)
{
switch
(
dim
)
{
switch
(
dim
)
{
case
1
:
case
1
:
Msg
(
STATUS3N
,
"Select
L
ine ('e'=end, 'q'=quit)"
);
Msg
(
STATUS3N
,
"Select
l
ine ('e'=end, 'q'=quit)"
);
ib
=
SelectEntity
(
ENT_LINE
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_LINE
,
&
v
,
&
c
,
&
s
);
break
;
break
;
case
2
:
case
2
:
Msg
(
STATUS3N
,
"Select
S
urface ('e'=end, 'q'=quit)"
);
Msg
(
STATUS3N
,
"Select
s
urface ('e'=end, 'q'=quit)"
);
ib
=
SelectEntity
(
ENT_SURFACE
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_SURFACE
,
&
v
,
&
c
,
&
s
);
break
;
break
;
case
3
:
case
3
:
...
@@ -2404,7 +2404,7 @@ static void _add_transfinite(int dim)
...
@@ -2404,7 +2404,7 @@ static void _add_transfinite(int dim)
p
[
n
++
]
=
s
->
Num
;
// fall-through
p
[
n
++
]
=
s
->
Num
;
// fall-through
case
3
:
case
3
:
while
(
1
)
{
while
(
1
)
{
Msg
(
STATUS3N
,
"Select
P
oint ('e'=end, 'q'=quit)"
);
Msg
(
STATUS3N
,
"Select
p
oint ('e'=end, 'q'=quit)"
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
ib
=
SelectEntity
(
ENT_POINT
,
&
v
,
&
c
,
&
s
);
if
(
ib
==
1
)
{
/* left mouse butt */
if
(
ib
==
1
)
{
/* left mouse butt */
p
[
n
++
]
=
v
->
Num
;
p
[
n
++
]
=
v
->
Num
;
...
@@ -2416,13 +2416,13 @@ static void _add_transfinite(int dim)
...
@@ -2416,13 +2416,13 @@ static void _add_transfinite(int dim)
add_trsfsurf
(
n
,
p
,
CTX
.
filename
);
add_trsfsurf
(
n
,
p
,
CTX
.
filename
);
else
else
Msg
(
STATUS2
,
Msg
(
STATUS2
,
"Wrong number of points for
T
ransfinite
S
urface"
);
"Wrong number of points for
t
ransfinite
s
urface"
);
break
;
break
;
case
3
:
case
3
:
if
(
n
==
6
||
n
==
8
)
if
(
n
==
6
||
n
==
8
)
add_trsfvol
(
n
,
p
,
CTX
.
filename
);
add_trsfvol
(
n
,
p
,
CTX
.
filename
);
else
else
Msg
(
STATUS2
,
"Wrong number of points for
T
ransfinite
V
olume"
);
Msg
(
STATUS2
,
"Wrong number of points for
t
ransfinite
v
olume"
);
break
;
break
;
}
}
n
=
0
;
n
=
0
;
...
...
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