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

Method select_cell_dispatch

src/laybasic/laybasic/layLayoutViewBase.cc:5179–5203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5177}
5178
5179void
5180LayoutViewBase::select_cell_dispatch (const cell_path_type &path, int cellview_index)
5181{
5182 bool set_max_hier = (m_full_hier_new_cell || has_max_hier ());
5183 if (m_clear_ruler_new_cell) {
5184
5185 // This is a HACK, but the clean solution would be to provide a new editable
5186 // method like "clear_annotations":
5187 lay::Plugin *antPlugin = get_plugin_by_name ("ant::Plugin");
5188 if (antPlugin) {
5189 antPlugin->menu_activated ("ant::clear_all_rulers_internal");
5190 }
5191
5192 }
5193
5194 if (m_fit_new_cell) {
5195 select_cell_fit (path, cellview_index);
5196 } else {
5197 select_cell (path, cellview_index);
5198 }
5199 set_current_cell_path (cellview_index, path);
5200 if (set_max_hier) {
5201 max_hier ();
5202 }
5203}
5204
5205void
5206LayoutViewBase::select_cell_fit (const cell_path_type &path, int index)

Callers

nothing calls this directly

Calls 4

select_cellFunction · 0.85
set_current_cell_pathFunction · 0.85
max_hierFunction · 0.70
menu_activatedMethod · 0.45

Tested by

no test coverage detected