45 lines
1.2 KiB
QML
45 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import ISC
|
|
import ISC.Wafer
|
|
|
|
|
|
Item {
|
|
id: root
|
|
property real blend: 0.0
|
|
property bool showLabels: true
|
|
|
|
WaferMapItem {
|
|
id: map
|
|
anchors.fill: parent
|
|
sensors: streamController.sensorLayout // [{label,x,y}]
|
|
values: streamController.sensorValues // [float]
|
|
bands: streamController.sensorBands // ["in_range"|"high"|"low"]
|
|
shape: streamController.waferShape
|
|
size: streamController.waferSize
|
|
target: streamController.target
|
|
margin: streamController.margin
|
|
blend: root.blend
|
|
showLabels: root.showLabels
|
|
// Bind to Theme so colors update on dark/light mode switch
|
|
ringColor: Theme.waferRingColor
|
|
axisColor: Theme.waferAxisColor
|
|
lowColor: Theme.sensorLow
|
|
inRangeColor: Theme.sensorInRange
|
|
highColor: Theme.sensorHigh
|
|
textColor: Theme.headingColor
|
|
|
|
|
|
TapHandler {
|
|
onTapped: (ev) => {
|
|
var idx = map.which_marker(ev.position.x, ev.position.y)
|
|
if (idx >= 0) replaceDialog.openFor(idx)
|
|
}
|
|
}
|
|
}
|
|
|
|
ReplaceSensorDialog { id: replaceDialog}
|
|
|
|
|
|
|
|
} |