3 import "UIConstants.js" as Const
4 import com.nokia.meego 1.0 as Meego
6 Meego.PageStackWindow {
11 //showStatusBar: false
13 Component.onCompleted: {
14 theme.inverted = true;
24 color: Const.DEFAULT_BACKGROUND_COLOR
28 initialPage: Qt.resolvedUrl("FilesPage.qml")
38 anchors.horizontalCenter: mainWindow.horizontalCenter
39 y: mainWindow.height-height-Const.SYSTEM_BAR_HEIGHT-Const.TEXT_MARGIN
44 onFileDownloaded: tip.show(qsTr("File downloaded."))
45 onFileUploaded: tip.show(qsTr("File uploaded."))
46 onDownloadError: tip.show(qsTr("Error while downloading."))
47 onUploadError: tip.show(qsTr("Error while uploading."))
48 onDownloadAdded: tip.show(qsTr("File added to the queue."))
49 onUploadAdded: tip.show(qsTr("File added to the queue."))
50 onOperationCanceled: tip.show(qsTr("File operation canceled."))
57 property bool isActiveDownloads: progressArea.count>0
59 boxHeight: progressArea.height + 3*Const.DEFAULT_MARGIN
63 onFileDownloadProgress: progressArea.setProgress(filename,progress)
64 onFileUploadProgress: progressArea.setProgress(filename,progress)
65 onDownloadAdded: progressArea.addTask("download",filename)
66 onUploadAdded: progressArea.addTask("upload",filename)
67 onDownloadStarted: progressArea.start(filename)
68 onUploadStarted: progressArea.start(filename)
69 onFileDownloaded: progressArea.stop(filename)
70 onFileUploaded: progressArea.stop(filename)
71 onDownloadError: progressArea.stop(filename)
72 onUploadError: progressArea.stop(filename)
73 onOperationCanceled: progressArea.stop(filename)
74 onFileRemovedFromQuee: progressArea.stop(filename)
78 anchors.top: parent.box.top
79 anchors.topMargin: 2*Const.DEFAULT_MARGIN
80 anchors.margins: Const.DEFAULT_MARGIN
81 anchors.horizontalCenter: parent.horizontalCenter
83 width: parent.width-3*Const.DEFAULT_MARGIN
91 iconSource: "images/ubi50.png"
92 textHeader: qsTr("<b>Ubi</b>")
94 text: qsTr("<p>An unofficial Ubuntu One app for Maemo/Meego "
95 +"and other Qt-enabled platforms.</p>"
96 +"<p><small>http://ubi.garage.maemo.org</small></p>"
97 +"<p><small>© 2012 Michal Kosciesza</small></p>")
105 downloadDialog.close();
106 pageStack.currentPage.taskMenu.close();
114 anchors.left: parent.left
115 anchors.top: parent.top
116 anchors.bottom: parent.bottom
122 height: mainWindow.height;
123 width: mainWindow.width;