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/>
18 import "../DatePicker/component" as Comp
20 import "Themes.js" as Themes
21 import "main.js" as Script
26 anchors.verticalCenter: parent.verticalCenter
27 width: parent.width; height: parent.height;
28 x:(parent.width * 1.5)
32 property alias theme: theme_manager.item
33 source: Themes.default_theme()
42 anchors.centerIn: parent
47 border.color: "#b57e8f"
56 property int mDay: Script.curDay
57 property int mMonth: Script.curMonth
58 property int mYear: Script.curYear
59 anchors.centerIn: parent
70 anchors.right: parent.right; anchors.rightMargin: 102; y: 185; width: 140; height: 40
74 LC.reset(datePicker.mDay,datePicker.mMonth,datePicker.mYear)
75 Script.calculateLunar(datePicker.mDay,datePicker.mMonth,datePicker.mYear)
76 Script.state="mainscreen"
89 anchors.rightMargin: 56
91 datetimedlg.state="close";
92 datetimedlg.toolbar();
99 dateReel.month_reset()
100 dateReel.year_reset()
106 AnchorChanges { target: datetimedlg; anchors.right: parent.right }
110 AnchorChanges { target: datetimedlg; anchors.right: parent.left }
114 transitions: Transition {
115 AnchorAnimation { easing.type: Easing.OutQuart; duration: 300 }