|
|
|
@ -349,13 +349,11 @@ Item {
@@ -349,13 +349,11 @@ Item {
|
|
|
|
|
//-- System Message Area |
|
|
|
|
Rectangle { |
|
|
|
|
id: messageArea |
|
|
|
|
|
|
|
|
|
function close() { |
|
|
|
|
currentPopUp = null |
|
|
|
|
messageText.text = "" |
|
|
|
|
messageArea.visible = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
width: mainWindow.width * 0.5 |
|
|
|
|
height: mainWindow.height * 0.5 |
|
|
|
|
color: Qt.rgba(0,0,0,0.8) |
|
|
|
@ -366,6 +364,13 @@ Item {
@@ -366,6 +364,13 @@ Item {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.topMargin: tbHeight + ScreenTools.defaultFontPixelHeight |
|
|
|
|
MouseArea { |
|
|
|
|
// This MouseArea prevents the Map below it from getting Mouse events. Without this |
|
|
|
|
// things like mousewheel will scroll the Flickable and then scroll the map as well. |
|
|
|
|
anchors.fill: parent |
|
|
|
|
preventStealing: true |
|
|
|
|
onWheel: wheel.accepted = true |
|
|
|
|
} |
|
|
|
|
QGCFlickable { |
|
|
|
|
id: messageFlick |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
@ -383,7 +388,7 @@ Item {
@@ -383,7 +388,7 @@ Item {
|
|
|
|
|
} |
|
|
|
|
//-- Dismiss System Message |
|
|
|
|
Image { |
|
|
|
|
//anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight * 0.5 |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
width: ScreenTools.isTinyScreen ? ScreenTools.defaultFontPixelHeight * 1.5 : ScreenTools.defaultFontPixelHeight |
|
|
|
@ -400,7 +405,30 @@ Item {
@@ -400,7 +405,30 @@ Item {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//-- Clear Messages |
|
|
|
|
Image { |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight * 0.5 |
|
|
|
|
height: ScreenTools.isTinyScreen ? ScreenTools.defaultFontPixelHeight * 1.5 : ScreenTools.defaultFontPixelHeight |
|
|
|
|
width: height |
|
|
|
|
sourceSize.height: height |
|
|
|
|
source: "/res/TrashDelete.svg" |
|
|
|
|
fillMode: Image.PreserveAspectFit |
|
|
|
|
mipmap: true |
|
|
|
|
smooth: true |
|
|
|
|
MouseArea { |
|
|
|
|
anchors.fill: parent |
|
|
|
|
onClicked: { |
|
|
|
|
if(QGroundControl.multiVehicleManager.activeVehicleAvailable) { |
|
|
|
|
activeVehicle.clearMessages(); |
|
|
|
|
messageArea.close() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------- |
|
|
|
|
//-- Critical Message Area |
|
|
|
|
Rectangle { |
|
|
|
@ -468,7 +496,7 @@ Item {
@@ -468,7 +496,7 @@ Item {
|
|
|
|
|
//-- Dismiss Critical Message |
|
|
|
|
QGCColoredImage { |
|
|
|
|
id: criticalClose |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight * 0.5 |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
width: ScreenTools.isTinyScreen ? ScreenTools.defaultFontPixelHeight * 1.5 : ScreenTools.defaultFontPixelHeight |
|
|
|
@ -487,7 +515,7 @@ Item {
@@ -487,7 +515,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
//-- More text below indicator |
|
|
|
|
QGCColoredImage { |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight * 0.5 |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
width: ScreenTools.isTinyScreen ? ScreenTools.defaultFontPixelHeight * 1.5 : ScreenTools.defaultFontPixelHeight |
|
|
|
|