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("StartPage.qml")
16 initialPage: Qt.resolvedUrl("FilesPage.qml")
21 /*Component.onCompleted: {
22 //visible = Utils.isMaemo();
26 visible = Utils.isMaemo();
33 anchors.horizontalCenter: mainWindow.horizontalCenter
34 y: mainWindow.height-height-Const.SYSTEM_BAR_HEIGHT-Const.TEXT_MARGIN
43 onFileDownloaded: tip.show(qsTr("File downloaded."))
44 onFileUploaded: tip.show(qsTr("File uploaded."))
45 onDownloadError: tip.show(qsTr("Error while downloading."))
46 onUploadError: tip.show(qsTr("Error while uploading."))
47 onDownloadAdded: tip.show(qsTr("File added to the queue."))
48 onUploadAdded: tip.show(qsTr("File added to the queue."))
49 onOperationCanceled: tip.show(qsTr("File operation canceled."))
56 property bool isActiveDownloads: progressArea.count>0
58 boxHeight: progressArea.height + 3*Const.DEFAULT_MARGIN
62 onFileDownloadProgress: progressArea.setProgress(filename,progress)
63 onFileUploadProgress: progressArea.setProgress(filename,progress)
64 onDownloadAdded: progressArea.addTask("download",filename)
65 onUploadAdded: progressArea.addTask("upload",filename)
66 onDownloadStarted: progressArea.start(filename)
67 onUploadStarted: progressArea.start(filename)
68 onFileDownloaded: progressArea.stop(filename)
69 onFileUploaded: progressArea.stop(filename)
70 onDownloadError: progressArea.stop(filename)
71 onUploadError: progressArea.stop(filename)
72 onOperationCanceled: progressArea.stop(filename)
73 onFileRemovedFromQuee: progressArea.stop(filename)
77 anchors.top: parent.box.top
78 anchors.topMargin: 2*Const.DEFAULT_MARGIN
79 anchors.margins: Const.DEFAULT_MARGIN
80 anchors.horizontalCenter: parent.horizontalCenter
82 width: parent.width-3*Const.DEFAULT_MARGIN
84 //onHeightChanged: console.log("height: "+height);
92 iconSource: "images/ubi50.png"
93 textHeader: qsTr("<b>Ubi</b>")
95 text: qsTr("<p>An unofficial Ubuntu One app for Maemo 5 "
96 +"and other Qt-enabled platforms.</p>"
97 +"<p><small>http://ubi.garage.maemo.org</small></p>"
98 +"<p><small>© 2012 Michal Kosciesza</small></p>")
106 downloadDialog.close();
107 pageStack.currentPage.taskMenu.close();
115 anchors.left: parent.left
116 anchors.top: parent.top
117 anchors.bottom: parent.bottom
123 height: mainWindow.height;
124 width: mainWindow.width;