/* * Copyright (C) 2013 by Neusoft * Author : Jia Zhao * */ import QtQuick 2.0 import "../../layoutList.js" as Layout import Label 2.0 /** * A window which size is 1024*600 . * contains background image and MouseArea */ Rectangle { id: window /** * type:string * * This property holds the source url for the window's background image. * It can be any image from any protocol supported by the Image element * * The default value is an empty url, which displays no background image. */ property alias windowImgSource: windowImg.source property string title : "" property bool bWithTitle: true property bool bShowPlayBtn: false signal signal_returnClick() signal signal_playClick() x: 0 y: 0 width: 960 height: 960 color: "#202020" property string imagePath: "/usr/bin/qml_link/images/AppLink/" /* Just a temp setting. change later for runtime skin change. songsz */ property int windowID: -1 Image { id: windowImg anchors.fill: parent source:systemCtrlLink.getBackGroundType() } HMIButton{ id: returnButton anchors.left: parent.left anchors.leftMargin: 0 anchors.top: parent.top anchors.topMargin: 5 btnImg: imagePath + "M8X_Back_Button.png" btnImgOnPressed:imagePath + "M8X_Back_Button_p.png" onClicked:{ signal_returnClick() } Image{ id:returnIcon anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 20 source: imagePath + "M8X_icon_Back.png" } HMILabel{ id:returnText anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 54 font.pixelSize:30 width:75 height:parent.height text:qsTr("返回") + applinkControl.qsEmptyString } } HMIButton{ id: playButton anchors.right: parent.right anchors.rightMargin: 0 anchors.top: parent.top anchors.topMargin: 4 btnImg: imagePath + "M8X_Back_Button.png" btnImgOnPressed:imagePath + "M8X_Back_Button_p.png" visible:bShowPlayBtn onClicked:{ if(2 != applinkControl.QML_GetSourceCtrlType()){ signal_playClick() } } App_LoadingHimalayan{ id:playIcon loadingPath: imagePath+"Type_O_Himalayan/O_01_Himalayan/" surname: "M8X_icon_Himalayan_piay_0" anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter } } HMILabel{ id: titleText visible: bWithTitle x:240 y:185-160 width: 480 height:30+4 font.pixelSize: 30 text: title verticalAlignment: Text.AlignTop } HMIWindowLine{ z:1 } /** * Undetermined...... * */ MouseArea{ id: window_mousearea z: -1 anchors.fill: parent } Connections{ target:applinkControl onSignalChangeBackground:{ windowImg.source = qstrPath } onSignalLinkAppVisibleStatus:{ if(visible && (1 === iShowStatus)){ windowImg.source = systemCtrlLink.getBackGroundType() } } } }