ApplicationWindow {
id: root
+ width: container.width * container.scale
+ height: container.height * container.scale
+
Translator {
id: translator
-// language: 'ja_JP'
+ language: binding.language
}
- API.Binding {
- id: binding
- url: bindingAddress
- onFanSpeedChanged: fanSpeedSlider.value = fanSpeed
- }
+ API.Binding {
+ id: binding
+ url: bindingAddress
+ onFanSpeedChanged: fanSpeedSlider.value = fanSpeed
+ onLanguageChanged: translator.language = language
+ }
+
+ Item {
+ id: container
+// anchors.centerIn: parent
+ x: 555
+ y: -465
+ width: 720
+ height: 1920
+ rotation: -90
+ scale: screenInfo.scale_factor()
ColumnLayout {
anchors.fill: parent
anchors.topMargin: width / 10
anchors.bottomMargin: width / 10
+
RowLayout {
Layout.fillHeight: true
Layout.alignment: Qt.AlignHCenter
source: './images/HMI_HVAC_Fan_Icon.svg'
}
Item {
- width: root.width * 0.8
+ width: container.width * 0.8
Slider {
id: fanSpeedSlider
anchors.left: parent.left
RowLayout {
Layout.fillHeight: true
Layout.fillWidth: true
- Layout.alignment: Layout.Center
+ Layout.alignment: Qt.AlignHCenter
+ rotation: 90
spacing: 20
ColumnLayout {
Layout.fillWidth: true
}
HeatDegree {
onCurrentItemChanged: {
- console.log("Left Temp changed",degree)
- binding.leftTemperature = degree
+ console.log("Left Temp changed",degree)
+ binding.leftTemperature = degree
}
}
}
}
}
}
-
RowLayout {
Layout.fillHeight: true
Layout.alignment: Qt.AlignHCenter
- spacing: root.width / 20
Repeater {
model: ['AirDown', 'AirUp', 'AirRight', 'Rear', 'Front']
ToggleButton {
onImage: './images/HMI_HVAC_%1_Active.svg'.arg(model.modelData)
offImage: './images/HMI_HVAC_%1_Inactive.svg'.arg(model.modelData)
+ rotation: 90
onCheckedChanged: {
console.debug(model.modelData, checked)
}
}
}
}
+}