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

Method menu_activated

src/laybasic/laybasic/layLayoutViewBase.cc:6116–6132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6114}
6115
6116void
6117LayoutViewBase::menu_activated (const std::string &symbol)
6118{
6119 // Try the plugin declarations if the view is the top-level dispatcher
6120 if (dispatcher () == this) {
6121 for (tl::Registrar<lay::PluginDeclaration>::iterator cls = tl::Registrar<lay::PluginDeclaration>::begin (); cls != tl::Registrar<lay::PluginDeclaration>::end (); ++cls) {
6122 if (cls->menu_activated (symbol)) {
6123 return;
6124 }
6125 }
6126 }
6127
6128 // distribute the menu item call on the plugins - one should take it.
6129 for (std::vector<lay::Plugin *>::const_iterator p = plugins ().begin (); p != plugins ().end (); ++p) {
6130 (*p)->menu_activated (symbol);
6131 }
6132}
6133
6134void
6135LayoutViewBase::update_content_for_cv (int /*cellview_index*/)

Callers 3

menu_activatedFunction · 0.45
select_cell_dispatchMethod · 0.45
triggeredMethod · 0.45

Calls 5

dispatcherFunction · 0.70
beginFunction · 0.70
endFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected