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
71664867
Commit
71664867
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
clip labels
parent
8c3ee278
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/onelabGroup.cpp
+13
-12
13 additions, 12 deletions
Fltk/onelabGroup.cpp
with
13 additions
and
12 deletions
Fltk/onelabGroup.cpp
+
13
−
12
View file @
71664867
...
...
@@ -768,7 +768,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::number &p, int ww, int hh,
}
}
but
->
callback
(
onelab_number_choice_cb
,
(
void
*
)
path
);
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
p
.
getReadOnly
())
but
->
deactivate
();
return
but
;
}
...
...
@@ -782,6 +782,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::number &p, int ww, int hh,
but
->
color
(
_tree
->
color
());
but
->
value
(
p
.
getValue
());
but
->
callback
(
onelab_number_check_button_cb
,
(
void
*
)
path
);
but
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
|
FL_ALIGN_CLIP
);
if
(
highlight
){
but
->
color
(
c
);
but
->
labelcolor
(
fl_contrast
(
FL_FOREGROUND_COLOR
,
c
));
...
...
@@ -795,7 +796,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::number &p, int ww, int hh,
outputRange
*
but
=
new
outputRange
(
1
,
1
,
ww
,
hh
);
but
->
callback
(
onelab_number_output_range_cb
,
(
void
*
)
path
);
but
->
value
(
p
.
getValue
());
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
but
->
graph
(
p
.
getAttribute
(
"Graph"
));
if
(
highlight
)
but
->
color
(
c
);
return
but
;
...
...
@@ -813,7 +814,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::number &p, int ww, int hh,
but
->
graph
(
p
.
getAttribute
(
"Graph"
));
but
->
callback
(
onelab_number_input_range_cb
,
(
void
*
)
path
);
but
->
when
(
FL_WHEN_RELEASE
|
FL_WHEN_ENTER_KEY
);
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
highlight
)
but
->
color
(
c
);
return
but
;
}
...
...
@@ -952,7 +953,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::string &p, int ww, int hh,
if
(
p
.
getReadOnly
()){
Fl_Output
*
but
=
new
Fl_Output
(
1
,
1
,
ww
,
hh
);
but
->
value
(
p
.
getValue
().
c_str
());
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
highlight
){
but
->
color
(
c
);
but
->
textcolor
(
fl_contrast
(
FL_FOREGROUND_COLOR
,
c
));
...
...
@@ -966,7 +967,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::string &p, int ww, int hh,
but
->
value
(
p
.
getValue
().
c_str
());
but
->
callback
(
onelab_string_input_cb
,
(
void
*
)
path
);
but
->
when
(
FL_WHEN_ENTER_KEY
);
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
highlight
){
but
->
color
(
c
);
but
->
textcolor
(
fl_contrast
(
FL_FOREGROUND_COLOR
,
c
));
...
...
@@ -1007,7 +1008,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::string &p, int ww, int hh,
but
->
value
(
p
.
getValue
().
c_str
());
but
->
callback
(
onelab_string_input_choice_cb
,
(
void
*
)
path
);
but
->
input
()
->
when
(
FL_WHEN_ENTER_KEY
);
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
highlight
){
but
->
input
()
->
color
(
c
);
but
->
input
()
->
textcolor
(
fl_contrast
(
FL_FOREGROUND_COLOR
,
c
));
...
...
@@ -1056,7 +1057,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::region &p, int ww, int hh,
if
(
p
.
getReadOnly
()){
inputRegion
*
but
=
new
inputRegion
(
1
,
1
,
ww
,
hh
,
true
);
but
->
value
(
p
.
getValue
());
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
highlight
){
but
->
color
(
c
);
but
->
labelcolor
(
fl_contrast
(
FL_FOREGROUND_COLOR
,
c
));
...
...
@@ -1066,7 +1067,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::region &p, int ww, int hh,
inputRegion
*
but
=
new
inputRegion
(
1
,
1
,
ww
,
hh
,
false
);
but
->
value
(
p
.
getValue
());
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
but
->
callback
(
onelab_region_input_cb
,
(
void
*
)
path
);
if
(
highlight
){
but
->
color
(
c
);
...
...
@@ -1082,7 +1083,7 @@ Fl_Widget *onelabGroup::_addParameterWidget(onelab::function &p, int ww, int hh,
if
(
1
||
p
.
getReadOnly
()){
Fl_Output
*
but
=
new
Fl_Output
(
1
,
1
,
ww
,
hh
);
but
->
value
(
"TODO function"
);
but
->
align
(
FL_ALIGN_RIGHT
);
but
->
align
(
FL_ALIGN_RIGHT
|
FL_ALIGN_CLIP
);
if
(
highlight
){
but
->
color
(
c
);
but
->
textcolor
(
fl_contrast
(
FL_FOREGROUND_COLOR
,
c
));
...
...
@@ -1183,13 +1184,13 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
but = new Fl_Button(1, 1, ww, hh);
but->box(FL_NO_BOX);
but->clear_visible_focus();
but->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE);
but->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE
| FL_ALIGN_CLIP
);
but->callback(onelab_subtree_cb, (void*)n);
#else
if
(
getPath
(
n
).
find
(
"0Modules/Post-processing"
)
!=
std
::
string
::
npos
){
but
=
new
Fl_Button
(
1
,
1
,
ww
,
hh
);
but
->
box
(
FL_NO_BOX
);
but
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
but
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
|
FL_ALIGN_CLIP
);
but
->
tooltip
(
"Toggle visibility of child views"
);
char
*
group
=
strdup
(
getPath
(
n
).
substr
(
24
).
c_str
());
_treeStrings
.
push_back
(
group
);
...
...
@@ -1197,7 +1198,7 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
}
else
{
but
=
new
Fl_Box
(
1
,
1
,
ww
,
hh
);
but
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
but
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
|
FL_ALIGN_CLIP
);
}
#endif
_treeWidgets
.
push_back
(
but
);
...
...
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