summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2014-09-05 12:04:28 +0000
committerLauri Kasanen <cand@gmx.com>2014-09-05 12:04:28 +0000
commitd1d203ca57d39af952478d8b174975d410a38899 (patch)
tree485947c29c8873e3d20054a64274dd080a078581 /FL
parentd67f2e8e3e5d7b2a3364ac90bdcf4a9d9bababc0 (diff)
Add support for dragging to reorder in Fl_Tree, STR #2828 (I)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Tree.H3
-rw-r--r--FL/Fl_Tree_Prefs.H4
2 files changed, 5 insertions, 2 deletions
diff --git a/FL/Fl_Tree.H b/FL/Fl_Tree.H
index 99a1e5e2d..826973593 100644
--- a/FL/Fl_Tree.H
+++ b/FL/Fl_Tree.H
@@ -317,7 +317,8 @@ enum Fl_Tree_Reason {
FL_TREE_REASON_RESELECTED, ///< an item was re-selected (e.g. double-clicked)
#endif /*FLTK_ABI_VERSION*/
FL_TREE_REASON_OPENED, ///< an item was opened
- FL_TREE_REASON_CLOSED ///< an item was closed
+ FL_TREE_REASON_CLOSED, ///< an item was closed
+ FL_TREE_REASON_DRAGGED ///< an item was dragged into a new place
};
class FL_EXPORT Fl_Tree : public Fl_Group {
diff --git a/FL/Fl_Tree_Prefs.H b/FL/Fl_Tree_Prefs.H
index 1b1a7b139..1ef56ca52 100644
--- a/FL/Fl_Tree_Prefs.H
+++ b/FL/Fl_Tree_Prefs.H
@@ -67,8 +67,10 @@ enum Fl_Tree_Connector {
enum Fl_Tree_Select {
FL_TREE_SELECT_NONE=0, ///< Nothing selected when items are clicked
FL_TREE_SELECT_SINGLE=1, ///< Single item selected when item is clicked (default)
- FL_TREE_SELECT_MULTI=2 ///< Multiple items can be selected by clicking
+ FL_TREE_SELECT_MULTI=2, ///< Multiple items can be selected by clicking
///< with SHIFT, CTRL or mouse drags.
+ FL_TREE_SELECT_SINGLE_DRAGGABLE=3, ///< Single items may be selected, and they may be
+ ///< reordered by mouse drag.
};
#if FLTK_ABI_VERSION >= 10301