diff options
Diffstat (limited to 'demo/Main.qml')
| -rw-r--r-- | demo/Main.qml | 38 |
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 |
