mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
First effective implementation of LayerView (both GUI, sorting and
storing in session)
This commit is contained in:
@@ -206,6 +206,15 @@ void Group::attach(Node *child)
|
||||
}
|
||||
|
||||
|
||||
void Group::sort()
|
||||
{
|
||||
// reorder list of nodes
|
||||
NodeSet ordered_children;
|
||||
for(auto it = children_.begin(); it != children_.end(); it++)
|
||||
ordered_children.insert(*it);
|
||||
children_.swap(ordered_children);
|
||||
}
|
||||
|
||||
void Group::detatch(Node *child)
|
||||
{
|
||||
// find the node with this id, and erase it out of the list of children
|
||||
|
||||
Reference in New Issue
Block a user