GUI: add a spinbox to pre-dial the simulated Pot's reset temperature

btn_pot_reset always reset the simulated Pot to the ambient
temperature. Add doubleSpinBox_pot_temp next to it (shown/hidden
together, same as the button) so the user can dial in a different
starting temperature before committing it - it seeds from the same
remembered ambient value on startup but is otherwise independent and
not persisted.

tasks/pot.py's PotTask.recv() now resets the plant to whatever
temperature the 'Reset' message carries, falling back to ambient for
the bare True a caller might still send.
This commit is contained in:
2026-06-23 19:34:33 +02:00
parent e4f8b15ab0
commit f035e1decd
4 changed files with 74 additions and 2 deletions
+41
View File
@@ -3755,6 +3755,47 @@
<string>Pot reset to ambient temperature</string>
</property>
</widget>
<widget class="QLabel" name="label_pot_temp">
<property name="geometry">
<rect>
<x>930</x>
<y>500</y>
<width>91</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Pot [°C]</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_pot_temp">
<property name="geometry">
<rect>
<x>1030</x>
<y>500</y>
<width>70</width>
<height>31</height>
</rect>
</property>
<property name="toolTip">
<string>Pre-dial the temperature btn_pot_reset applies to the simulated Pot</string>
</property>
<property name="decimals">
<number>0</number>
</property>
<property name="minimum">
<double>-999.000000000000000</double>
</property>
<property name="maximum">
<double>999.000000000000000</double>
</property>
<property name="singleStep">
<double>1.000000000000000</double>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>