Commit Graph

46 Commits

Author SHA1 Message Date
wmayer
a99be14233 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Benjamin Bræstrup Sayoc
4f9e5cd464 Improve code simplicity/readability 2022-02-01 09:10:36 -05:00
luz paz
73d330b0c8 [TD] Renamed ProjectionGroup, Hatch, GeomericHatch 2021-04-17 11:38:10 +02:00
donovaly
b5f57ed2f0 [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
luz paz
a3cb87b117 TechDraw: Header uniformity and whitespace fixes 2020-11-14 16:59:51 +01:00
wmayer
16f953ad65 PVS: V1004 A pointer was used unsafely after it was verified against nullptr 2020-07-18 10:59:27 +02:00
donovaly
e50db2ed78 [TD] add spacing to ProjGroup dialog
Add the setting to auto-distribute projections to the dialog
2020-06-21 08:22:49 -04:00
donovaly
74b2321cbf Merge branch 'master' of github.com:FreeCAD/FreeCAD into TD-DetailWork 2020-05-09 01:36:49 +02:00
wandererfan
0a3f7ae312 [TD]handle ProjectionAngle changes 2020-04-24 11:13:49 -04:00
donovaly
6d06bdffb5 [TD] some Detail View fixes
see https://forum.freecadweb.org/viewtopic.php?f=35&t=45236&p=388925#p388925 for a description of the changes
2020-04-18 14:56:01 +02:00
wmayer
ec8b1bc072 [skip ci] use QLocale class consistently to make it possible to change it application-wide 2020-03-26 16:37:45 +01:00
donovaly
914edfc2ce TD renaming tools
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
5bb659e7e2 [TD]Transition to on demand page updates ph1 2019-10-23 14:19:52 -04:00
Zheng, Lei
62423cb79a TechDraw: fix projection group editing update 2019-08-17 15:32:51 +02:00
wandererfan
198c2258d4 Remove superfluous updates
- under certain conditions, unnecessary screen paints
  were being performed.
2019-03-07 10:58:28 +01:00
wandererfan
859fed207d Fix double scaling in DPG AutoScale 2018-09-26 16:59:39 +02:00
wandererfan
3163c3d6f5 Fix late repaint of secondary views
- when ScaleType=Automatic and Scale changes
  individual views were not being repainted until
  next document recompute.
2018-09-26 16:59:12 +02:00
wandererfan
aa8feb79d0 Use Face or 3D direction for View and ProjGroup
- use current 3D window direction as starting
  direction for DrawViewPart and ProjectionGroup
- if a Face is selected, use Face normal as
  starting direction.
2018-09-06 08:00:00 +02:00
TeroK
2c12881811 Fixed indentation 2018-01-07 18:39:47 -02:00
TeroK
23f2a444c3 Fixes #3294 TechDraw: Prevent scale changing
Now scale number changing controls are disabled by default and enabled only in
Custom Scale mode.

Previously user was all time allowed to edit scale numerical values.
But this had effect on the size of generated views in drawing page only
when scale type was set to Custom.
2018-01-07 18:39:47 -02:00
WandererFan
3c790009a7 Fix calculation of integer scale
- conversion of <double> scale to/from integer scale
  n:d was generating odd fractions and overflowing
  spinboxes in ui.
2017-11-12 19:08:33 -05:00
WandererFan
d27b8387e8 Eliminate superfluous DPG executes 2017-09-10 15:22:49 +02:00
WandererFan
cbf42ad3b0 Coverity fixes
151677
151789  - OK as is
152005
152508
154871  - false positive
156593
163235
2017-07-17 19:47:44 -03:00
WandererFan
17b69c7c3a Replace DPG table lookup logic with calculations
DPG used a pair of large tables to determine view
direction and rotation vector when subject was rotated
and spun.  There were many errors in the tables that
needed manual checking to correct.  The new version
uses calculations on a virtual glass cube to find view
direction and rotation vector.
2017-06-23 08:14:46 +02:00
WandererFan
49c2be14ba Fix potential race when cancelling DPG creation 2017-01-29 19:40:34 -05:00
WandererFan
16ce8d40f5 Section directions from rotated DPGI's 2016-12-29 14:43:37 +01:00
WandererFan
139edb2415 Working revolving part DPG 2016-12-29 14:43:25 +01:00
WandererFan
90935d0600 Reset/Match 3d buttons working 2016-12-29 14:43:13 +01:00
WandererFan
93fb9273dd Working proof of concept for DPG rots & dirs 2016-12-29 14:43:00 +01:00
wmayer
76c529d47d fix CIDs 154889, 151939, 151763, 154892, 154891, 151802, 151936, 151803, 153359 2016-12-18 14:12:13 +01:00
wmayer
df8f7cfb7e fix CIDs 154873, 154874, 153875, 153876, 154883, 154884, 154886 2016-12-18 13:27:34 +01:00
WandererFan
867c6e1341 Remove old debug message 2016-12-08 14:51:10 -05:00
WandererFan
065156eed5 Prevent crash when no document open 2016-12-04 15:26:54 +01:00
WandererFan
429eb0f727 DPG improvements
eliminate orientation matrix
remove appl logic from dialog
add 3D/Front buttons
2016-12-04 15:25:47 +01:00
WandererFan
707681534a Improve ProjectionGroup dialog
Text to icons in dialog
Fix rotation directions
2016-12-04 15:25:32 +01:00
wmayer
3b961bcb5f + add convenience method recomputeFeature()
+ make method recompute() protected
2016-11-06 17:16:50 +01:00
WandererFan
6e7c4bc838 Rename "Document" selection value to "Page" 2016-10-31 11:06:15 -02:00
WandererFan
a5a20701a7 Fix ProjectionGroup Automatic scaling 2016-10-31 11:06:15 -02:00
WandererFan
a912ccd9bb Correct delayed update when adding views to ProjectionGroup 2016-10-31 11:06:15 -02:00
wmayer
c457fc468c fix -Wextra & -Wdeprecated in TechDraw 2016-09-22 19:32:16 +02:00
WandererFan
254b28ea77 Fix #2692 TaskProjectGroup cancel button 2016-09-11 13:12:24 -04:00
WandererFan
27ff991d79 Fix ProjectionGroupItem spacing 2016-09-01 12:14:42 -04:00
WandererFan
19968205d2 Include file cleanup per cppclean analysis 2016-07-14 14:39:06 +02:00
WandererFan
96d817e280 Fix #41 Projoection Group Spacing
Fix glitch when change First <-> Third Angle
2016-07-11 15:32:16 +02:00
WandererFan
cb25c494de misc /Mod/Drawing, QGI, obs functions 2016-07-11 15:32:16 +02:00
WandererFan
7c009c6def Add Mod/TechDraw/Gui 2016-07-11 15:32:16 +02:00