| 4193 | } |
| 4194 | |
| 4195 | void |
| 4196 | LayoutViewBase::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 | |
| 4215 | void |
| 4216 | LayoutViewBase::finish_edits () |
nothing calls this directly
no test coverage detected