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

Method finish_edits

src/laybasic/laybasic/layLayoutViewBase.cc:4215–4230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4213}
4214
4215void
4216LayoutViewBase::finish_edits ()
4217{
4218 // the move service takes a special role here as it manages the
4219 // transaction for the collective move operation.
4220 if (mp_move_service) {
4221 mp_move_service->finish_transaction ();
4222 }
4223
4224 // cancel all drag operations
4225 mp_canvas->drag_cancel ();
4226 lay::Editables::finish_edits ();
4227
4228 // re-enable edit mode
4229 enable_edits (true);
4230}
4231
4232void
4233LayoutViewBase::cancel ()

Callers

nothing calls this directly

Calls 3

finish_transactionMethod · 0.80
enable_editsFunction · 0.70
drag_cancelMethod · 0.45

Tested by

no test coverage detected