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,
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
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
}
}
}
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:7; name: "Đổi Theme";
- }*/
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
}
- ToolBarSingle { id: toolBar; height: 50;
+ ToolBarSingle {
+ id: toolBar; height: 50;
y: screen.height-78
width: parent.width;
button1Label: "Quay Về"
case 5: screen.state="xemtheothang";break;
case 6: screen.state="aboutdialog";break;
case 7: screen.state="changetheme";break;
- default:
- screen.state="nofeaturedialog";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)
+ }
+
+
}