mainWindow.showDialog(applyNewAltitude,qsTr("Apply new alititude"),mainWindow.showDialogDefaultWidth,StandardButton.Yes|StandardButton.No)
mainWindow.showDialog(applyNewAltitude,qsTr("Apply new alititude"),mainWindow.showDialogDefaultWidth,StandardButton.Yes|StandardButton.No)
...
@@ -138,10 +130,8 @@ Item {
...
@@ -138,10 +130,8 @@ Item {
Component{
Component{
id:applyNewAltitude
id:applyNewAltitude
QGCViewMessage{
QGCViewMessage{
message:qsTr("You have changed the default altitude for mission items. Would you like to apply that altitude to all the items in the current mission?")
message:qsTr("You have changed the default altitude for mission items. Would you like to apply that altitude to all the items in the current mission?")
functionaccept(){
functionaccept(){
hideDialog()
hideDialog()
_missionController.applyDefaultMissionAltitude()
_missionController.applyDefaultMissionAltitude()
...
@@ -151,25 +141,20 @@ Item {
...
@@ -151,25 +141,20 @@ Item {
Component{
Component{
id:activeMissionUploadDialogComponent
id:activeMissionUploadDialogComponent
QGCViewDialog{
QGCViewDialog{
Column{
Column{
anchors.fill:parent
anchors.fill:parent
spacing:ScreenTools.defaultFontPixelHeight
spacing:ScreenTools.defaultFontPixelHeight
QGCLabel{
QGCLabel{
width:parent.width
width:parent.width
wrapMode:Text.WordWrap
wrapMode:Text.WordWrap
text:qsTr("Your vehicle is currently flying a mission. In order to upload a new or modified mission the current mission will be paused.")
text:qsTr("Your vehicle is currently flying a mission. In order to upload a new or modified mission the current mission will be paused.")
}
}
QGCLabel{
QGCLabel{
width:parent.width
width:parent.width
wrapMode:Text.WordWrap
wrapMode:Text.WordWrap
text:qsTr("After the mission is uploaded you can adjust the current waypoint and start the mission.")
text:qsTr("After the mission is uploaded you can adjust the current waypoint and start the mission.")