Commit Graph

94 Commits

Author SHA1 Message Date
Uwe
b2bb479788 [TD] last part of removal of superfluous nullptr checks 2022-07-20 12:17:16 +02:00
Uwe
b81d7e4864 [TD] remove some more superfluous nullptr checks 2022-07-20 11:54:28 +02:00
Uwe
5486c9808d [TD] remove some more superfluous nullptr checks 2022-07-20 02:53:48 +02:00
Uwe
36add10c86 [TD] App: remove some superfluous nullptr checks 2022-07-19 02:03:50 +02:00
Wanderer Fan
4f03c996bd [TD]fix ProjGroup view spacing 2022-06-18 14:34:28 -04:00
Wanderer Fan
2a03c3a38c [TD]fix dimension update on scale change 2022-06-18 14:34:28 -04:00
Wanderer Fan
e937e4b97f [TD]Fix group item moving when locked 2022-05-13 13:41:37 -04:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
84ae226ec6 TD: PR6497 move return statement to new line 2022-03-29 13:26:01 -05:00
wmayer
e8f9c8a1d3 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
437a89e42a [TD]fix ScaleType change behaviour 2022-03-07 09:30:39 -05:00
Benjamin Bræstrup Sayoc
7edfd902a3 Improve code simplicity/readability 2022-02-01 09:10:36 -05:00
wandererfan
e0c80824de [TD]DPG spacing for oblique views 2020-07-07 15:26:20 -04:00
donovaly
b2250aad0b [TD] add missing update for Projection Group
currently when changing the scale or spacing this change is not taken into account until one explicitly marked the ProjGroup for recomputation
2020-06-15 08:04:14 -04:00
WandererFan
243ce53797 [TD]prevent extra recompute on X,Y change 2020-05-10 11:03:15 -04:00
wandererfan
8b7d9ee749 [TD]handle ProjectionAngle changes 2020-04-24 11:13:49 -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
donovaly
6ca84a5d6a [TD] add missing repaints for DrawView
- this enables to see e.g. changes of the rotation of all kinds of views directly

- also fix a bug, see https://forum.freecadweb.org/viewtopic.php?f=35&t=44571
2020-03-26 08:08:41 -04:00
wandererfan
99a9964231 [TD]support App::Link in View Source 2020-03-13 09:00:14 -04:00
wandererfan
d2a8571737 [TD]fix autoscale for DPG 2020-02-14 07:44:56 -05:00
donovaly
07ca5b9d39 TD: DrawProjGroup: add units for spacing
-also improve some tooltips
2019-12-10 06:50:27 -05:00
wandererfan
566894c945 [TD]use XDirection to align DPGI in DPG 2019-11-27 07:31:45 -05:00
wandererfan
9d9d41bcd0 [TD]correct alignment of Section & Detail with Base 2019-11-27 07:31:45 -05:00
wandererfan
e64929de14 [TD]const-ness for dump function parameter 2019-11-10 15:58:45 -05:00
wandererfan
251e16b6f1 [TD]Transition to on demand page updates ph1 2019-10-23 14:19:52 -04:00
Zheng, Lei
28a0cc1019 TechDraw: avoid touching children if possible
There are lots of dependency inversion problem in TechDraw, the ideal
organization should let a child depend on project group, instead of the
other way round, e.g. using PropertyLinkListHidden.

This patch is just a cheap fix. The problem occurs when the user uses
any expression to update properties like Scale in a projection group.
The Scale property will be changed on recomputing projection group,
which triggers children update, but since the group depends on the
children, the children has already been recomputed.
2019-08-30 14:47:05 +02:00
Zheng, Lei
e90d09dc40 TechDraw: Link related changes
* Support link and group objects

* Support view sync by implementing view provider API getMDIView()

* Use handleChangedPropertyType() for object migration instead of
  reimplementing Restore() because of a lots of changes in
  PropertyContainer::Restore().

* Various other small fixes.
2019-08-17 15:15:46 +02:00
wandererfan
fd3d6d8091 Hide Caption property where not applicable 2019-06-01 15:59:26 -04:00
wandererfan
eed275d63f Fix crash on malformed python script 2019-05-13 12:29:15 -04:00
wandererfan
4492576c6b Fix coverity CID 151722 2019-04-05 19:35:26 -04:00
wandererfan
86cc2641bc Ensure ProjGroup is created before child 2019-03-07 10:58:29 +01:00
wandererfan
e29c610993 Replace static_cast with dynamic_cast
- replace all static_cast with dynamic_cast + error test
2019-03-07 10:58:28 +01:00
wandererfan
d58b86c52f Fix segfault on missing Anchor view
- test script did not create Anchor(Front) view.  DPG/DVP did not
  handle missing Anchor properly
2019-03-07 10:58:28 +01:00
wandererfan
db3a69ba11 Remove superfluous updates
- under certain conditions, unnecessary screen paints
  were being performed.
2019-03-07 10:58:28 +01:00
wandererfan
fa5fb1ea9c Fix bad highlight position in Detail from ProjGroup 2019-02-22 11:55:21 +01:00
wandererfan
5259134af3 Fix update of children on parent LockPosition change 2019-02-14 21:14:11 +01:00
wandererfan
9de6ff802a Restore secondary ortho view movement to v017 style
- this should also complete the fix for #3809
2019-02-14 21:14:11 +01:00
wandererfan
2240ba0e2a Fix #3810 X/Y Property Update on Locked View
- fixes x/y update when position locked for simple
  Views and ProjectionGroups.
2019-02-14 21:14:10 +01:00
wandererfan
f92ddb961c Hide n/a Rotation property
- DPG does not rotate, but shows Rotation property in
  Property Editor
2019-01-30 10:12:49 -02:00
wandererfan
242717f5e3 Fix out of scope warnings
- Links within TD were not set to Global scope. This caused
  problems when a Page was in a container, but Views were not
  in the container.
2019-01-22 10:15:04 -02:00
wandererfan
79504462d1 Fix movement of Front View in ProjectionGroup 2019-01-21 11:45:30 +01:00
wmayer
d7ec2b1368 Replace Base::Exception with appropriate subclass 2018-11-14 19:42:10 +01:00
wandererfan
cf738047d4 Fix double scaling in DPG AutoScale 2018-09-26 16:59:39 +02:00
wandererfan
f2c6edbb19 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
95f95d54fb 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
wandererfan
38759a5b1b Fix propagation of Source property to children 2018-08-18 21:59:05 +02:00
wandererfan
dbaff50edb Fix Dimension update on DPG Scale Change 2018-08-11 11:24:13 +02:00
wandererfan
f9aa3ea957 Fix iso View position in AutoDistribute 2018-07-31 16:08:48 -03:00
wandererfan
ecb29f1dbf Add preference settings
- autodistribute, vertex size, vertex color
2018-07-23 12:47:17 -03:00