/* * 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: 956 color: "#202020" property string imagePath: "/usr/bin/qml_link_upgrade/images/AppLink/" /* Just a temp setting. change later for runtime skin change. songsz */ property int windowID: -1 Image { id: windowImg anchors.fill: parent } HMIButton{ id: returnButton anchors.left: parent.left anchors.leftMargin: 0 anchors.top: parent.top anchors.topMargin: 4 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: 61 font.pixelSize:30 height:30*1.5 width:30*2 text:"返回" } } 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:{ signal_playClick() } Image{ id:playIcon anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter source: imagePath + "M8X_icon_Himalayan_piay.png" } } HMILabel{ id: titleText visible: bWithTitle anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: returnButton.verticalCenter height: returnButton.height width: 480 font.family: "微软雅黑" color: "#FFFFFF" font.pixelSize: 30 text: title } /** * Undetermined...... * */ MouseArea{ id: window_mousearea z: -1 anchors.fill: parent } }