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

Method clear_menu

src/laybasic/laybasic/layAbstractMenu.cc:1705–1715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703}
1704
1705void
1706AbstractMenu::clear_menu (const std::string &p)
1707{
1708 typedef std::vector<std::pair<AbstractMenuItem *, std::list<AbstractMenuItem>::iterator > > path_type;
1709 tl::Extractor extr (p.c_str ());
1710 path_type path = find_item (extr);
1711 if (! path.empty () && ! path.back ().second->children.empty ()) {
1712 path.back ().second->children.clear ();
1713 emit_changed ();
1714 }
1715}
1716
1717void
1718AbstractMenu::delete_item (const std::string &p)

Callers 4

test_8Method · 0.80
update_menuMethod · 0.80
do_update_mru_menusMethod · 0.80

Calls 4

c_strMethod · 0.45
emptyMethod · 0.45
backMethod · 0.45
clearMethod · 0.45

Tested by 1

test_8Method · 0.64