|
|
@ -544,16 +544,22 @@ Item { |
|
|
|
anchors.topMargin: _toolButtonTopMargin + anchors.leftMargin |
|
|
|
anchors.topMargin: _toolButtonTopMargin + anchors.leftMargin |
|
|
|
anchors.top: parent.top |
|
|
|
anchors.top: parent.top |
|
|
|
z: QGroundControl.zOrderWidgets |
|
|
|
z: QGroundControl.zOrderWidgets |
|
|
|
showAlternateIcon: [ _planMasterController.dirty, false, false, false, false, false, false ] |
|
|
|
|
|
|
|
rotateImage: [ _planMasterController.syncInProgress, false, false, false, false, false, false ] |
|
|
|
showAlternateIcon: [ false, _planMasterController.dirty, false, false, false, false, false, false ] |
|
|
|
animateImage: [ _planMasterController.dirty, false, false, false, false, false, false ] |
|
|
|
rotateImage: [ false, _planMasterController.syncInProgress, false, false, false, false, false, false ] |
|
|
|
buttonEnabled: [ !_planMasterController.syncInProgress, true, true, true, true, true, true ] |
|
|
|
animateImage: [ false, _planMasterController.dirty, false, false, false, false, false, false ] |
|
|
|
buttonVisible: [ true, true, _waypointsOnlyMode, true, true, _showZoom, _showZoom ] |
|
|
|
buttonEnabled: [ true, !_planMasterController.syncInProgress, true, true, true, true, true, true ] |
|
|
|
|
|
|
|
buttonVisible: [ true, true, true, _waypointsOnlyMode, true, true, false, false ] |
|
|
|
maxHeight: mapScale.y - toolStrip.y |
|
|
|
maxHeight: mapScale.y - toolStrip.y |
|
|
|
|
|
|
|
|
|
|
|
property bool _showZoom: !ScreenTools.isMobile |
|
|
|
property bool _showZoom: !ScreenTools.isMobile |
|
|
|
|
|
|
|
|
|
|
|
model: [ |
|
|
|
model: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
name: qsTr("Fly"), |
|
|
|
|
|
|
|
iconSource: "/qmlimages/PaperPlane.svg", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
name: qsTr("File"), |
|
|
|
name: qsTr("File"), |
|
|
|
iconSource: "/qmlimages/MapSync.svg", |
|
|
|
iconSource: "/qmlimages/MapSync.svg", |
|
|
|
alternateIconSource: "/qmlimages/MapSyncChanged.svg", |
|
|
|
alternateIconSource: "/qmlimages/MapSyncChanged.svg", |
|
|
@ -591,25 +597,28 @@ Item { |
|
|
|
|
|
|
|
|
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
switch (index) { |
|
|
|
switch (index) { |
|
|
|
case 1: |
|
|
|
case 0: |
|
|
|
_addWaypointOnClick = checked |
|
|
|
mainWindow.showFlyView() |
|
|
|
_addROIOnClick = false |
|
|
|
break; |
|
|
|
break |
|
|
|
case 2: |
|
|
|
case 2: |
|
|
|
_addWaypointOnClick = checked |
|
|
|
_addROIOnClick = checked |
|
|
|
_addROIOnClick = false |
|
|
|
_addWaypointOnClick = false |
|
|
|
break |
|
|
|
break |
|
|
|
case 3: |
|
|
|
case 3: |
|
|
|
_addROIOnClick = checked |
|
|
|
if (_singleComplexItem) { |
|
|
|
_addWaypointOnClick = false |
|
|
|
addComplexItem(_missionController.complexMissionItemNames[0]) |
|
|
|
break |
|
|
|
} |
|
|
|
case 4: |
|
|
|
break |
|
|
|
if (_singleComplexItem) { |
|
|
|
case 5: |
|
|
|
addComplexItem(_missionController.complexMissionItemNames[0]) |
|
|
|
editorMap.zoomLevel += 0.5 |
|
|
|
} |
|
|
|
break |
|
|
|
break |
|
|
|
case 6: |
|
|
|
case 6: |
|
|
|
editorMap.zoomLevel -= 0.5 |
|
|
|
editorMap.zoomLevel += 0.5 |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
case 7: |
|
|
|
|
|
|
|
editorMap.zoomLevel -= 0.5 |
|
|
|
|
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|