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/>
19 import "Settings.js" as Settings
20 import "Themes.js" as Themes
26 anchors.verticalCenter: parent.verticalCenter
27 width: parent.width; height: parent.height;
28 x:-(parent.width * 1.5)
34 property alias theme: theme_manager.item
35 source: Themes.default_theme()
39 target: optionsscreen.parent
42 optionsscreen.state = "close";
43 optionsscreen.destroy(600);
49 anchors.fill: parent; anchors.bottomMargin: 16
59 width:rectangle1.width;
63 border.color: "#b57e8f"
70 font.family: "Nokia Sans"
72 anchors.verticalCenter: parent.verticalCenter
77 x:rectangle1.width-220
79 listModel.setProperty(index, "selected", switchedOn);
82 anchors.verticalCenter: parent.verticalCenter
91 Component.onCompleted: {
92 Settings.restore(listModel);
93 var cdx = Settings.chedoxoay();
94 ROOT.initScreenOrientation(cdx);
100 anchors.fill: parent;anchors.topMargin: 45;anchors.leftMargin: 0;
102 delegate: listDelegate
110 width : optionsscreen.width
119 anchors { horizontalCenter: optionsscreen.horizontalCenter; top: optionsscreen.top; topMargin: 10 }
128 id: toolBar; height: 42;
131 button1Label: "Đồng Ý"
132 button2Label: "Hủy Bỏ"
135 Settings.save(listModel)
136 optionsscreen.close();
138 var cdx = Settings.chedoxoay();
139 ROOT.initScreenOrientation(cdx);
142 Settings.restore(listModel)
143 optionsscreen.close();
150 AnchorChanges { target: optionsscreen; anchors.right: parent.right }
154 AnchorChanges { target: optionsscreen; anchors.right: parent.left }
158 transitions: Transition {
159 AnchorAnimation { easing.type: Easing.OutQuart; duration: 300 }