2 Copyright (C) 2011 by Cuong Le <metacuong@gmail.com>
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.
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.
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/>
20 import "Themes.js" as Themes
26 anchors.verticalCenter: parent.verticalCenter
27 width: parent.width; height: parent.height;
28 x:-(parent.width * 1.5)
31 signal item_click(int pos)
35 property alias theme: theme_manager.item
36 source: Themes.default_theme()
40 target: menuscreen.parent
43 menuscreen.state = "close";
44 menuscreen.destroy(600);
50 anchors.fill: parent; anchors.bottomMargin: 0;
59 y: 3; width: parent.parent.width; height: 60
73 idm:1;name: "Hôm Nay";title:"Chuyển nhanh đến ngày hôm nay"
76 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"
79 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"
82 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ú, ..."
85 idm:5; name: "Xem Theo Tháng";title:"Xem ngày Dương Lịch/Âm Lịch dưới dạng tháng"
88 idm:7; name: "Đổi Theme";title:"Thay đổi theme, hình nền, ..."
91 idm:8; name: "Đổi Hình Nền";title:"/opt/bar/load.jpg"
94 idm:6; name: "Giới Thiệu";title:"..."
100 anchors.fill: parent;anchors.topMargin: 45;anchors.leftMargin: 5;anchors.rightMargin: 5;anchors.bottomMargin: 55
102 delegate: listDelegate
109 width : menuscreen.width
118 anchors { horizontalCenter: menuscreen.horizontalCenter; top: menuscreen.top; topMargin: 10 }
128 id: toolBar; height: 42;
131 button1Label: "Quay Về"
132 onButton1Clicked:menuscreen.close()
136 function getText(id) {
138 case 1:screen.reset();break;
139 case 2: screen.state="amdatetimedialog";break;
140 case 3: screen.state="datetimedialog";break;
141 case 4: screen.state="xemngaytotxauhoangdao";break;
142 case 5: screen.state="xemtheothang";break;
143 case 6: menuscreen.close();screen.state="aboutdialog";break;
144 case 7: screen.state="changetheme";break;
145 case 8: screen.state="filebrowser";break;
148 menuscreen.item_click(id);
154 AnchorChanges { target: menuscreen; anchors.right: parent.right }
158 AnchorChanges { target: menuscreen; anchors.right: parent.left }
162 transitions: Transition {
163 AnchorAnimation { easing.type: Easing.OutQuart; duration: 300 }