Prima versione di ThinQ: stato e comandi della lavasciuga via cloud LG
- elenco delle macchine e stato in lettura, fasi tradotte in italiano - avvio, stop, spegnimento, ripresa e stop ritardato da 3 a 19 ore - chiave di accesso custodita solo sul telefono, nel file privato dell'app - 44 verifiche automatiche sul nucleo (scripts/test-core.sh) - interfaccia italiana o inglese secondo la lingua del telefono
This commit is contained in:
commit
b5f6e79146
32 files changed
+2859
No files matched your search
@@ -0,0 +1,54 @@
|
||||
import QtQuick 2.2
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
// Stop ritardato: 3-19 ore, gli unici valori che questa macchina accetta.
|
||||
Dialog {
|
||||
id: dialog
|
||||
|
||||
property int hours: api.delayHours
|
||||
|
||||
canAccept: true
|
||||
|
||||
onAccepted: {
|
||||
api.setDelayHours(hours)
|
||||
api.sendDelay()
|
||||
}
|
||||
|
||||
Column {
|
||||
width: parent.width
|
||||
spacing: Theme.paddingMedium
|
||||
|
||||
DialogHeader {
|
||||
title: qsTr("Delayed stop")
|
||||
acceptText: qsTr("Set")
|
||||
}
|
||||
|
||||
Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
wrapMode: Text.WordWrap
|
||||
color: Theme.secondaryColor
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
text: qsTr("The machine will stop on its own after the chosen time, then resume its programme.")
|
||||
}
|
||||
|
||||
Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: dialog.hours + " h"
|
||||
color: Theme.highlightColor
|
||||
font.pixelSize: Theme.fontSizeLarge
|
||||
}
|
||||
|
||||
Slider {
|
||||
width: parent.width
|
||||
minimumValue: 3
|
||||
maximumValue: 19
|
||||
stepSize: 1
|
||||
value: dialog.hours
|
||||
valueText: value + " h"
|
||||
onValueChanged: dialog.hours = Math.round(value)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user