1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
3 import "UIConstants.js" as Const
8 property bool isEmpty: progressArea.count==0 && menu.children.length==0
9 property bool isActiveDownloads: progressArea.count>0
11 width: mainWindow.width
12 height: items.height + 3*Const.DEFAULT_MARGIN
16 if(progressArea.count>0 || menu.children.length>0) {
18 pageStack.currentPage.mask.state = "defocused";
24 pageStack.currentPage.mask.state = "idle";
27 function addTask(filename) {
28 progress.addTask(filename);
35 function fixHeight() {
36 root.height = items.height + 3*Const.DEFAULT_MARGIN;
44 color: Const.LIGHT_AUBERGINE_COLOR
57 onFileDownloadProgress: progressArea.setProgress(filename,progress)
58 onFileUploadProgress: progressArea.setProgress(filename,progress)
59 onDownloadAdded: progressArea.addTask("download",filename)
60 onUploadAdded: progressArea.addTask("upload",filename)
61 onDownloadStarted: progressArea.start(filename)
62 onUploadStarted: progressArea.start(filename)
63 onFileDownloaded: progressArea.stop(filename)
64 onFileUploaded: progressArea.stop(filename)
65 onDownloadError: progressArea.stop(filename)
66 onUploadError: progressArea.stop(filename)
71 y: Const.DEFAULT_MARGIN
72 width: root.width-2*Const.DEFAULT_MARGIN
73 spacing: Const.DEFAULT_MARGIN
74 anchors.horizontalCenter: box.horizontalCenter
79 spacing: Const.DEFAULT_MARGIN
83 width: root.width-3*Const.DEFAULT_MARGIN
84 anchors.horizontalCenter: parent.horizontalCenter
85 visible: progressArea.count>0
88 visible: progressArea.count>0
93 width: root.width-3*Const.DEFAULT_MARGIN
101 PropertyChanges { target: root; opacity: 1 }
102 PropertyChanges { target: root; y: 0}
106 PropertyChanges { target: root; opacity: 0 }
107 PropertyChanges { target: root; y: 0-root.height }
111 transitions: Transition {
112 NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad }
113 NumberAnimation { properties: "y"; easing.type: Easing.InOutQuad }
114 NumberAnimation { properties: "height"; easing.type: Easing.InOutQuad }