diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-16 17:03:26 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-16 17:03:26 +0200 |
| commit | e90b28d8ccb9eedc19c23ebeb0129308a74e2865 (patch) | |
| tree | 0cfdd646986c8ea8b2ecf325ac96fa909db5069a /jetting-interface/CommandsPage.qml | |
| parent | bf525d35301dcf0c612598f4394e4357b8378746 (diff) | |
| download | QtXpl2-reality-check.tar.gz QtXpl2-reality-check.zip | |
fix: add workaround for turning all printheads on/offreality-check
Diffstat (limited to 'jetting-interface/CommandsPage.qml')
| -rw-r--r-- | jetting-interface/CommandsPage.qml | 44 |
1 files changed, 39 insertions, 5 deletions
diff --git a/jetting-interface/CommandsPage.qml b/jetting-interface/CommandsPage.qml index 5a084e6..5b466f0 100644 --- a/jetting-interface/CommandsPage.qml +++ b/jetting-interface/CommandsPage.qml @@ -163,12 +163,31 @@ ColumnLayout { ColumnLayout { anchors.fill: parent - Button { - text: "Get All PH Versions" + RowLayout { + Layout.fillWidth: true + + Button { + text: "Get All PH Versions" + + onClicked: { + for (let i = 0; i < commandsPage.phModel.count; ++i) + Xpl2Client.getPhVersion(commandsPage.phModel.get(i).phId); + } + } + + // Working replacement for the broken Jetting All On/Off: the + // library self-probes versions then jets each available head by + // ID, even non-contiguous (see docs/DISCREPANCIES.md, D6). + Button { + text: "Jet On All Available" + + onClicked: Xpl2Client.jettingAvailableOn() + } - onClicked: { - for (let i = 0; i < commandsPage.phModel.count; ++i) - Xpl2Client.getPhVersion(commandsPage.phModel.get(i).phId); + Button { + text: "Jet Off All Available" + + onClicked: Xpl2Client.jettingAvailableOff() } } @@ -185,6 +204,7 @@ ColumnLayout { required property int phId required property string versionInfo + required property bool valid width: ListView.view.width @@ -200,6 +220,20 @@ ColumnLayout { onClicked: Xpl2Client.getPhVersion(phDelegate.phId) } + Button { + text: "Jet On" + enabled: phDelegate.valid + + onClicked: Xpl2Client.phJettingOn(phDelegate.phId, "FFFFFFFFFFFF") + } + + Button { + text: "Jet Off" + enabled: phDelegate.valid + + onClicked: Xpl2Client.phJettingOff(phDelegate.phId) + } + Label { Layout.fillWidth: true elide: Text.ElideRight |
