|
|
|
@ -147,12 +147,26 @@ Item {
@@ -147,12 +147,26 @@ Item {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
MenuItem { |
|
|
|
|
text: qsTr("Edit position..." ) |
|
|
|
|
onTriggered: qgcView.showDialog(editPositionDialog, qsTr("Edit Position"), qgcView.showDialogDefaultWidth, StandardButton.Cancel) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
MenuItem { |
|
|
|
|
text: qsTr("Load KML...") |
|
|
|
|
onTriggered: kmlLoadDialog.openForLoad() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
|
id: editPositionDialog |
|
|
|
|
|
|
|
|
|
EditPositionDialog { |
|
|
|
|
Component.onCompleted: coordinate = mapPolyline.path[menu._removeVertexIndex] |
|
|
|
|
onCoordinateChanged: mapPolyline.adjustVertex(menu._removeVertexIndex,coordinate) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
|
id: polylineComponent |
|
|
|
|
|
|
|
|
|
MapPolyline { |
|
|
|
|