Place symbol texts: label and notes as one block, at one of nine points

A new command, "Place symbol texts", for the selected symbols: their
label and the notes beside it go as one block next to the drawing of
the symbol, 3 px away, at one of the nine points of the text alignment
dialog, chosen in a 3 x 3 grid that opens from the toolbar button and
from the Edit menu. A click on the button places them at the point
chosen last (left of the symbol at first).

Left of the symbol the lines are aligned right, so that they hang on it
and a longer text grows away from it (their alignment is set too);
right of it aligned left; above, below and on it centred. The lines
keep their order and their spacing, a group of texts is placed as one
line with the same alignment, a turned symbol is placed in the folio's
directions, and everything is one undo step.

Element::drawingRect() gives the area the drawing covers, tighter than
the bounding rect, which is rounded up to the grid. A toolbar command
with a menu now shows as a button with an arrow beside it.
Translations for all languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DaTweety
2026-10-19 16:27:50 +02:00
parent aebe82d6c2
commit 0a577eaabf
46 changed files with 2750 additions and 2 deletions
+64
View File
@@ -12054,6 +12054,62 @@ Opcions disponibles:
</context>
<context>
<name>QETDiagramEditor</name>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="497"/>
<source>Place symbol texts</source>
<translation>Col·locar els textos del símbol</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="498"/>
<source>Place the label and the notes of the selected symbols as one block beside them</source>
<comment>status bar tip</comment>
<translation>Col·loca l&apos;etiqueta i les notes dels símbols seleccionats com un sol bloc al costat</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="507"/>
<source>Above, left</source>
<translation>A dalt, a l&apos;esquerra</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="508"/>
<source>Above</source>
<translation>A dalt</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="509"/>
<source>Above, right</source>
<translation>A dalt, a la dreta</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="510"/>
<source>Left</source>
<translation>Esquerra</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="511"/>
<source>On the symbol</source>
<translation>Sobre el símbol</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="512"/>
<source>Right</source>
<translation>Dreta</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="513"/>
<source>Below, left</source>
<translation>A baix, a l&apos;esquerra</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="514"/>
<source>Below</source>
<translation>A baix</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="515"/>
<source>Below, right</source>
<translation>A baix, a la dreta</translation>
</message>
<message>
<location filename="../sources/qetdiagrameditor.cpp" line="182"/>
<location filename="../sources/qetdiagrameditor.cpp" line="4218"/>
@@ -24823,4 +24879,12 @@ associar el nom &quot;volta&quot; amb el valor &quot;1745&quot; substituirà %{v
<translation>Què :</translation>
</message>
</context>
<context>
<name>SymbolTextPlacement</name>
<message>
<location filename="../sources/symboltextplacement.cpp" line="120"/>
<source>Place symbol texts</source>
<translation>Col·locar els textos del símbol</translation>
</message>
</context>
</TS>