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();
41 function clear(immediate) {
43 pageView.highlightMoveDuration = 0;
46 pageView.highlightMoveDuration = 300;
48 pageView.currentIndex = 0;
49 for (var i = 1; i < pageModel.children.length; i++) {
50 pageModel.children[i].source = "";
54 function replace(item, immediate) {
56 root.push(item, immediate);
75 width: mainWindow.width
76 height: mainWindow.height
77 opacity: index == pageView.currentIndex ? 1 : 0
81 width: mainWindow.width
82 height: mainWindow.height
83 opacity: index == pageView.currentIndex ? 1 : 0
87 width: mainWindow.width
88 height: mainWindow.height
89 opacity: index == pageView.currentIndex ? 1 : 0
93 width: mainWindow.width
94 height: mainWindow.height
95 opacity: index == pageView.currentIndex ? 1 : 0
99 width: mainWindow.width
100 height: mainWindow.height
101 opacity: index == pageView.currentIndex ? 1 : 0
105 width: mainWindow.width
106 height: mainWindow.height
107 opacity: index == pageView.currentIndex ? 1 : 0
111 width: mainWindow.width
112 height: mainWindow.height
113 opacity: index == pageView.currentIndex ? 1 : 0
117 width: mainWindow.width
118 height: mainWindow.height
119 opacity: index == pageView.currentIndex ? 1 : 0
123 width: mainWindow.width
124 height: mainWindow.height
125 opacity: index == pageView.currentIndex ? 1 : 0
129 width: mainWindow.width
130 height: mainWindow.height
131 opacity: index == pageView.currentIndex ? 1 : 0
135 width: mainWindow.width
136 height: mainWindow.height
137 opacity: index == pageView.currentIndex ? 1 : 0
141 width: mainWindow.width
142 height: mainWindow.height
143 opacity: index == pageView.currentIndex ? 1 : 0
147 width: mainWindow.width
148 height: mainWindow.height
149 opacity: index == pageView.currentIndex ? 1 : 0
153 width: mainWindow.width
154 height: mainWindow.height
155 opacity: index == pageView.currentIndex ? 1 : 0
159 width: mainWindow.width
160 height: mainWindow.height
161 opacity: index == pageView.currentIndex ? 1 : 0
165 width: mainWindow.width
166 height: mainWindow.height
167 opacity: index == pageView.currentIndex ? 1 : 0
171 width: mainWindow.width
172 height: mainWindow.height
173 opacity: index == pageView.currentIndex ? 1 : 0
177 width: mainWindow.width
178 height: mainWindow.height
179 opacity: index == pageView.currentIndex ? 1 : 0
183 width: mainWindow.width
184 height: mainWindow.height
185 opacity: index == pageView.currentIndex ? 1 : 0
189 width: mainWindow.width
190 height: mainWindow.height
191 opacity: index == pageView.currentIndex ? 1 : 0
195 width: mainWindow.width
196 height: mainWindow.height
197 opacity: index == pageView.currentIndex ? 1 : 0
201 width: mainWindow.width
202 height: mainWindow.height
203 opacity: index == pageView.currentIndex ? 1 : 0
207 width: mainWindow.width
208 height: mainWindow.height
209 opacity: index == pageView.currentIndex ? 1 : 0
213 width: mainWindow.width
214 height: mainWindow.height
215 opacity: index == pageView.currentIndex ? 1 : 0
219 width: mainWindow.width
220 height: mainWindow.height
221 opacity: index == pageView.currentIndex ? 1 : 0
225 width: mainWindow.width
226 height: mainWindow.height
227 opacity: index == pageView.currentIndex ? 1 : 0
231 width: mainWindow.width
232 height: mainWindow.height
233 opacity: index == pageView.currentIndex ? 1 : 0
237 width: mainWindow.width
238 height: mainWindow.height
239 opacity: index == pageView.currentIndex ? 1 : 0
243 width: mainWindow.width
244 height: mainWindow.height
245 opacity: index == pageView.currentIndex ? 1 : 0
249 width: mainWindow.width
250 height: mainWindow.height
251 opacity: index == pageView.currentIndex ? 1 : 0
255 width: mainWindow.width
256 height: mainWindow.height
257 opacity: index == pageView.currentIndex ? 1 : 0
265 orientation: ListView.Horizontal
267 highlightMoveDuration: 100
272 PropertyChanges { target: root; opacity: 0.1 }
275 transitions: Transition {
276 PropertyAnimation { target: root; properties: "opacity"; duration: 300 }