blob: 4467c6c947a3672485005364823f730349ec0414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
/*
* Copyright (C) 2013 by Neusoft
* Author : Jia Zhao <zhao-jia@neusoft.com>
*
*/
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
}
}
|