MCPcopy Create free account
hub / github.com/comaps/comaps / ShowModal

Method ShowModal

qt/mwms_borders_selection.cpp:42–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42SelectionMode 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
78QGroupBox * MwmsBordersSelection::CreateSourceChoosingGroup()
79{

Callers

nothing calls this directly

Calls 1

isCheckedMethod · 0.45

Tested by

no test coverage detected