X-Git-Url: http://git.maemo.org/git/?p=lichviet;a=blobdiff_plain;f=qml%2FLichViet%2FAbout.qml;h=01a5bddf10051902f153e678b02ef7ee18f9d2d4;hp=c8cdd6616cba39e8e3ddef4a3d47924d9a3d1736;hb=c37371da2f046d1a0ada7a7ab8e3f72ba0c2341f;hpb=0527c61e3bdd3540dbe553e87e24081fe54f6b15 diff --git a/qml/LichViet/About.qml b/qml/LichViet/About.qml index c8cdd66..01a5bdd 100644 --- a/qml/LichViet/About.qml +++ b/qml/LichViet/About.qml @@ -14,83 +14,141 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see */ -import QtQuick 1.0 +import QtQuick 1.1 + +import "Themes.js" as Themes Item{ - id: item1 + + id: aboutdlg + + anchors.verticalCenter: parent.verticalCenter + width: parent.width; height: parent.height; + x:(parent.width * 1.5) + + signal close + + Loader { + id: theme_manager + property alias theme: theme_manager.item + source: Themes.default_theme() + } + + Connections { + target: aboutdlg.parent + + onDialogClose: { + aboutdlg.state = "close"; + aboutdlg.destroy(600); + } + } + + Rectangle { id: rectangle1 anchors.fill: parent; anchors.bottomMargin: 0 visible: true opacity:0.8 - - Image { - id: image1 - x: 0 - y: 43 - width: 100 - height: 100 - anchors.horizontalCenterOffset: 0 - anchors.horizontalCenter: parent.horizontalCenter - source: "qrc:/LichViet.png" - + + Image { + id: image1 + x: 0 + y: 43 + width: 100 + height: 100 + anchors.horizontalCenterOffset: 0 + anchors.horizontalCenter: parent.horizontalCenter + source: "qrc:/LichViet.png" + + Text { + id: text3 + x: 10 + y: 261 + width: 80 + height: 20 + text: "Chương trình có tham khảo thuật toán tính
Âm Lịch của tác giả Hồ Ngọc Đức.
http://www.informatik.uni-leipzig.de/~duc/amlich/" + anchors.horizontalCenterOffset: 0 + anchors.horizontalCenter: parent.horizontalCenter + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + font.pixelSize: 16 + } + } + + Text { + id: text1 + x: 11 + y: 171 + width: 80 + height: 20 + text: "Lịch Âm Việt Nam
OS: Maemo 5 (Fremantle)" + anchors.horizontalCenterOffset: 1 + font.bold: true + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + font.pixelSize: 23 + } + Text { - id: text3 + id: text2 x: 10 - y: 261 + y: 234 width: 80 height: 20 - text: "Chương trình có tham khảo thuật toán tính
Âm Lịch của tác giả Hồ Ngọc Đức.
http://www.informatik.uni-leipzig.de/~duc/amlich/" + text: "Phiên bản : 1.0.2-4 (15/09/2011)
\ +Phát triển bởi : metacuong@gmail.com" anchors.horizontalCenterOffset: 0 - anchors.horizontalCenter: parent.horizontalCenter + wrapMode: Text.NoWrap verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter - font.pixelSize: 16 + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: 24 + } + + } - } + Rectangle { + width : aboutdlg.width + height: 45 + color:"white" + opacity: 0.5 + } + Text { - id: text1 - x: 11 - y: 171 - width: 80 - height: 20 - text: "Lịch Âm Việt Nam
OS: Maemo 5" - anchors.horizontalCenterOffset: 1 + id: title + + anchors { horizontalCenter: aboutdlg.horizontalCenter; top: aboutdlg.top; topMargin: 10 } + font.pixelSize: 22 + color: "black" + text: qsTr("About") + smooth: true font.bold: true - anchors.horizontalCenter: parent.horizontalCenter - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - font.pixelSize: 26 - } - - Text { - id: text2 - x: 10 - y: 234 - width: 80 - height: 20 - text: "Phiên bản : 1.0.2-4 (13/09/2011)
\ -Phát triển bởi : metacuong@gmail.com" -anchors.horizontalCenterOffset: 0 -wrapMode: Text.NoWrap - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - anchors.horizontalCenter: parent.horizontalCenter - font.pixelSize: 24 - } - - -} - - ToolBarSingle { id: toolBar; height: 50; - y: screen.height-78 + } + + + ToolBarSingle { + id: toolBar; height: 42; + y: parent.height-52 width: parent.width; button1Label: "Quay Về" - onButton1Clicked: - { - screen.state="mainscreen" + onButton1Clicked:aboutdlg.close() } + + states: [ + State { + name: "show" + AnchorChanges { target: aboutdlg; anchors.right: parent.right } + }, + State { + name: "close" + AnchorChanges { target: aboutdlg; anchors.right: parent.left } + } + ] + + transitions: Transition { + AnchorAnimation { easing.type: Easing.OutQuart; duration: 300 } + } + } - -}