conductors: Enter fix merged (#1204); multi-wire section updated for review changes in #1205 (still pending)

ispyisail
2026-10-02 06:21:28 +13:00
parent a42d490f18
commit 909c522892
+34 -19
@@ -66,22 +66,19 @@ fields as the dialog.
- If the wire is changed elsewhere (the dialog, undo, the colour button), the
panel updates to match.
#### Known problem: Enter can switch the wire to single-line
#### Older builds: Enter could switch the wire to single-line
> **Status: pending.** The fix is
> [PR #1204](https://github.com/qelectrotech/qelectrotech-source-mirror/pull/1204),
> not yet merged. Until it lands, current builds behave as described here.
> This notice will be removed once it does.
Fixed on 1 October 2026 by
[PR #1204](https://github.com/qelectrotech/qelectrotech-source-mirror/pull/1204).
In builds made before that, pressing **Enter** in a text field of the panel
(Function, Section...) could also untick the **Multifilaire** box around it:
the wire became single-line and gained phase, neutral and earth symbols. Any
edit in the panel could also change a **dash size** of 1 to 2.
On current builds, pressing **Enter** in a text field of the panel (Function,
Section...) can also untick the **Multifilaire** box around it. The wire then
becomes single-line and gains phase, neutral and earth symbols. Any edit in the
panel can also change a **dash size** of 1 to 2.
Until the fix is in your build, leave a field with **Tab** or by clicking
elsewhere rather than Enter, and check the wire type after editing. **Ctrl+Z**
undoes the change. With the fix, the panel changes only the fields you edit,
and Enter just applies the field.
On such a build, leave a field with **Tab** or by clicking elsewhere rather
than Enter, and check the wire type after editing; **Ctrl+Z** undoes the
change. Builds with the fix change only the fields you edit, and Enter just
applies the field.
#### Editing several wires at once
@@ -92,24 +89,42 @@ and Enter just applies the field.
Select several wires, by clicking with **Ctrl** or by drawing a box across
them. A box that also catches the wire numbers is fine: a selected number
counts as its wire. The panel then shows the first wire's values, with a line
above them saying how many wires are selected.
counts as its wire. A line above the fields says how many wires are selected.
**Only the fields you change are applied**, to every selected wire. Setting
the function on ten wires gives all ten that function, and each keeps its own
number, cable, section and the rest.
What the fields show:
- A **text field the wires do not agree on** (Function, Section, Cable,
Tension / protocol...) is blank, with the hint **Plusieurs valeurs**
(*Several values*). Type a value and every selected wire takes it, even if
some already had it: on a 1.5 mm² wire and a 2.5 mm² wire, typing `1.5`
in Section gives both 1.5 mm².
- A text field they all agree on shows that value.
- Every other field (colours, sizes, checkboxes, alignment) shows the value of
the **first wire**: the one highest on the folio, and of those the leftmost.
- **Texte** (the wire number) is locked while several wires are selected,
since the same number on all of them would make duplicates. To give a whole
potential one number, select one of its wires and tick *Apply to all
conductors of this potential*.
| You do | Every selected wire | Untouched |
|---|---|---|
| set **Function** to `24V DC` | gets function `24V DC` | its own number, cable, section, colour... |
| set **Section** to `2.5`, then **Function** to `PWR` | gets both, as two undo steps | everything else |
| tick *Apply to all conductors of this potential*, then edit | every wire of every selected wire's potential gets the edited field | each wire's other fields |
Each edit is one undo step for all the wires.
Limits:
- A field whose value differs between the selected wires is not marked as
mixed. It shows the first wire's value, and nothing is applied to the
others until you edit that field.
- Fields other than text fields are not marked when the wires differ. To give
every wire the first wire's colour or size, change it to something else and
back, or use the dialog on each wire.
- A blank "Plusieurs valeurs" field cannot be used to empty the field on every
wire: leaving it blank changes nothing.
- Selecting wires together with symbols or texts leaves the panel empty,
as it does for any mixed selection.