1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
3 import "UIConstants.js" as Const
11 color: Const.DEFAULT_BACKGROUND_COLOR
15 initialPage: Qt.resolvedUrl("FilesPage.qml")
25 anchors.horizontalCenter: mainWindow.horizontalCenter
26 y: mainWindow.height-height-Const.SYSTEM_BAR_HEIGHT-Const.TEXT_MARGIN
31 onFileDownloaded: tip.show(qsTr("File downloaded."))
32 onFileUploaded: tip.show(qsTr("File uploaded."))
33 onDownloadError: tip.show(qsTr("Error while downloading."))
34 onUploadError: tip.show(qsTr("Error while uploading."))
35 onDownloadAdded: tip.show(qsTr("File added to the queue."))
36 onUploadAdded: tip.show(qsTr("File added to the queue."))
37 onOperationCanceled: tip.show(qsTr("File operation canceled."))
44 property bool isActiveDownloads: progressArea.count>0
46 boxHeight: progressArea.height + 3*Const.DEFAULT_MARGIN
50 onFileDownloadProgress: progressArea.setProgress(filename,progress)
51 onFileUploadProgress: progressArea.setProgress(filename,progress)
52 onDownloadAdded: progressArea.addTask("download",filename)
53 onUploadAdded: progressArea.addTask("upload",filename)
54 onDownloadStarted: progressArea.start(filename)
55 onUploadStarted: progressArea.start(filename)
56 onFileDownloaded: progressArea.stop(filename)
57 onFileUploaded: progressArea.stop(filename)
58 onDownloadError: progressArea.stop(filename)
59 onUploadError: progressArea.stop(filename)
60 onOperationCanceled: progressArea.stop(filename)
61 onFileRemovedFromQuee: progressArea.stop(filename)
65 anchors.top: parent.box.top
66 anchors.topMargin: 2*Const.DEFAULT_MARGIN
67 anchors.margins: Const.DEFAULT_MARGIN
68 anchors.horizontalCenter: parent.horizontalCenter
70 width: parent.width-3*Const.DEFAULT_MARGIN
78 iconSource: "images/ubi50.png"
79 textHeader: qsTr("<b>Ubi</b>")
81 text: qsTr("<p>An unofficial Ubuntu One app for Maemo 5 "
82 +"and other Qt-enabled platforms.</p>"
83 +"<p><small>http://ubi.garage.maemo.org</small></p>"
84 +"<p><small>© 2012 Michal Kosciesza</small></p>")
92 downloadDialog.close();
93 pageStack.currentPage.taskMenu.close();
101 anchors.left: parent.left
102 anchors.top: parent.top
103 anchors.bottom: parent.bottom
109 height: mainWindow.height;
110 width: mainWindow.width;