Unverified Commit ed56b760 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8121 from DonLakeFlyer/ToolStripFlyPlan

Remove Fly/Plan from toolstrips
parents 112580d8 76850a9e
...@@ -593,12 +593,12 @@ Item { ...@@ -593,12 +593,12 @@ Item {
] ]
model: [ model: [
{ /*{
name: "Plan", name: "Plan",
iconSource: "/qmlimages/Plan.svg", iconSource: "/qmlimages/Plan.svg",
buttonVisible: true, buttonVisible: true,
buttonEnabled: true, buttonEnabled: true,
}, },*/
{ {
name: "Checklist", name: "Checklist",
iconSource: "/qmlimages/check.svg", iconSource: "/qmlimages/check.svg",
...@@ -644,9 +644,10 @@ Item { ...@@ -644,9 +644,10 @@ Item {
onClicked: { onClicked: {
guidedActionsController.closeAll() guidedActionsController.closeAll()
if(index === 0) { /*if(index === 0) {
mainWindow.showPlanView() mainWindow.showPlanView()
} else if(index === 1) { } else*/
if(index === 0) {
checklistDropPanel.open() checklistDropPanel.open()
} else { } else {
var action = model[index].action var action = model[index].action
......
...@@ -542,25 +542,25 @@ Item { ...@@ -542,25 +542,25 @@ Item {
z: QGroundControl.zOrderWidgets z: QGroundControl.zOrderWidgets
maxHeight: parent.height - toolStrip.y maxHeight: parent.height - toolStrip.y
readonly property int flyButtonIndex: 0 //readonly property int flyButtonIndex: 0
readonly property int fileButtonIndex: 1 readonly property int fileButtonIndex: 0
readonly property int takeoffButtonIndex: 2 readonly property int takeoffButtonIndex: 1
readonly property int waypointButtonIndex: 3 readonly property int waypointButtonIndex: 2
readonly property int roiButtonIndex: 4 readonly property int roiButtonIndex: 3
readonly property int patternButtonIndex: 5 readonly property int patternButtonIndex: 4
readonly property int landButtonIndex: 6 readonly property int landButtonIndex: 5
readonly property int centerButtonIndex: 7 readonly property int centerButtonIndex: 6
property bool _isRallyLayer: _editingLayer == _layerRallyPoints property bool _isRallyLayer: _editingLayer == _layerRallyPoints
property bool _isMissionLayer: _editingLayer == _layerMission property bool _isMissionLayer: _editingLayer == _layerMission
model: [ model: [
{ /*{
name: qsTr("Fly"), name: qsTr("Fly"),
iconSource: "/qmlimages/PaperPlane.svg", iconSource: "/qmlimages/PaperPlane.svg",
buttonEnabled: true, buttonEnabled: true,
buttonVisible: true, buttonVisible: true,
}, },*/
{ {
name: qsTr("File"), name: qsTr("File"),
iconSource: "/qmlimages/MapSync.svg", iconSource: "/qmlimages/MapSync.svg",
...@@ -620,9 +620,9 @@ Item { ...@@ -620,9 +620,9 @@ Item {
onClicked: { onClicked: {
switch (index) { switch (index) {
case flyButtonIndex: /*case flyButtonIndex:
mainWindow.showFlyView() mainWindow.showFlyView()
break break*/
case takeoffButtonIndex: case takeoffButtonIndex:
allAddClickBoolsOff() allAddClickBoolsOff()
_missionController.insertTakeoffItem(mapCenter(), _missionController.currentMissionIndex, true /* makeCurrentItem */) _missionController.insertTakeoffItem(mapCenter(), _missionController.currentMissionIndex, true /* makeCurrentItem */)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment