| 82 | } |
| 83 | |
| 84 | void |
| 85 | MoveService::function (const std::string &name, const std::string &value) |
| 86 | { |
| 87 | if (name == move_function_name) { |
| 88 | |
| 89 | try { |
| 90 | |
| 91 | db::DVector s; |
| 92 | tl::from_string (value, s); |
| 93 | |
| 94 | m_dragging = false; |
| 95 | |
| 96 | show_toolbox (false); |
| 97 | ui ()->ungrab_mouse (this); |
| 98 | |
| 99 | mp_editables->end_move (s, mp_transaction.release ()); |
| 100 | |
| 101 | if (m_dragging_transient) { |
| 102 | mp_editables->clear_selection (); |
| 103 | } |
| 104 | |
| 105 | drag_cancel (); |
| 106 | |
| 107 | } catch (...) { |
| 108 | } |
| 109 | |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | bool |
| 114 | MoveService::key_event (unsigned int key, unsigned int buttons) |
nothing calls this directly
no test coverage detected