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

Method commit_cv

src/layui/layui/layCellSelectionForm.cc:248–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void
249CellSelectionForm::commit_cv ()
250{
251 // update the cell view
252 if (m_current_cv >= 0 && m_current_cv < int (m_cellviews.size ())) {
253
254 lay::CellTreeModel *model = dynamic_cast<lay::CellTreeModel *> (mp_ui->lv_cells->model ());
255 if (! model) {
256 return;
257 }
258
259 const db::Cell *cell = model->cell (mp_ui->lv_cells->selectionModel ()->currentIndex ());
260 if (cell) {
261 m_cellviews [m_current_cv].set_cell (cell->cell_index ());
262 }
263
264 }
265}
266
267void
268CellSelectionForm::view_changed (int cv)

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
cellMethod · 0.45
set_cellMethod · 0.45
cell_indexMethod · 0.45

Tested by

no test coverage detected