diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/images/logo_Ubuntu_stacked_black.png | bin | 23419 -> 0 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-1.jpg | bin | 0 -> 40871 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-2.jpg | bin | 0 -> 42386 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-3.jpg | bin | 0 -> 34382 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-4.jpg | bin | 0 -> 36383 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-5.jpg | bin | 0 -> 34759 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-6.jpg | bin | 0 -> 28342 bytes | |||
| -rw-r--r-- | data/images/palm-rejection-7.jpg | bin | 0 -> 30166 bytes | |||
| -rw-r--r-- | data/palm_rejection.qml | 93 |
9 files changed, 93 insertions, 0 deletions
diff --git a/data/images/logo_Ubuntu_stacked_black.png b/data/images/logo_Ubuntu_stacked_black.png Binary files differdeleted file mode 100644 index c807a37..0000000 --- a/data/images/logo_Ubuntu_stacked_black.png +++ /dev/null diff --git a/data/images/palm-rejection-1.jpg b/data/images/palm-rejection-1.jpg Binary files differnew file mode 100644 index 0000000..1ab8fab --- /dev/null +++ b/data/images/palm-rejection-1.jpg diff --git a/data/images/palm-rejection-2.jpg b/data/images/palm-rejection-2.jpg Binary files differnew file mode 100644 index 0000000..eedfb9c --- /dev/null +++ b/data/images/palm-rejection-2.jpg diff --git a/data/images/palm-rejection-3.jpg b/data/images/palm-rejection-3.jpg Binary files differnew file mode 100644 index 0000000..da7c233 --- /dev/null +++ b/data/images/palm-rejection-3.jpg diff --git a/data/images/palm-rejection-4.jpg b/data/images/palm-rejection-4.jpg Binary files differnew file mode 100644 index 0000000..8d35638 --- /dev/null +++ b/data/images/palm-rejection-4.jpg diff --git a/data/images/palm-rejection-5.jpg b/data/images/palm-rejection-5.jpg Binary files differnew file mode 100644 index 0000000..12f23d2 --- /dev/null +++ b/data/images/palm-rejection-5.jpg diff --git a/data/images/palm-rejection-6.jpg b/data/images/palm-rejection-6.jpg Binary files differnew file mode 100644 index 0000000..b36be8b --- /dev/null +++ b/data/images/palm-rejection-6.jpg diff --git a/data/images/palm-rejection-7.jpg b/data/images/palm-rejection-7.jpg Binary files differnew file mode 100644 index 0000000..d4ce251 --- /dev/null +++ b/data/images/palm-rejection-7.jpg diff --git a/data/palm_rejection.qml b/data/palm_rejection.qml new file mode 100644 index 0000000..1c9b974 --- /dev/null +++ b/data/palm_rejection.qml @@ -0,0 +1,93 @@ +/* + * This file is part of Checkbox. + * + * Copyright 2016 Canonical Ltd. + * Written by: + * Maciej Kisielewski <maciej.kisielewski@canonical.com> + * + * Checkbox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3, + * as published by the Free Software Foundation. + * + * Checkbox is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Checkbox. If not, see <http://www.gnu.org/licenses/>. + */ +import Ubuntu.Components 1.2 +import QtQuick 2.0 +import QtQuick.Layouts 1.1 +import Plainbox 0.1 + +QmlJob { + property var steps: [ + ['images/palm-rejection-1.jpg', 2000], + ['images/palm-rejection-2.jpg', 500], + ['images/palm-rejection-3.jpg', 1000], + ['images/palm-rejection-4.jpg', 500], + ['images/palm-rejection-5.jpg', 500], + ['images/palm-rejection-6.jpg', 1000], + ['images/palm-rejection-7.jpg', 1000], + ] + property var currentStep: 0 + + anchors.fill: parent + + ColumnLayout { + anchors.fill: parent + anchors.margins: units.gu(1) + spacing: units.gu(1) + Image { + source: steps[currentStep][0] + fillMode: Image.PreserveAspectFit + Layout.fillHeight: true + Layout.fillWidth: true + } + Label { + text: i18n.tr("The cursor <b>SHOULD NOT</b> move with the palm movement?") + fontSize: 'large' + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + Layout.minimumHeight: units.gu(10) + Layout.fillHeight: true + Layout.fillWidth: true + } + RowLayout { + Layout.minimumHeight: units.gu(10) + Layout.fillWidth: true + Button { + text: i18n.tr('Pass') + color: UbuntuColors.green + Layout.fillHeight: true + Layout.fillWidth: true + onClicked: testDone({'outcome': 'pass'}) + } + Button { + text: i18n.tr('Skip') + color: "#FF9900" + Layout.fillHeight: true + Layout.fillWidth: true + onClicked: testDone({'outcome': 'skip'}) + } + Button { + text: i18n.tr('Fail') + color: UbuntuColors.red + Layout.fillHeight: true + Layout.fillWidth: true + onClicked: testDone({'outcome': 'fail'}) + } + + } + } + Timer { + interval: steps[currentStep][1] + running: true + repeat: true + onTriggered: { + currentStep = (currentStep + 1) % steps.length; + } + } +} |
