| 963 | } |
| 964 | |
| 965 | void |
| 966 | MultiInstancePanel::addInstances(const std::list<NodePtr>& instances) |
| 967 | { |
| 968 | std::list<NodePtr>::const_iterator next = instances.begin(); |
| 969 | |
| 970 | if ( next != instances.end() ) { |
| 971 | ++next; |
| 972 | } |
| 973 | for (std::list<NodePtr>::const_iterator it = instances.begin(); |
| 974 | it != instances.end(); |
| 975 | ++it) { |
| 976 | addRow(*it); |
| 977 | (*it)->activate( std::list<NodePtr>(), false, next == instances.end() ); |
| 978 | |
| 979 | // increment for next iteration |
| 980 | if ( next != instances.end() ) { |
| 981 | ++next; |
| 982 | } |
| 983 | } // for(it) |
| 984 | } |
| 985 | |
| 986 | void |
| 987 | MultiInstancePanel::removeRow(int index) |