Commit Graph

27 Commits

Author SHA1 Message Date
donovaly
691eaa6e8f [TD] make pointers to the UI std::unique_ptr
as noted in https://github.com/FreeCAD/FreeCAD/pull/4271#discussion_r554673632
the pointer to the UI should be a unique pointer.

This PR does this for all TD dialogs that don't already use a unique_ptr.
2021-01-19 19:24:27 +01:00
donovaly
4bae944950 [TD] make LineGroup selectable
At the moment one has to specify the LineGroup as string. But one doesn't know what groups exist. So one has to check the Wiki, learn there where the groups are defined and then open the definition file with a text editor.

This PR simplifies this by reading the existing groups out of the definition file and fill the combobox accordingly.
It also give the user info what the selected LineGroup defines via the tooltip.

A nice side effect is that no typos can occur since you don't have to enter the LineGroup name as text.
2020-12-03 17:24:49 +01:00
luz paz
89664642fb TD: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the TechDraw Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
luz paz
ae71abd1cc TechDraw: Header uniformity and whitespace fixes 2020-11-14 16:59:51 +01:00
wmayer
2588d0701a Coverity: [skip ci] Dereference before null check 2020-07-21 14:31:09 +02:00
wmayer
983939b32d Coverity: Uninitialized scalar/pointer field 2020-07-20 17:34:30 +02:00
wmayer
ba683bf241 Coverity: Dereference null return value 2020-07-20 17:34:26 +02:00
wmayer
1ae38aea04 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +02:00
wandererfan
a3029fec74 [TD]Centralize preference getters 2020-04-24 11:13:49 -04:00
donovaly
29c6aaa0b8 [TD] use Gui::QuantitySpinBox in dialogs
as recently discussed

- also add lost alignment properties
2020-03-28 08:51:12 -04:00
wandererfan
3a2fd3c2f3 [TD]fix RTA edit when no MDI 2020-02-16 14:24:14 -05:00
Zheng, Lei
e1a6100bac TechDraw: remove duplicated fix 2020-02-11 15:40:27 -05:00
Zheng, Lei
5b3c63c9be TechDraw: fix build for qt4 2020-02-11 15:40:27 -05:00
wmayer
c81f88d7d7 TechDraw: [skip ci] user visible text should be translated 2020-02-03 13:41:35 +01:00
donovaly
66c9166618 [TD] TaskRichAnno tr to fix Qt4 build 2020-02-03 07:20:52 -05:00
donovaly
dc76b7fb5c [TD] set default text size for RichAnno dialog
see https://forum.freecadweb.org/viewtopic.php?f=35&t=42414&p=364965#p364965
2020-01-31 08:35:38 -05:00
wandererfan
c4394eadc6 [TD]Default color and weight for markup lines 2020-01-29 15:26:06 -05:00
donovaly
922c955218 [TD] fix regression with line width I introduced today 2020-01-28 21:07:49 -05:00
donovaly
853dc6d884 [TD] improve RichAnno and LeaderLine dialog
see: https://forum.freecadweb.org/viewtopic.php?f=35&t=42746&p=364126#p364126
2020-01-28 12:40:56 -05:00
donovaly
ce06f31435 [TD] rename some Draw* elements - try 2
as discussed here: https://forum.freecadweb.org/viewtopic.php?p=360042#p360042
2020-01-18 06:57:29 -05:00
wandererfan
0b4f82f280 [TD]fix parenting in Tree 2020-01-15 15:46:37 -05:00
wandererfan
1458e49e13 [TD]Cleanup dead code in TaskRichAnno 2020-01-15 07:17:18 -05:00
wandererfan
cc1b5736d9 [TD]fix jumping Rich Text Annotation 2019-12-04 10:16:19 -05:00
donovaly
896f1c25b7 TD renaming tools, part 2/2
as discussed in https://forum.freecadweb.org/viewtopic.php?p=344899#p344800
we need a more consistent naming for the Wiki
2019-11-17 08:22:09 -05:00
wandererfan
f47422d366 Remove Surplus VP properties
- color, size and font info are embedded in the rich text
2019-05-17 19:35:25 -04:00
wandererfan
de24943885 Pass font/fontsize to RT editor 2019-05-05 21:01:31 -04:00
wandererfan
c1f9f11c27 Leader and RichText block improvements 2019-05-05 21:01:31 -04:00