aboutsummaryrefslogtreecommitdiffstats
path: root/demo/Main.qml
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-16 15:40:22 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-16 15:40:22 +0100
commit7830f0ae98d742467b948ed93c85e122be38fb83 (patch)
tree08ab9e8e55a806300d8fcb00b1e8c41231d451e1 /demo/Main.qml
parentdf2be9eb678f12b6107d582d8ebd2ca2b4b7e92b (diff)
downloadQtXpl2-7830f0ae98d742467b948ed93c85e122be38fb83.tar.gz
QtXpl2-7830f0ae98d742467b948ed93c85e122be38fb83.zip
CF_ configuration commands with JettingParamsResult and SetterResult enums
Diffstat (limited to 'demo/Main.qml')
-rw-r--r--demo/Main.qml38
1 files changed, 37 insertions, 1 deletions
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