| 591 | } |
| 592 | |
| 593 | void MainWindow::OnSwitchMwmsBordersSelectionMode() |
| 594 | { |
| 595 | MwmsBordersSelection dlg(this); |
| 596 | auto const response = dlg.ShowModal(); |
| 597 | if (response == SelectionMode::Cancelled) |
| 598 | { |
| 599 | m_pDrawWidget->DropSelectionIfMWMBordersMode(); |
| 600 | return; |
| 601 | } |
| 602 | |
| 603 | m_selection->setCurrent(SelectionMode::MWMBorders); |
| 604 | m_pDrawWidget->SetSelectionMode(response); |
| 605 | } |
| 606 | |
| 607 | void MainWindow::OnClearSelection() |
| 608 | { |
nothing calls this directly
no test coverage detected