MCPcopy Create free account
hub / github.com/KLayout/klayout / rename_properties

Method rename_properties

src/laybasic/laybasic/layLayoutViewBase.cc:1623–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1621}
1622
1623void
1624LayoutViewBase::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
1641lay::LayerPropertiesConstIterator
1642LayoutViewBase::find_layer (unsigned int cv_index, const db::LayerProperties &lp) const

Callers 1

cm_rename_tabMethod · 0.80

Calls 8

layer_listsFunction · 0.85
transactingFunction · 0.70
managerFunction · 0.70
replayingFunction · 0.50
queueMethod · 0.45
nameMethod · 0.45
clearMethod · 0.45
set_nameMethod · 0.45

Tested by

no test coverage detected