changeing the line weight for dimensions to a thin line
and get the font size for detail view labels from the configuration
rather than using a hardcoded value.
Also removing a duplicate method, as it is already implemend in the
parent class.
using custom QT pen styles, the center and section lines look much
better.
With some math we are also able to control the middle position, thus
the centerlines will always look good, regardless of the size of an
object.
Also getting the section label size from the settings, so the font
size is controllable and not hardcoded.
Bonus: adding blank templates for the common paper sizes (as the
Drawing WB has them)
- Page window is removed in two places. Problem with
display of 3D window when Page window closed was fixed
by http://github.com/FreeCAD/FreeCAD/commit/1d83d17.
This commit makes the code for Page object delete
consistent, but doesn't fix the problem with display
of 3D window.
- if a scale transform with scale = 0 is passed to
BRepBuilderAPI_Transform, it will loop forever.
If Page.keepUpdated is false, and Views have not yet
been executed (ex at load time), Views will have a
0.0 x 0.0 bbox and if Autoscale is true, a scale of
0.0 will be used in fit-to-page.
Allow unit test to run in console mode
Change to unique document names for each unit test
Fix error in CMake install for test files
Correct Py3/Py2 unicode error
- the regex for finding editable text fields in
the svg code of Templates was too strict and
missed some fields if the svg had extra characters
between </tspan> & </text>.
Now on property panel there is option 'Coarse View' which allows to set
selected drawing view's Hidden Line Removal to utilize polygonal algorithm.
This should be faster on same cases (complex models).
When this option is set for a view there is known limitation with dimensions not
working on this experimental mode. At least currently this is best utilized on
view with no dimensions.
Also the vertices' 'black dots' are not drawn on this mode view to avoid
cluttering. Face hilite is avoided, to gain speed. All curves are represented
by short linesegments in this mode.
Previously TechDraw always used OCC's exact HLR algorithm to generate views,
which produces good quality and continous shape lines but is sometimes
slower to generate than with polygonal approach.
Additionally now there is bool 'CoarseView' Parameter Editor setting, if anyone
wants to set this as their default.
- if a Dimension has multiple references to a
DrawViewPart (ex vertex-vertex) the Dimension
will appear twice in the DVP's InList. This
commit ensures that the Dimension is only
deleted once when deleting the DVP.
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.
- when restoring DVD/DVA from old files, convert Source from
PropertyLinkGlobal to PropertyLink with Scope = Global. Note
subtle difference from Restore method in DrawView - PropertyLink
vs PropertyLinkList.