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
d4f1cc25
Commit
d4f1cc25
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
remove submenu buttons until fltk bug is fixed
parent
265baa6c
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
+10
-0
10 additions, 0 deletions
Fltk/onelabGroup.cpp
with
10 additions
and
0 deletions
Fltk/onelabGroup.cpp
+
10
−
0
View file @
d4f1cc25
...
...
@@ -976,6 +976,7 @@ static void onelab_tree_cb(Fl_Widget *w, void *data)
setOpenedClosed
(
item
,
tree
->
callback_reason
());
}
#if 0 // FIXME until the FLTK bug with widgets is solved
static void onelab_subtree_cb(Fl_Widget *w, void *data)
{
Fl_Tree_Item *n = (Fl_Tree_Item*)data;
...
...
@@ -991,6 +992,7 @@ static void onelab_subtree_cb(Fl_Widget *w, void *data)
setOpenedClosed(n, reason);
FlGui::instance()->onelab->redrawTree();
}
#endif
void
onelabGroup
::
_computeWidths
()
{
...
...
@@ -1659,11 +1661,19 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
if
(
n
->
has_children
()){
int
ww
=
_baseWidth
-
(
n
->
depth
()
+
1
)
*
_indent
;
_tree
->
begin
();
#if 0 // FIXME this can crash FLTK when submenus are intially closed (somehow
// the widget is badly positioned and overlaps the open icon, leading to
// a corrupted Fl_Tree_Item)
Fl_Button *but = new Fl_Button(1, 1, ww, 1);
but->box(FL_NO_BOX);
but->clear_visible_focus();
but->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE);
but->callback(onelab_subtree_cb, (void*)n);
#else
Fl_Box
*
but
=
new
Fl_Box
(
1
,
1
,
ww
,
1
);
//but->labelfont(FL_HELVETICA_ITALIC);
but
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
#endif
_treeWidgets
.
push_back
(
but
);
onelab
::
string
o
(
n
->
label
());
but
->
copy_label
(
o
.
getShortName
().
c_str
());
...
...
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