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

Method paste_interactive

src/laybasic/laybasic/layLayoutViewBase.cc:5668–5684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5666}
5667
5668void
5669LayoutViewBase::paste_interactive (bool transient_mode)
5670{
5671 clear_selection ();
5672
5673 std::unique_ptr<db::Transaction> trans (new db::Transaction (manager (), tl::to_string (tr ("Paste and move"))));
5674
5675 lay::Editables::paste ();
5676
5677 // temporarily close the transaction and pass to the move service for appending it's own
5678 // operations.
5679 trans->close ();
5680
5681 if (mp_move_service && mp_move_service->start_move (trans.release (), transient_mode)) {
5682 switch_mode (-1); // move mode
5683 }
5684}
5685
5686void
5687LayoutViewBase::copy ()

Callers 2

do_cm_duplicateMethod · 0.80
do_cm_pasteMethod · 0.80

Calls 8

clear_selectionFunction · 0.85
pasteFunction · 0.85
start_moveMethod · 0.80
managerFunction · 0.70
to_stringFunction · 0.50
trFunction · 0.50
closeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected