9d9ab394e9ea014fb494bc8a7391e1ac08ab2ef7
[vietkaralist] / qml / vietkaralist / AboutDlg.qml
1 /*
2 Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>
16 */
17
18 import QtQuick 1.1
19
20 Item{
21
22     id: aboutdlg
23
24     anchors.verticalCenter: parent.verticalCenter
25     width: parent.width; height: parent.height;
26     x:-(parent.width * 1.5)
27
28     signal close
29
30     Connections {
31         target: aboutdlg.parent
32
33         onDialogClose: {
34             aboutdlg.state = "close";
35             aboutdlg.destroy(600);
36             }
37         }
38
39
40     Rectangle {
41         id: rectangle1
42         anchors.fill: parent; anchors.bottomMargin: 0
43         visible: true
44         opacity:0.8
45
46         Image {
47             id: image1
48             x: 0
49             y: 53
50
51             anchors.horizontalCenter: parent.horizontalCenter
52             source: "imgs/app_icon.png"
53
54         Text {
55             id: text1
56             x: 11
57             y: 91
58             height: 20
59             text: "Việt Nam Karaoke Song List<br> OS: Maemo 5 (Fremantle)"
60             anchors.horizontalCenterOffset: 1
61             font.bold: true
62             anchors.horizontalCenter: parent.horizontalCenter
63             horizontalAlignment: Text.AlignHCenter
64             verticalAlignment: Text.AlignVCenter
65             font.pixelSize: 20
66             }
67
68         Text {
69             id: text2
70             x: 10
71             y: 154
72             height: 20
73             text: "Phiên bản : 0.0.1 (18/09/2011)<br>\
74 Phát triển bởi : <a href='mailto:metacuong@gmail.com'>metacuong@gmail.com</a>"
75             anchors.horizontalCenterOffset: 0
76             wrapMode: Text.NoWrap
77             verticalAlignment: Text.AlignVCenter
78             horizontalAlignment: Text.AlignHCenter
79             anchors.horizontalCenter: parent.horizontalCenter
80             font.pixelSize: 22
81             }
82
83
84         }
85
86     Rectangle {
87         width : aboutdlg.width
88         height: 50
89         color:"grey"
90         opacity: 0.5
91
92         MenuButton{
93            id:btn_about
94            source: "imgs/back.png"
95            x:parent.width-50
96
97            onClicked: {
98                aboutdlg.close()
99            }
100
101         }
102     }
103
104     }
105
106     Text {
107         id: title
108
109         anchors { horizontalCenter: parent.horizontalCenter; top: aboutdlg.top; topMargin: 10 }
110
111         y:6
112
113         font.pixelSize: 22
114         color: "black"
115         text: qsTr("About")
116         smooth: true
117         font.bold: true
118         }
119
120     states: [
121         State{
122             name:"show"
123             AnchorChanges { target: aboutdlg; anchors.right: parent.right }
124         },
125         State {
126             name: "close"
127             AnchorChanges { target: aboutdlg; anchors.right: parent.left }
128         }
129     ]
130
131     transitions: [Transition {
132         AnchorAnimation { easing.type: Easing.OutQuart; duration: 300 }
133         }
134     ]
135
136 }