| 1621 | } |
| 1622 | |
| 1623 | void |
| 1624 | LayoutViewBase::rename_properties (unsigned int index, const std::string &new_name) |
| 1625 | { |
| 1626 | if (index >= layer_lists ()) { |
| 1627 | return; |
| 1628 | } |
| 1629 | |
| 1630 | if (transacting ()) { |
| 1631 | manager ()->queue (this, new OpRenameProps (index, m_layer_properties_lists [index]->name (), new_name)); |
| 1632 | } else if (manager () && ! replaying ()) { |
| 1633 | manager ()->clear (); |
| 1634 | } |
| 1635 | |
| 1636 | m_layer_properties_lists [index]->set_name (new_name); |
| 1637 | |
| 1638 | layer_list_changed_event (4); |
| 1639 | } |
| 1640 | |
| 1641 | lay::LayerPropertiesConstIterator |
| 1642 | LayoutViewBase::find_layer (unsigned int cv_index, const db::LayerProperties &lp) const |
no test coverage detected