From 7830f0ae98d742467b948ed93c85e122be38fb83 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 16 Mar 2026 15:40:22 +0100 Subject: CF_ configuration commands with JettingParamsResult and SetterResult enums --- demo/Main.qml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'demo/Main.qml') diff --git a/demo/Main.qml b/demo/Main.qml index 52d3097..394d1ba 100644 --- a/demo/Main.qml +++ b/demo/Main.qml @@ -11,7 +11,7 @@ ApplicationWindow { // Set from C++ via setInitialProperties (--printheads CLI arg, default 10). required property int demoPhCount - height: 700 + height: 1200 title: "XPL2 Demo" visible: true width: 900 @@ -187,6 +187,42 @@ ApplicationWindow { } } + // --- Configuration --- + GroupBox { + Layout.fillWidth: true + enabled: Xpl2Client.connected + title: "Configuration" + + GridLayout { + anchors.fill: parent + columns: 4 + + Button { + text: "Save All Settings" + + onClicked: Xpl2Client.jcSaveAllPrintheadSettings() + } + + Button { + text: "Reboot All PHs" + + onClicked: Xpl2Client.jcRebootAllPrintheads() + } + + Button { + text: "Restart JC" + + onClicked: Xpl2Client.jcRestart() + } + + Button { + text: "Shutdown JC" + + onClicked: Xpl2Client.jcShutdown() + } + } + } + // --- Printheads --- GroupBox { Layout.fillHeight: true -- cgit v1.2.3