| 40 | } |
| 41 | |
| 42 | SelectionMode MwmsBordersSelection::ShowModal() |
| 43 | { |
| 44 | if (exec() != QDialog::Accepted) |
| 45 | return SelectionMode::Cancelled; |
| 46 | |
| 47 | if (m_radioBordersFromData->isChecked()) |
| 48 | { |
| 49 | if (m_radioJustBorders->isChecked()) |
| 50 | return SelectionMode::MwmsBordersByPolyFiles; |
| 51 | |
| 52 | if (m_radioWithPoints->isChecked()) |
| 53 | return SelectionMode::MwmsBordersWithVerticesByPolyFiles; |
| 54 | |
| 55 | if (m_radioBoundingBox->isChecked()) |
| 56 | return SelectionMode::BoundingBoxByPolyFiles; |
| 57 | |
| 58 | UNREACHABLE(); |
| 59 | } |
| 60 | |
| 61 | if (m_radioBordersFromPackedPolygon->isChecked()) |
| 62 | { |
| 63 | if (m_radioJustBorders->isChecked()) |
| 64 | return SelectionMode::MwmsBordersByPackedPolygon; |
| 65 | |
| 66 | if (m_radioWithPoints->isChecked()) |
| 67 | return SelectionMode::MwmsBordersWithVerticesByPackedPolygon; |
| 68 | |
| 69 | if (m_radioBoundingBox->isChecked()) |
| 70 | return SelectionMode::BoundingBoxByPackedPolygon; |
| 71 | |
| 72 | UNREACHABLE(); |
| 73 | } |
| 74 | |
| 75 | UNREACHABLE(); |
| 76 | } |
| 77 | |
| 78 | QGroupBox * MwmsBordersSelection::CreateSourceChoosingGroup() |
| 79 | { |