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

Method end_move

src/laybasic/laybasic/layEditable.cc:624–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624void
625Editables::end_move (const db::DVector &v, db::Transaction *transaction)
626{
627 std::unique_ptr<db::Transaction> trans_holder (transaction ? transaction : new db::Transaction (manager (), tl::to_string (tr ("Move"))));
628
629 if (m_any_move_operation) {
630
631 trans_holder->open ();
632
633 // this dummy operation will update the screen:
634 if (manager ()) {
635 manager ()->queue (this, new db::Op ());
636 }
637
638 for (iterator e = begin (); e != end (); ++e) {
639 e->end_move (v);
640 }
641
642 // clear the selection that was set previously
643 if (m_move_selection) {
644 clear_selection ();
645 }
646
647 } else {
648
649 trans_holder->cancel ();
650 edit_cancel ();
651
652 }
653}
654
655void
656Editables::end_move (const db::DPoint &p, lay::angle_constraint_type ac, db::Transaction *transaction)

Callers 2

functionMethod · 0.45
handle_clickMethod · 0.45

Calls 11

clear_selectionFunction · 0.85
edit_cancelFunction · 0.85
managerFunction · 0.70
beginFunction · 0.70
endFunction · 0.70
selectFunction · 0.70
to_stringFunction · 0.50
trFunction · 0.50
openMethod · 0.45
queueMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected