| 58 | //------------------------------------------------------------------------------ |
| 59 | |
| 60 | void CreatorTree::Node::expand(bool exp) |
| 61 | { |
| 62 | if(exp) |
| 63 | { |
| 64 | if(mParent) |
| 65 | mParent->expand(exp); |
| 66 | mFlags.set(Node::Expanded); |
| 67 | } |
| 68 | else if(!isRoot()) |
| 69 | { |
| 70 | if(isGroup()) |
| 71 | for(U32 i = 0; i < mChildren.size(); i++) |
| 72 | mChildren[i]->expand(exp); |
| 73 | |
| 74 | mFlags.clear(Selected); |
| 75 | mFlags.clear(Expanded); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | //------------------------------------------------------------------------------ |
| 80 |