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 3 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/>
19 import "Settings.js" as Settings
25 anchors.fill: parent; anchors.bottomMargin: 0
37 font.family: "Nokia Sans"
39 anchors.verticalCenter: parent.verticalCenter
44 x:rectangle1.width-220
46 listModel.setProperty(index, "selected", switchedOn);
52 anchors.verticalCenter: parent.verticalCenter
59 Component.onCompleted: {
60 Settings.restore(listModel);
61 var cdx = Settings.chedoxoay();
62 ROOT.initScreenOrientation(cdx);
68 anchors.fill: parent;anchors.topMargin: 45;anchors.leftMargin: 0;
70 delegate: listDelegate
76 ToolBar { id: toolBar; height: 50;
79 button1Label: "Đồng Ý"
80 button2Label: "Hủy Bỏ"
83 Settings.save(listModel)
84 screen.state="mainscreen"
86 var cdx = Settings.chedoxoay();
87 ROOT.initScreenOrientation(cdx);
90 Settings.restore(listModel)
91 screen.state="mainscreen"
96 Transition { NumberAnimation { properties: "x,y,opacity"; duration: 500; easing.type: Easing.InOutBack } }