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 = "";
39 root.currentPage.reloadMenu();
40 //mask.state = "idle";
43 function clear(immediate) {
45 pageView.highlightMoveDuration = 0;
48 pageView.highlightMoveDuration = 300;
50 pageView.currentIndex = 0;
51 for (var i = 1; i < pageModel.children.length; i++) {
52 pageModel.children[i].source = "";
56 function replace(item, immediate) {
58 root.push(item, immediate);
77 width: mainWindow.width
78 height: mainWindow.height
79 opacity: index == pageView.currentIndex ? 1 : 0
83 width: mainWindow.width
84 height: mainWindow.height
85 opacity: index == pageView.currentIndex ? 1 : 0
89 width: mainWindow.width
90 height: mainWindow.height
91 opacity: index == pageView.currentIndex ? 1 : 0
95 width: mainWindow.width
96 height: mainWindow.height
97 opacity: index == pageView.currentIndex ? 1 : 0
101 width: mainWindow.width
102 height: mainWindow.height
103 opacity: index == pageView.currentIndex ? 1 : 0
107 width: mainWindow.width
108 height: mainWindow.height
109 opacity: index == pageView.currentIndex ? 1 : 0
113 width: mainWindow.width
114 height: mainWindow.height
115 opacity: index == pageView.currentIndex ? 1 : 0
119 width: mainWindow.width
120 height: mainWindow.height
121 opacity: index == pageView.currentIndex ? 1 : 0
125 width: mainWindow.width
126 height: mainWindow.height
127 opacity: index == pageView.currentIndex ? 1 : 0
131 width: mainWindow.width
132 height: mainWindow.height
133 opacity: index == pageView.currentIndex ? 1 : 0
137 width: mainWindow.width
138 height: mainWindow.height
139 opacity: index == pageView.currentIndex ? 1 : 0
143 width: mainWindow.width
144 height: mainWindow.height
145 opacity: index == pageView.currentIndex ? 1 : 0
149 width: mainWindow.width
150 height: mainWindow.height
151 opacity: index == pageView.currentIndex ? 1 : 0
155 width: mainWindow.width
156 height: mainWindow.height
157 opacity: index == pageView.currentIndex ? 1 : 0
161 width: mainWindow.width
162 height: mainWindow.height
163 opacity: index == pageView.currentIndex ? 1 : 0
167 width: mainWindow.width
168 height: mainWindow.height
169 opacity: index == pageView.currentIndex ? 1 : 0
173 width: mainWindow.width
174 height: mainWindow.height
175 opacity: index == pageView.currentIndex ? 1 : 0
179 width: mainWindow.width
180 height: mainWindow.height
181 opacity: index == pageView.currentIndex ? 1 : 0
185 width: mainWindow.width
186 height: mainWindow.height
187 opacity: index == pageView.currentIndex ? 1 : 0
191 width: mainWindow.width
192 height: mainWindow.height
193 opacity: index == pageView.currentIndex ? 1 : 0
197 width: mainWindow.width
198 height: mainWindow.height
199 opacity: index == pageView.currentIndex ? 1 : 0
203 width: mainWindow.width
204 height: mainWindow.height
205 opacity: index == pageView.currentIndex ? 1 : 0
209 width: mainWindow.width
210 height: mainWindow.height
211 opacity: index == pageView.currentIndex ? 1 : 0
215 width: mainWindow.width
216 height: mainWindow.height
217 opacity: index == pageView.currentIndex ? 1 : 0
221 width: mainWindow.width
222 height: mainWindow.height
223 opacity: index == pageView.currentIndex ? 1 : 0
227 width: mainWindow.width
228 height: mainWindow.height
229 opacity: index == pageView.currentIndex ? 1 : 0
233 width: mainWindow.width
234 height: mainWindow.height
235 opacity: index == pageView.currentIndex ? 1 : 0
239 width: mainWindow.width
240 height: mainWindow.height
241 opacity: index == pageView.currentIndex ? 1 : 0
245 width: mainWindow.width
246 height: mainWindow.height
247 opacity: index == pageView.currentIndex ? 1 : 0
251 width: mainWindow.width
252 height: mainWindow.height
253 opacity: index == pageView.currentIndex ? 1 : 0
257 width: mainWindow.width
258 height: mainWindow.height
259 opacity: index == pageView.currentIndex ? 1 : 0
267 orientation: ListView.Horizontal
269 highlightMoveDuration: 100
274 PropertyChanges { target: root; opacity: 0.1 }
277 transitions: Transition {
278 PropertyAnimation { target: root; properties: "opacity"; duration: 300 }