3 /* copyright (C) 2010-2012 Stuart Howarth */
8 property alias initialPage: initalPage.source
9 property Item currentPage: pageView.currentItem.item
10 property int index: pageView.currentIndex
13 return pageModel.children[pageView.currentIndex-1].item;
16 function push(item, immediate) {
17 var loader = pageModel.children[pageView.currentIndex + 1];
20 pageView.highlightMoveDuration = 0;
23 pageView.highlightMoveDuration = 200;
25 pageView.incrementCurrentIndex();
28 function pop(immediate) {
29 var i = pageView.currentIndex;
31 pageView.highlightMoveDuration = 0;
34 pageView.highlightMoveDuration = 300;
36 pageView.decrementCurrentIndex();
37 pageModel.children[i].source = "";
38 currentPage.taskMenu.close();
40 //root.currentPage.reloadMenu();
41 //mask.state = "idle";
44 function clear(immediate) {
46 pageView.highlightMoveDuration = 0;
49 pageView.highlightMoveDuration = 300;
51 pageView.currentIndex = 0;
52 for (var i = 1; i < pageModel.children.length; i++) {
53 pageModel.children[i].source = "";
57 function replace(item, immediate) {
59 root.push(item, immediate);
78 width: mainWindow.width
79 height: mainWindow.height
80 opacity: index == pageView.currentIndex ? 1 : 0
84 width: mainWindow.width
85 height: mainWindow.height
86 opacity: index == pageView.currentIndex ? 1 : 0
90 width: mainWindow.width
91 height: mainWindow.height
92 opacity: index == pageView.currentIndex ? 1 : 0
96 width: mainWindow.width
97 height: mainWindow.height
98 opacity: index == pageView.currentIndex ? 1 : 0
102 width: mainWindow.width
103 height: mainWindow.height
104 opacity: index == pageView.currentIndex ? 1 : 0
108 width: mainWindow.width
109 height: mainWindow.height
110 opacity: index == pageView.currentIndex ? 1 : 0
114 width: mainWindow.width
115 height: mainWindow.height
116 opacity: index == pageView.currentIndex ? 1 : 0
120 width: mainWindow.width
121 height: mainWindow.height
122 opacity: index == pageView.currentIndex ? 1 : 0
126 width: mainWindow.width
127 height: mainWindow.height
128 opacity: index == pageView.currentIndex ? 1 : 0
132 width: mainWindow.width
133 height: mainWindow.height
134 opacity: index == pageView.currentIndex ? 1 : 0
138 width: mainWindow.width
139 height: mainWindow.height
140 opacity: index == pageView.currentIndex ? 1 : 0
144 width: mainWindow.width
145 height: mainWindow.height
146 opacity: index == pageView.currentIndex ? 1 : 0
150 width: mainWindow.width
151 height: mainWindow.height
152 opacity: index == pageView.currentIndex ? 1 : 0
156 width: mainWindow.width
157 height: mainWindow.height
158 opacity: index == pageView.currentIndex ? 1 : 0
162 width: mainWindow.width
163 height: mainWindow.height
164 opacity: index == pageView.currentIndex ? 1 : 0
168 width: mainWindow.width
169 height: mainWindow.height
170 opacity: index == pageView.currentIndex ? 1 : 0
174 width: mainWindow.width
175 height: mainWindow.height
176 opacity: index == pageView.currentIndex ? 1 : 0
180 width: mainWindow.width
181 height: mainWindow.height
182 opacity: index == pageView.currentIndex ? 1 : 0
186 width: mainWindow.width
187 height: mainWindow.height
188 opacity: index == pageView.currentIndex ? 1 : 0
192 width: mainWindow.width
193 height: mainWindow.height
194 opacity: index == pageView.currentIndex ? 1 : 0
198 width: mainWindow.width
199 height: mainWindow.height
200 opacity: index == pageView.currentIndex ? 1 : 0
204 width: mainWindow.width
205 height: mainWindow.height
206 opacity: index == pageView.currentIndex ? 1 : 0
210 width: mainWindow.width
211 height: mainWindow.height
212 opacity: index == pageView.currentIndex ? 1 : 0
216 width: mainWindow.width
217 height: mainWindow.height
218 opacity: index == pageView.currentIndex ? 1 : 0
222 width: mainWindow.width
223 height: mainWindow.height
224 opacity: index == pageView.currentIndex ? 1 : 0
228 width: mainWindow.width
229 height: mainWindow.height
230 opacity: index == pageView.currentIndex ? 1 : 0
234 width: mainWindow.width
235 height: mainWindow.height
236 opacity: index == pageView.currentIndex ? 1 : 0
240 width: mainWindow.width
241 height: mainWindow.height
242 opacity: index == pageView.currentIndex ? 1 : 0
246 width: mainWindow.width
247 height: mainWindow.height
248 opacity: index == pageView.currentIndex ? 1 : 0
252 width: mainWindow.width
253 height: mainWindow.height
254 opacity: index == pageView.currentIndex ? 1 : 0
258 width: mainWindow.width
259 height: mainWindow.height
260 opacity: index == pageView.currentIndex ? 1 : 0
268 orientation: ListView.Horizontal
270 highlightMoveDuration: 100
275 PropertyChanges { target: root; opacity: 0.1 }
278 transitions: Transition {
279 PropertyAnimation { target: root; properties: "opacity"; duration: 300 }