Innovenergy_trunk/firmware/opt/victronenergy/gui/qml/Page48TlDiagnostics.qml

111 lines
2.3 KiB
QML
Raw Permalink Normal View History

2023-02-16 12:57:06 +00:00
import QtQuick 1.1
import com.victron.velib 1.0
import "utils.js" as Utils
MbPage {
id: root
property string bindPrefix
property bool ledCondition
function bind(path) {
return Utils.path(bindPrefix, path)
}
model: VisualItemModel {
id: vModel
MbItemRow {
description: qsTr("Status LEDs")
values: [
Led {
id: greenLed
bind: root.bind("/LedStatus/Green")
onColor: "#00FF00"
radius: 10
},
Led {
bind: root.bind("/LedStatus/Amber")
onColor: "#FFBF00"
radius: 10
},
Led {
id:blueLed
bind: root.bind("/LedStatus/Blue")
onColor: "#0000FF"
radius: 10
},
Led {
bind: service.path("/LedStatus/Red")
onColor: "#FF0000"
radius: 10
}
]
}
MbItemOptions {
id: eocReached
description: qsTr("EOC")
bind: root.bind("/IoStatus/EocReached")
readonly: true
possibleValues: [
MbOption { description: qsTr("No"); value: false },
MbOption { description: qsTr("Yes"); value: true }
]
}
MbItemOptions {
id: batteryCold
description: qsTr("Battery Temperature State")
bind: root.bind("/IoStatus/BatteryCold")
readonly: true
possibleValues: [
MbOption { description: qsTr("Operational"); value: false },
MbOption { description: qsTr("Cold"); value: true }
]
}
MbItemOptions {
description: qsTr("Alarm")
bind: root.bind("/IoStatus/AlarmOutActive")
readonly: true
possibleValues: [
MbOption { description: qsTr("Active"); value: false },
MbOption { description: qsTr("None"); value: true }
]
}
MbItemOptions {
description: qsTr("Main Switch")
bind: root.bind("/IoStatus/MainSwitchClosed")
readonly: true
possibleValues: [
MbOption { description: qsTr("On"); value: false },
MbOption { description: qsTr("Off"); value: true }
]
}
MbItemOptions {
description: qsTr("Heater")
bind: root.bind("/IoStatus/HeaterOn")
readonly: true
possibleValues: [
MbOption { description: qsTr("Off"); value: false },
MbOption { description: qsTr("On"); value: true }
]
}
MbItemOptions {
description: qsTr("Internal Fan")
bind: root.bind("/IoStatus/InternalFanActive")
readonly: true
possibleValues: [
MbOption { description: qsTr("Off"); value: false },
MbOption { description: qsTr("On"); value: true }
]
}
}
}