aboutsummaryrefslogtreecommitdiffstats
path: root/demo/Main.qml
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-16 15:14:13 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-16 15:14:13 +0100
commit50034b142dc851da7118032f7218cb1d25ea98e4 (patch)
treeb506a4dec9c10ee0510bcbb570c6c06433252960 /demo/Main.qml
parent9ac64169720fb2b9852589b74f7300bcfebcaf62 (diff)
downloadQtXpl2-50034b142dc851da7118032f7218cb1d25ea98e4.tar.gz
QtXpl2-50034b142dc851da7118032f7218cb1d25ea98e4.zip
CN_ control commands: typed API, dispatch, mock responses, demo UI
Diffstat (limited to 'demo/Main.qml')
-rw-r--r--demo/Main.qml48
1 files changed, 48 insertions, 0 deletions
diff --git a/demo/Main.qml b/demo/Main.qml
index 07e42b1..52d3097 100644
--- a/demo/Main.qml
+++ b/demo/Main.qml
@@ -139,6 +139,54 @@ ApplicationWindow {
}
}
+ // --- Control ---
+ GroupBox {
+ Layout.fillWidth: true
+ enabled: Xpl2Client.connected
+ title: "Control"
+
+ GridLayout {
+ anchors.fill: parent
+ columns: 4
+
+ Button {
+ text: "Jetting All On"
+
+ onClicked: Xpl2Client.jettingAllOn()
+ }
+
+ Button {
+ text: "Jetting Off"
+
+ onClicked: Xpl2Client.jettingOff()
+ }
+
+ Button {
+ text: "JC LED On"
+
+ onClicked: Xpl2Client.jcIdLedOn()
+ }
+
+ Button {
+ text: "JC LED Off"
+
+ onClicked: Xpl2Client.jcIdLedOff()
+ }
+
+ Button {
+ text: "JC Calibration"
+
+ onClicked: Xpl2Client.jcCalibration()
+ }
+
+ Button {
+ text: "Reset Fault Codes"
+
+ onClicked: Xpl2Client.jcResetFaultCodes()
+ }
+ }
+ }
+
// --- Printheads ---
GroupBox {
Layout.fillHeight: true