berniev
53ba98d636
Mod: use empty
2022-08-06 19:30:13 +02:00
wmayer
c5910c1530
TD: [skip ci] Fix several clazy issues:
...
* Using copy-ctor but class TechDraw::anglePoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Using copy-ctor but class TechDraw::arcPoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* C++11 range-loop might detach Qt container (QList) [-Wclazy-range-loop-detach]
* signal arguments need to be fully-qualified (TechDrawGui::QGIView instead of QGIView) [-Wclazy-fully-qualified-moc-types]
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use midRef() instead [-Wclazy-qstring-ref]
2022-07-25 17:00:48 +02:00
Uwe
7b4e5d7522
[TD] remove more superfluous nullptr checks
2022-07-20 02:32:52 +02:00
Uwe
b514f47c21
[TD] Gui: remove some superfluous nullptr checks
2022-07-19 02:49:46 +02:00
Benjamin Bræstrup Sayoc
04371d3fca
[TechDraw] Rename icon filenames for consistency
2022-07-09 14:38:30 -04:00
Yorik van Havre
9109ea2610
TechDraw: Allow DraftView command on any object
...
Currently the TechDraw DraftView command only accepts Draft objects
as selected objects. However, the Draft SVG rendering works with
almost anything (or at least it should :) ). This commit raises the
restrictions amd allow the DraftView tool to work with any kind of
selected object.
2022-07-07 13:17:34 +02:00
Wanderer Fan
db89eec8e3
[TD]implement navigation styles
2022-06-24 10:03:02 -04:00
wmayer
0b2c73cf32
Gui: clean-up Selection API
...
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
wmayer
e8f9c8a1d3
TD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
8f786ea6ef
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
luz paz
5c9e629db7
TD: Substitute string 'Dxf' for 'DXF' [skip ci]
...
This fix was suggested by translators on crowdin.
2022-02-20 09:33:56 -05:00
Wanderer Fan
aa6f8c4b14
[TD]migrate DrawingWB projection functions to TechDrawWB
2022-01-29 14:49:15 -05:00
Wanderer Fan
28c5890bc9
[TD] avoid memory leaks by using shared_ptr
...
TD geometry objects are sometimes double deleted. This
change uses shared_ptr instead of raw pointers to manage
deletions.
2022-01-07 13:34:20 -05:00
Uwe
a3023ed0b9
[TD] some style unification
...
automatically done by MSVC
2022-01-03 23:30:43 +01:00
Wanderer Fan
74dc5344d4
[TD]prevent touched but must be execute on DrawPage
2022-01-02 09:48:38 -05:00
wmayer
3fa4a321d3
TD: replace usage of raw pointers of Vertex and Face with shared pointers.
...
This fixes issue 4741: Broken File After Using Landmark Dimension in TechDraw
2021-12-10 14:25:24 +01:00
Tomas Pavlicek
52dcfc64c3
TechDraw - Balloon updates - review based changes
2021-10-08 16:12:01 +02:00
Tomas Pavlicek
b93d049f8e
TechDraw - Balloon updates
2021-10-03 13:43:53 +02:00
Yorik van Havre
966906da96
Merge pull request #4557 from luzpaz/crowdin/whitespaces-substituted-into-code
...
Crowdin: represent whitespace in code instead of in string
2021-05-05 17:18:35 +02:00
luz paz
738a697d94
[TD] remove Py2 code from TD
2021-04-22 13:08:56 +02:00
luz paz
6f83a4a815
Crowdin: represent whitespace in code instead of string
2021-04-19 06:23:07 -04:00
luz paz
f1eb1ff44e
[TD] Renamed ProjectionGroup, Hatch, GeomericHatch
2021-04-17 11:38:10 +02:00
luz paz
035d146d88
[TD] Renamed ClipGroup, ClipGroupAdd, ClipGroupRemove
2021-04-17 11:38:10 +02:00
luz paz
d13e450343
[TD] Renamed SpreadsheetView, RichTextAnnotation, SectionView...
...
`Quadrants`, `DetailView`, `ShowAll`
2021-04-17 11:38:10 +02:00
luz paz
fe3d5d0728
[TD] icon name uniformity (cont.)
...
`WeldSymbol`, `PageDefault`, `PageTemplate`, `Symbol`, `ExportPageSVG`. `ExportPageDXF`, and `Tile`
Moved `icons/arrow*` files further down the list + continuing to sort.
2021-04-17 11:38:10 +02:00
luz paz
751399892a
[TD] icon uniformity for ActiveView and FaceCenterLine commands
...
Renamed SVGs, saved as plain svg, updated appropriate areas in the source code
2021-04-05 14:41:30 +02:00
bitacovir
2f0232c5f0
[UI] Replace SVG icon of TechDraw RedrawPage
2021-04-03 17:58:05 +02:00
Aapo
462dc33d48
[TD] Fix XSource handling of sub-objects of links to another document(s) in TD Views.
2021-02-05 19:19:24 +01:00
Aapo
212381dcf7
[TD] Avoid changing default open/save dir to templateDir when opening a Page template.
2021-01-28 14:54:59 +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
luz paz
e82f7f74f4
Fix Crowdin typos + trim superfluous whitespace [skip-ci]
...
Some issues that this PR fixes (but not all listed):
https://crowdin.com/translate/freecad/27911/en-en#6581578
https://crowdin.com/translate/freecad/27911/en-en#6579080
https://crowdin.com/translate/freecad/27911/en-en#6581580
https://crowdin.com/translate/freecad/27911/en-en#6579086
2020-07-23 13:52:44 +02:00
wmayer
2a50ac2252
PVS: V595 A pointer was utilized before it was verified against nullptr
2020-07-18 10:59:28 +02:00
wmayer
b09d02a576
PVS: V570 A variable is assigned to itself
2020-07-18 10:59:27 +02:00
wmayer
7b72dcb062
Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wandererfan
992d584b20
[TD]handle new identifier for Draft objects
2020-05-20 21:44:26 -04:00
WandererFan
243ce53797
[TD]prevent extra recompute on X,Y change
2020-05-10 11:03:15 -04:00
wandererfan
a3029fec74
[TD]Centralize preference getters
2020-04-24 11:13:49 -04:00
wandererfan
ed105a6f5b
[TD]Use PropertyXLinkList for external Sources
2020-04-14 10:24:29 -04:00
wandererfan
2cfb124ac6
[TD]dialog for Detail #4221
2020-04-08 13:23:28 -04:00
wandererfan
71192a9129
[TD]improve selection filtering for ArchSection
2020-03-19 08:00:53 -04:00
wandererfan
75e1ed95d0
[TD]improve selection filtering for DraftView
2020-03-19 08:00:53 -04:00
wandererfan
99a9964231
[TD]support App::Link in View Source
2020-03-13 09:00:14 -04:00
wandererfan
24da86c913
[TD]trap wrong selection for ArchSection
2020-02-14 07:44:56 -05:00
donovaly
9aff02f7f7
[TD] Command.cpp: restore menu names
...
these 3 have accidentally been changed by commit 2234e6f8
2020-02-04 08:05:50 -05:00
WandererFan
06357db88d
[TD]sync icon names and menu entries
...
- contributed by @uwe
2020-02-03 07:20:52 -05:00
donovaly
efadf25b08
[TD] fix 2 typos
2020-02-03 07:20:52 -05:00
donovaly
abc4aecbfc
[TD] update menu name to fit into the current naming scheme
2020-02-03 07:20:52 -05:00
wandererfan
9d9d41bcd0
[TD]correct alignment of Section & Detail with Base
2019-11-27 07:31:45 -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