projects
/
lichviet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added global controller andalso filebrowser qml
[lichviet]
/
qml
/
LichViet
/
MenuScreen.qml
diff --git
a/qml/LichViet/MenuScreen.qml
b/qml/LichViet/MenuScreen.qml
index
ae0c5bd
..
c654e55
100644
(file)
--- a/
qml/LichViet/MenuScreen.qml
+++ b/
qml/LichViet/MenuScreen.qml
@@
-3,7
+3,7
@@
Copyright (C) 2011 by Cuong Le <metacuong@gmail.com>
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
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,
(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 <http://www.gnu.org/licenses/>
import QtQuick 1.0
Item{
import QtQuick 1.0
Item{
+
+ id:menuscreen
+
Rectangle {
id: rectangle1
Rectangle {
id: rectangle1
- anchors.fill: parent; anchors.bottomMargin: 0
+ anchors.fill: parent; anchors.bottomMargin: 16
visible: true
opacity:0.9
visible: true
opacity:0.9
@@
-28,15
+31,13
@@
Item{
id: listDelegate
Rectangle {
height:65
id: listDelegate
Rectangle {
height:65
- Button {
- id: button1
+ MenuButton {
y: 3; width: parent.parent.width; height: 60
onClicked: {
getText(idm)
}
y: 3; width: parent.parent.width; height: 60
onClicked: {
getText(idm)
}
-
- focus:true
text: name
text: name
+ tip: title
}
}
}
}
}
}
@@
-45,31
+46,34
@@
Item{
id: listModel
ListElement {
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 {
}
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 {
}
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 {
}
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 {
}
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 {
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
}
}
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
model: listModel
delegate: listDelegate
focus: true
@@
-77,7
+81,8
@@
Item{
}
}
- ToolBarSingle { id: toolBar; height: 50;
+ ToolBarSingle {
+ id: toolBar; height: 50;
y: screen.height-78
width: parent.width;
button1Label: "Quay Về"
y: screen.height-78
width: parent.width;
button1Label: "Quay Về"
@@
-96,13
+101,18
@@
Item{
case 5: screen.state="xemtheothang";break;
case 6: screen.state="aboutdialog";break;
case 7: screen.state="changetheme";break;
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)
+ }
+
+
}
}