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
cc114e34
Commit
cc114e34
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
f8f6ea70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/GUI.cpp
+15
-5
15 additions, 5 deletions
Fltk/GUI.cpp
Fltk/GUI.h
+1
-1
1 addition, 1 deletion
Fltk/GUI.h
with
16 additions
and
6 deletions
Fltk/GUI.cpp
+
15
−
5
View file @
cc114e34
// $Id: GUI.cpp,v 1.1
19
2001-10-29 16:
06:5
5 geuzaine Exp $
// $Id: GUI.cpp,v 1.1
20
2001-10-29 16:
35:1
5 geuzaine Exp $
// To make the interface as visually consistent as possible, please:
// - use the BH, BW, WB, IW values for button heights/widths, window borders, etc.
...
...
@@ -2081,9 +2081,9 @@ void GUI::create_view_options_window(int num){
}
// 2D
{
Fl_Group
*
o
=
new
Fl_Group
(
WB
,
WB
+
BH
,
width
-
2
*
WB
,
height
-
3
*
WB
-
2
*
BH
,
"2D"
);
o
->
labelsize
(
CTX
.
fontsize
);
o
->
hide
();
view_2d
=
new
Fl_Group
(
WB
,
WB
+
BH
,
width
-
2
*
WB
,
height
-
3
*
WB
-
2
*
BH
,
"2D"
);
view_2d
->
labelsize
(
CTX
.
fontsize
);
view_2d
->
hide
();
view_value
[
20
]
=
new
Fl_Value_Input
(
2
*
WB
,
2
*
WB
+
1
*
BH
,
IW
,
BH
,
"X position"
);
view_value
[
21
]
=
new
Fl_Value_Input
(
2
*
WB
,
2
*
WB
+
2
*
BH
,
IW
,
BH
,
"Y position"
);
...
...
@@ -2097,7 +2097,7 @@ void GUI::create_view_options_window(int num){
view_value
[
i
]
->
callback
(
set_changed_cb
,
0
);
}
o
->
end
();
view_2d
->
end
();
}
// Range
{
...
...
@@ -2325,6 +2325,16 @@ void GUI::update_view_window(int num){
opt_view_draw_tensors
(
num
,
GMSH_GUI
,
0
);
//2D
if
(
v
->
NbSP
){
view_2d
->
activate
();
view_butt
[
2
]
->
activate
();
view_butt
[
3
]
->
activate
();
}
else
{
view_2d
->
deactivate
();
view_butt
[
2
]
->
deactivate
();
view_butt
[
3
]
->
deactivate
();
}
opt_view_graph_position0
(
num
,
GMSH_GUI
,
0
);
opt_view_graph_position1
(
num
,
GMSH_GUI
,
0
);
opt_view_graph_size0
(
num
,
GMSH_GUI
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Fltk/GUI.h
+
1
−
1
View file @
cc114e34
...
...
@@ -159,7 +159,7 @@ public:
// view options window
int
init_view_window
,
view_number
;
Fl_Window
*
view_window
;
Fl_Group
*
view_timestep
,
*
view_vector
;
Fl_Group
*
view_2d
,
*
view_timestep
,
*
view_vector
;
#define VIEW_OPT_BUTT 100
Fl_Check_Button
*
view_butt
[
VIEW_OPT_BUTT
]
;
Fl_Value_Input
*
view_value
[
VIEW_OPT_BUTT
]
;
...
...
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