diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2016-02-16 23:40:04 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2016-02-16 23:40:04 +0100 |
| commit | 07fb609095291f8d8544441925dea3d60d636f87 (patch) | |
| tree | f17f17badc7c0ad8f0147b8968bae91016244a97 /rockwork/ScreenshotsPage.qml | |
| parent | e54ee938a3e637f654b393f41ce2ad123d448639 (diff) | |
Moved qml to subdir to unbundle
Diffstat (limited to 'rockwork/ScreenshotsPage.qml')
| -rw-r--r-- | rockwork/ScreenshotsPage.qml | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/rockwork/ScreenshotsPage.qml b/rockwork/ScreenshotsPage.qml deleted file mode 100644 index fdbeb9a..0000000 --- a/rockwork/ScreenshotsPage.qml +++ /dev/null @@ -1,107 +0,0 @@ -import QtQuick 2.4 -import QtQuick.Layouts 1.1 -import Ubuntu.Components 1.3 -import Ubuntu.Components.Popups 1.3 -import Ubuntu.Content 1.3 -import RockWork 1.0 - -Page { - id: root - - title: i18n.tr("Screenshots") - - property var pebble: null - - head { - actions: [ - Action { - iconName: "camera-app-symbolic" - onTriggered: root.pebble.requestScreenshot() - } - ] - } - - ColumnLayout { - anchors.fill: parent - anchors.margins: units.gu(1) - spacing: units.gu(1) - - GridView { - id: grid - Layout.fillHeight: true - Layout.fillWidth: true - clip: true - - property int columns: 2 - - cellWidth: width / columns - cellHeight: cellWidth - - model: root.pebble.screenshots - - displaced: Transition { - UbuntuNumberAnimation { properties: "x,y" } - } - - delegate: Item { - width: grid.cellWidth - height: grid.cellHeight - Image { - anchors.fill: parent - anchors.margins: units.gu(.5) - fillMode: Image.PreserveAspectFit - source: "file://" + model.filename - } - MouseArea { - anchors.fill: parent - onClicked: { - PopupUtils.open(dialogComponent, root, {filename: model.filename}) - } - } - } - } - } - - Component { - id: dialogComponent - Dialog { - id: dialog - title: i18n.tr("Screenshot options") - - property string filename - - Button { - text: i18n.tr("Share") - color: UbuntuColors.blue - onClicked: { - pageStack.push(Qt.resolvedUrl("ContentPeerPickerPage.qml"), {itemName: i18n.tr("Pebble screenshot"), handler: ContentHandler.Share, contentType: ContentType.Pictures, filename: filename }) - PopupUtils.close(dialog) - } - } - Button { - text: i18n.tr("Save") - color: UbuntuColors.green - onClicked: { - pageStack.push(Qt.resolvedUrl("ContentPeerPickerPage.qml"), {itemName: i18n.tr("Pebble screenshot"),handler: ContentHandler.Destination, contentType: ContentType.Pictures, filename: filename }) - PopupUtils.close(dialog) - } - } - - Button { - text: i18n.tr("Delete") - color: UbuntuColors.red - onClicked: { - root.pebble.removeScreenshot(filename) - PopupUtils.close(dialog) - } - } - Button { - text: i18n.tr("Cancel") - onClicked: { - PopupUtils.close(dialog) - } - } - } - } -} - |
