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
5f1a37c9
Commit
5f1a37c9
authored
12 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
allow resize width
parent
3a8c5628
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fltk/visibilityWindow.cpp
+47
-35
47 additions, 35 deletions
Fltk/visibilityWindow.cpp
with
47 additions
and
35 deletions
Fltk/visibilityWindow.cpp
+
47
−
35
View file @
5f1a37c9
...
@@ -1141,40 +1141,47 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
...
@@ -1141,40 +1141,47 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
Fl_Group
*
g
=
new
Fl_Group
Fl_Group
*
g
=
new
Fl_Group
(
WB
,
WB
+
BH
,
width
-
2
*
WB
,
height
-
3
*
WB
-
2
*
BH
,
"List browser"
);
(
WB
,
WB
+
BH
,
width
-
2
*
WB
,
height
-
3
*
WB
-
2
*
BH
,
"List browser"
);
Fl_Button
*
o0
=
new
Fl_Button
{
(
2
*
WB
,
2
*
WB
+
BH
,
cols
[
0
],
BH
/
2
,
"*"
);
Fl_Group
*
gg
=
new
Fl_Group
o0
->
align
(
FL_ALIGN_TOP
|
FL_ALIGN_INSIDE
);
(
2
*
WB
,
WB
+
BH
,
cols
[
0
]
+
cols
[
1
]
+
cols
[
2
]
+
cols
[
3
]
/
2
,
BH
);
o0
->
tooltip
(
"Select/unselect all"
);
gg
->
resizable
(
NULL
);
o0
->
callback
(
visibility_sort_cb
,
(
void
*
)
"*"
);
Fl_Button
*
o0
=
new
Fl_Button
Fl_Button
*
o1
=
new
Fl_Button
(
2
*
WB
,
2
*
WB
+
BH
,
cols
[
0
],
BH
/
2
,
"*"
);
(
2
*
WB
,
2
*
WB
+
BH
+
BH
/
2
,
cols
[
0
],
BH
-
BH
/
2
,
"-"
);
o0
->
align
(
FL_ALIGN_TOP
|
FL_ALIGN_INSIDE
);
o1
->
tooltip
(
"Invert selection"
);
o0
->
tooltip
(
"Select/unselect all"
);
o1
->
callback
(
visibility_sort_cb
,
(
void
*
)
"-"
);
o0
->
callback
(
visibility_sort_cb
,
(
void
*
)
"*"
);
Fl_Button
*
o2
=
new
Fl_Button
Fl_Button
*
o1
=
new
Fl_Button
(
2
*
WB
+
cols
[
0
],
2
*
WB
+
BH
,
cols
[
1
],
BH
,
"Type"
);
(
2
*
WB
,
2
*
WB
+
BH
+
BH
/
2
,
cols
[
0
],
BH
-
BH
/
2
,
"-"
);
o2
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
o1
->
tooltip
(
"Invert selection"
);
o2
->
tooltip
(
"Sort by type"
);
o1
->
callback
(
visibility_sort_cb
,
(
void
*
)
"-"
);
o2
->
callback
(
visibility_sort_cb
,
(
void
*
)
"type"
);
Fl_Button
*
o2
=
new
Fl_Button
Fl_Button
*
o3
=
new
Fl_Button
(
2
*
WB
+
cols
[
0
],
2
*
WB
+
BH
,
cols
[
1
],
BH
,
"Type"
);
(
2
*
WB
+
cols
[
0
]
+
cols
[
1
],
2
*
WB
+
BH
,
cols
[
2
],
BH
,
"Number"
);
o2
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
o3
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
o2
->
tooltip
(
"Sort by type"
);
o3
->
tooltip
(
"Sort by number"
);
o2
->
callback
(
visibility_sort_cb
,
(
void
*
)
"type"
);
o3
->
callback
(
visibility_sort_cb
,
(
void
*
)
"number"
);
Fl_Button
*
o3
=
new
Fl_Button
Fl_Button
*
o4
=
new
Fl_Button
(
2
*
WB
+
cols
[
0
]
+
cols
[
1
],
2
*
WB
+
BH
,
cols
[
2
],
BH
,
"Number"
);
(
2
*
WB
+
cols
[
0
]
+
cols
[
1
]
+
cols
[
2
],
2
*
WB
+
BH
,
cols
[
3
],
BH
,
"Name"
);
o3
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
o4
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
o3
->
tooltip
(
"Sort by number"
);
o4
->
tooltip
(
"Sort by name"
);
o3
->
callback
(
visibility_sort_cb
,
(
void
*
)
"number"
);
o4
->
callback
(
visibility_sort_cb
,
(
void
*
)
"name"
);
Fl_Button
*
o4
=
new
Fl_Button
Fl_Button
*
o5
=
new
Fl_Button
(
2
*
WB
+
cols
[
0
]
+
cols
[
1
]
+
cols
[
2
],
2
*
WB
+
BH
,
cols
[
3
],
BH
,
"Name"
);
(
width
-
4
*
WB
,
2
*
WB
+
BH
,
2
*
WB
,
BH
,
"+"
);
o4
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
o5
->
tooltip
(
"Add parameter name for first selected item"
);
o4
->
tooltip
(
"Sort by name"
);
o5
->
callback
(
visibility_sort_cb
,
(
void
*
)
"+"
);
o4
->
callback
(
visibility_sort_cb
,
(
void
*
)
"name"
);
Fl_Button
*
o5
=
new
Fl_Button
(
width
-
4
*
WB
,
2
*
WB
+
BH
,
2
*
WB
,
BH
,
"+"
);
o5
->
tooltip
(
"Add parameter name for first selected item"
);
o5
->
callback
(
visibility_sort_cb
,
(
void
*
)
"+"
);
gg
->
end
();
}
{
{
Fl_Group
*
gg
=
new
Fl_Group
Fl_Group
*
gg
=
new
Fl_Group
(
2
*
WB
,
2
*
WB
+
2
*
BH
,
brw
,
height
-
6
*
WB
-
4
*
BH
);
(
2
*
WB
,
2
*
WB
+
2
*
BH
,
brw
,
height
-
6
*
WB
-
4
*
BH
);
...
@@ -1385,7 +1392,6 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
...
@@ -1385,7 +1392,6 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
{
{
Fl_Group
*
g
=
new
Fl_Group
Fl_Group
*
g
=
new
Fl_Group
(
WB
,
WB
+
BH
,
width
-
2
*
WB
,
height
-
3
*
WB
-
2
*
BH
,
"Per window"
);
(
WB
,
WB
+
BH
,
width
-
2
*
WB
,
height
-
3
*
WB
-
2
*
BH
,
"Per window"
);
g
->
resizable
(
NULL
);
per_window
=
new
Fl_Multi_Browser
per_window
=
new
Fl_Multi_Browser
(
2
*
WB
,
2
*
WB
+
BH
,
brw
,
height
-
6
*
WB
-
3
*
BH
);
(
2
*
WB
,
2
*
WB
+
BH
,
brw
,
height
-
6
*
WB
-
3
*
BH
);
...
@@ -1401,12 +1407,15 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
...
@@ -1401,12 +1407,15 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
o
->
end
();
o
->
end
();
win
->
resizable
(
o
);
win
->
resizable
(
o
);
win
->
size_range
(
width
,
15
*
BH
+
5
*
WB
,
width
);
win
->
size_range
(
width
,
15
*
BH
+
5
*
WB
);
{
{
int
aw
=
5
*
WB
;
int
aw
=
5
*
WB
;
int
ww
=
(
width
-
5
*
WB
-
aw
)
/
4
;
int
ww
=
(
width
-
5
*
WB
-
aw
)
/
4
;
Fl_Group
*
g
=
new
Fl_Group
(
WB
,
height
-
BH
-
WB
,
width
-
2
*
WB
-
2
*
ww
,
BH
);
g
->
resizable
(
NULL
);
Fl_Box
*
b
=
new
Fl_Box
(
WB
,
height
-
BH
-
WB
,
aw
,
BH
,
"Apply"
);
Fl_Box
*
b
=
new
Fl_Box
(
WB
,
height
-
BH
-
WB
,
aw
,
BH
,
"Apply"
);
b
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
b
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
...
@@ -1420,9 +1429,12 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
...
@@ -1420,9 +1429,12 @@ visibilityWindow::visibilityWindow(int deltaFontSize)
butt
[
1
]
->
type
(
FL_TOGGLE_BUTTON
);
butt
[
1
]
->
type
(
FL_TOGGLE_BUTTON
);
butt
[
1
]
->
value
(
1
);
butt
[
1
]
->
value
(
1
);
g
->
end
();
Fl_Button
*
o1
=
new
Fl_Button
Fl_Button
*
o1
=
new
Fl_Button
(
width
-
2
*
ww
-
WB
,
height
-
BH
-
WB
,
2
*
ww
,
BH
,
"Save current visibility"
);
(
width
-
2
*
ww
-
WB
,
height
-
BH
-
WB
,
2
*
ww
,
BH
,
"Save current visibility"
);
o1
->
callback
(
visibility_save_cb
);
o1
->
callback
(
visibility_save_cb
);
}
}
win
->
position
(
CTX
::
instance
()
->
visPosition
[
0
],
CTX
::
instance
()
->
visPosition
[
1
]);
win
->
position
(
CTX
::
instance
()
->
visPosition
[
0
],
CTX
::
instance
()
->
visPosition
[
1
]);
...
...
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