Fixed moving bookmarks
This commit is contained in:
parent
915fbe598b
commit
c97266769b
3 changed files with 191 additions and 88 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
namespace GUIStuff {
|
||||
typedef std::vector<size_t> TreeListingObjIndexList;
|
||||
bool is_tree_listing_obj_index_parent(const TreeListingObjIndexList& parentToCheck, const TreeListingObjIndexList& obj);
|
||||
}
|
||||
|
||||
bool operator<(const GUIStuff::TreeListingObjIndexList& a, const GUIStuff::TreeListingObjIndexList& b);
|
||||
|
|
@ -45,6 +46,12 @@ class TreeListing : public Element {
|
|||
private:
|
||||
void recursive_visible_flattened_obj_list(std::vector<ObjInfo>& objs, const TreeListingObjIndexList& objIndex);
|
||||
|
||||
void move_selected_objects();
|
||||
|
||||
bool isDragging = false;
|
||||
size_t dragIndexStart;
|
||||
size_t dragIndexEnd;
|
||||
|
||||
std::vector<ObjInfo> flattenedIndexList;
|
||||
Data d;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue