import QtQuick 2.0 import Label 2.0 import "../../com/neusoft/auto/widgets" import "../../eventsList.js" as EventsList import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList HMIMask { id:screenshot_result widowsType:Layout.MESSAGE_TYPE width:960 height:1280 property int screenShotRes: diagCtrl.iScreenShotRes property string bgImageStyle: systemCtrl.style onVisibleChanged: { if (screenshot_result.visible == true) { if (screenShotRes == 0) { popResultText.text = "Screen Shot Success!" popResult.visible = true } else if (screenShotRes == 1) { popResultText.text = "Screen Shot Failed!" popResult.visible = true } else if (screenShotRes == 2) { popResultText.text = "Flash is full!" popResult.visible = true } else if (screenShotRes == 4) //add by zhangna for unsuport device { popResultText.text = "Unsupported device!" popResult.visible = true } else { popResultText.text = "Screen Shot Switch is OFF!" popResult.visible = true } timer_1.start() } else { } } Item { id:popResult anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter Image { width: 844 height: 352 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING" + bgImageStyle Rectangle { anchors.fill: parent color: "black" } HMILabel { id:popResultText width: 844 height: 352 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter text:qsTr("No image in Flash!") color:"red" } HMIMouseArea { anchors.fill: parent onClicked: { ScreenManager.hideOverlay(WindowsList.DIAG_SCREENSHOT_OK) timer_1.stop() } } } } HMIMouseArea { anchors.fill: parent onClicked: { ScreenManager.hideOverlay(WindowsList.DIAG_SCREENSHOT_OK) } } Timer { id:timer_1 interval: 4000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_SCREENSHOT_OK) } } }