X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=qml%2FLichViet%2FMenuScreen.qml;h=c654e5525351e49bc4a4c9bfaefb5495373070f2;hb=bebe39d38728cb4fcc9600bd65298fbef84ee7ee;hp=f51130219a4c0b8d9a1fa7f69c06478a0ffd6bed;hpb=91ba4aedbbc9a637fd7842c2a0fd2615aedd08e3;p=lichviet diff --git a/qml/LichViet/MenuScreen.qml b/qml/LichViet/MenuScreen.qml index f511302..c654e55 100644 --- a/qml/LichViet/MenuScreen.qml +++ b/qml/LichViet/MenuScreen.qml @@ -3,7 +3,7 @@ Copyright (C) 2011 by Cuong Le This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or +the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,9 +18,12 @@ along with this program. If not, see import QtQuick 1.0 Item{ + + id:menuscreen + Rectangle { id: rectangle1 - anchors.fill: parent; anchors.bottomMargin: 0 + anchors.fill: parent; anchors.bottomMargin: 16 visible: true opacity:0.9 @@ -28,15 +31,13 @@ Item{ id: listDelegate Rectangle { height:65 - Button { - id: button1 + MenuButton { y: 3; width: parent.parent.width; height: 60 onClicked: { getText(idm) } - - focus:true text: name + tip: title } } } @@ -45,28 +46,34 @@ Item{ id: listModel ListElement { - idm:1;name: "Hôm Nay"; + idm:1;name: "Hôm Nay";title:"Chuyển nhanh đến ngày hôm nay" + } + ListElement { + idm:2; name: "Tới Ngày Âm Lịch";title:"Chọn ngày tháng năm Âm Lịch để chuyển tới" } ListElement { - idm:2; name: "Tới Ngày Âm"; + idm:3;name: "Tới Ngày Dương Lịch";title:"Chọn ngày tháng năm Dương lịch để chuyến tới" } ListElement { - idm:3;name: "Tới Ngày Dương"; + idm:4; name: "Xem Ngày Tốt/Xấu, Hoàng Đạo ...";title:"Giờ hòang đạo, sao tốt, sao xấu, nhị thập bát tú, ..." } ListElement { - idm:4; name: "Xem Ngày Tốt/Xấu, Hoàng Đạo ..."; + idm:5; name: "Xem Theo Tháng";title:"Xem ngày Dương Lịch/Âm Lịch dưới dạng tháng" } ListElement { - idm:5; name: "Xem Theo Tháng"; + idm:7; name: "Đổi Theme";title:"Thay đổi theme, hình nền, ..." } ListElement { - idm:6; name: "Giới Thiệu"; + idm:8; name: "Đổi Hình Nền";title:"/opt/bar/load.jpg" + } + ListElement { + idm:6; name: "Giới Thiệu";title:"..." } } ListView { id: listView - anchors.fill: parent;anchors.topMargin: 35;anchors.leftMargin: 5;anchors.rightMargin: 5; + anchors.fill: parent;anchors.topMargin: 35;anchors.leftMargin: 5;anchors.rightMargin: 5;anchors.bottomMargin: 12 model: listModel delegate: listDelegate focus: true @@ -74,7 +81,8 @@ Item{ } - ToolBarSingle { id: toolBar; height: 50; + ToolBarSingle { + id: toolBar; height: 50; y: screen.height-78 width: parent.width; button1Label: "Quay Về" @@ -92,13 +100,19 @@ Item{ case 4: screen.state="xemngaytotxauhoangdao";break; case 5: screen.state="xemtheothang";break; case 6: screen.state="aboutdialog";break; - default: - screen.state="nofeaturedialog" + case 7: screen.state="changetheme";break; + case 8: screen.state="filebrowser";break; } } - transitions: [ - Transition { NumberAnimation { properties: "x,y,opacity"; duration: 500; easing.type: Easing.InOutBack } } - ] + FileBrowser{ + id: fileBrowser + state:"filebrowser" + anchors.verticalCenter: parent.verticalCenter + width: parent.width; height: parent.height-60; + x: -(screen.width * 1.5) + } + + }