summaryrefslogtreecommitdiff
path: root/test/tree.fl
diff options
context:
space:
mode:
Diffstat (limited to 'test/tree.fl')
-rw-r--r--test/tree.fl38
1 files changed, 23 insertions, 15 deletions
diff --git a/test/tree.fl b/test/tree.fl
index 8da3bd29b..d6d86674e 100644
--- a/test/tree.fl
+++ b/test/tree.fl
@@ -346,7 +346,7 @@ Function {} {open
} {
Fl_Window window {
label tree open
- xywh {115 293 1045 580} type Double hide
+ xywh {600 253 1045 580} type Double visible
} {
Fl_Group tree {
label Tree
@@ -640,7 +640,7 @@ switch ( selectmode_chooser->value() ) {
case 2: tree->selectmode(FL_TREE_SELECT_MULTI); break; // Multi
case 3: tree->selectmode(FL_TREE_SELECT_SINGLE_DRAGGABLE); break; // Single draggable
default: tree->selectmode(FL_TREE_SELECT_SINGLE); break; // Single
-}} open selected
+}} open
tooltip {Tests Fl_Tree::selectmode()
Sets how Fl_Tree handles mouse selection of tree items.
NONE -- Not selectable by keyboard/mouse
@@ -1205,9 +1205,9 @@ tree->redraw();}
tooltip {Sets the Fl_Tree_Item::labelbgcolor() for the selected items. If none selected, all are changed.} xywh {863 99 16 16} box DOWN_BOX labelsize 11 align 7
code0 {o->color(GetSelectedItemBGColor());}
}
- Fl_Light_Button deactivate_toggle {
- label { Deactivate}
- callback {int onoff = deactivate_toggle->value() ? 0 : 1;
+ Fl_Light_Button deactivate_items_toggle {
+ label { Deactivate Items}
+ callback {int onoff = deactivate_items_toggle->value() ? 0 : 1;
Fl_Tree_Item *item;
int count = 0;
@@ -1226,7 +1226,15 @@ if ( count == 0 ) {
tree->redraw();}
tooltip {Toggle the deactivation state of the selected items.
-If none are selected, all are set.} xywh {769 134 95 16} selection_color 1 labelsize 9
+If none are selected, all are set.} xywh {758 134 100 16} selection_color 1 labelsize 9
+ }
+ Fl_Light_Button deactivate_tree_toggle {
+ label { Deactivate Tree}
+ callback {if ( deactivate_tree_toggle->value() )
+ tree->deactivate();
+else
+ tree->activate();} selected
+ tooltip {Deactivates the entire tree widget} xywh {758 154 100 16} selection_color 1 labelsize 9
}
Fl_Light_Button bold_toggle {
label { Bold Font}
@@ -1251,7 +1259,7 @@ if ( ! count ) {
tree->redraw();}
tooltip {Toggles bold font for selected items
-If nothing selected, all are changed} xywh {769 154 95 16} selection_color 1 labelsize 9
+If nothing selected, all are changed} xywh {758 174 100 16} selection_color 1 labelsize 9
}
Fl_Button showselected_button {
label {Show Selected}
@@ -1312,13 +1320,13 @@ Swaps two selected items (items must be siblings)} xywh {864 174 95 16} labelsiz
label {Select All}
callback {tree->select_all(0);
tree->redraw();}
- tooltip {Selects all items in the tree} xywh {724 199 95 16} labelsize 9
+ tooltip {Selects all items in the tree} xywh {714 199 95 16} labelsize 9
}
Fl_Button deselectall_button {
label {Deselect All}
callback {tree->deselect_all(0);
tree->redraw();}
- tooltip {Deselects all items in the tree} xywh {724 219 95 16} labelsize 9
+ tooltip {Deselects all items in the tree} xywh {714 219 95 16} labelsize 9
}
Fl_Button nextselected_button {
label {next_selected()}
@@ -1332,7 +1340,7 @@ printf(" // Walk up the tree (backwards)\\n");
for ( Fl_Tree_Item *i=tree->last_selected_item(); i; i=tree->next_selected_item(i, FL_Up) ) {
printf(" Selected item: %s\\n", i->label()?i->label():"<nolabel>");
}}
- tooltip {Tests the Fl_Tree::next_selected() function} xywh {723 239 95 16} labelsize 9
+ tooltip {Tests the Fl_Tree::next_selected() function} xywh {713 239 95 16} labelsize 9
}
Fl_Light_Button bbbselect_toggle {
label { Select Bbb}
@@ -1346,7 +1354,7 @@ int onoff = bbbselect_toggle->value();
if ( onoff ) tree->select(bbb); // select /Bbb
else tree->deselect(bbb); // deselect /Bbb}
tooltip {Toggle selection of just the /Bbb item
-(Not children)} xywh {819 199 95 16} selection_color 1 labelsize 9
+(Not children)} xywh {814 199 95 16} selection_color 1 labelsize 9
}
Fl_Light_Button bbbselect2_toggle {
label { Select Bbb+}
@@ -1359,7 +1367,7 @@ if ( !bbb) {
int onoff = bbbselect2_toggle->value();
if ( onoff ) tree->select_all(bbb); // select /Bbb and its children
else tree->deselect_all(bbb); // deselect /Bbb and its children}
- tooltip {Toggle selection of the /Bbb item and its children} xywh {819 219 95 16} selection_color 1 labelsize 9
+ tooltip {Toggle selection of the /Bbb item and its children} xywh {814 219 95 16} selection_color 1 labelsize 9
}
Fl_Light_Button bbbchild02select_toggle {
label { Toggle child-02}
@@ -1374,7 +1382,7 @@ if ( err == -1 ) {
fl_alert("FAIL: Couldn't find item '%s'",pathname);
return;
}}
- tooltip {Toggle the single item "/Bbb/child-02" using the item's "pathname".} xywh {819 239 95 16} selection_color 1 labelsize 9
+ tooltip {Toggle the single item "/Bbb/child-02" using the item's "pathname".} xywh {814 239 95 16} selection_color 1 labelsize 9
}
Fl_Light_Button rootselect_toggle {
label {Select ROOT}
@@ -1387,7 +1395,7 @@ if ( !item) {
int onoff = rootselect_toggle->value();
if ( onoff ) tree->select(item); // select /ROOT and its children
else tree->deselect(item); // deselect /ROOT and its children}
- tooltip {Toggle selection of the ROOT item} xywh {914 199 95 16} selection_color 1 labelsize 9
+ tooltip {Toggle selection of the ROOT item} xywh {914 199 100 16} selection_color 1 labelsize 9
}
Fl_Light_Button rootselect2_toggle {
label {Select ROOT+}
@@ -1400,7 +1408,7 @@ if ( !item) {
int onoff = rootselect2_toggle->value();
if ( onoff ) tree->select_all(item); // select /ROOT and its children
else tree->deselect_all(item); // deselect /ROOT and its children}
- tooltip {Toggle selection of the ROOT item and all children} xywh {914 219 95 16} selection_color 1 labelsize 9
+ tooltip {Toggle selection of the ROOT item and all children} xywh {914 219 100 16} selection_color 1 labelsize 9
}
Fl_Box {} {
label {Tree Fonts + Colors}