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

Method cancel_edits

src/laybasic/laybasic/layLayoutViewBase.cc:4195–4213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4193}
4194
4195void
4196LayoutViewBase::cancel_edits ()
4197{
4198 // clear any messages
4199 message (std::string (), 0, -1);
4200
4201 // the move service takes a special role here as it manages the
4202 // transaction for the collective move operation.
4203 if (mp_move_service) {
4204 mp_move_service->cancel_transaction ();
4205 }
4206
4207 // cancel all drag and pending edit operations such as move operations.
4208 mp_canvas->drag_cancel ();
4209 lay::Editables::cancel_edits ();
4210
4211 // re-enable edit mode
4212 enable_edits (true);
4213}
4214
4215void
4216LayoutViewBase::finish_edits ()

Callers

nothing calls this directly

Calls 4

cancel_transactionMethod · 0.80
enable_editsFunction · 0.70
stringFunction · 0.50
drag_cancelMethod · 0.45

Tested by

no test coverage detected