Commit Graph

457 Commits

Author SHA1 Message Date
WandererFan
da1d69ce4c Relax regex for editable text in Template
- 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>.
2018-01-26 17:45:31 -05:00
WandererFan
45a1d6c906 Fix Exception when Source Shape IsNull 2018-01-22 19:10:28 -05:00
TeroK
434bf4d3f3 TechDraw: Add option to use polygonal HLR algorithm
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.
2018-01-22 19:31:30 +01:00
WandererFan
a3684424ae Remove NewViewMulti from toolbars/menu 2018-01-20 14:07:31 +01:00
WandererFan
4b9f43b467 Allow GroupExtension as Source for Views
- DrawViewPart had special case logic for App::Part.
  It now handles DocumentObjectGroup and any other
  GroupExtensions as Source.
2018-01-20 14:07:31 +01:00
WandererFan
79dff6b8cc Fix crash when deleting View with Dimensions
- 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.
2018-01-12 10:30:42 -02:00
WandererFan
861dc42d33 Fix Section Line Wrong Position
- Section cut line Y coord needs to be mirrored to
  be position correctly on Page.
2018-01-11 11:21:25 -02:00
WandererFan
70099d5704 Allow View Position to be Locked
- prevents accidently moving View A from desired position
  while grabbing/dragging View B.
2018-01-11 11:21:25 -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
d1e83f1075 Fix crash in DrawViewDraft/DrawViewArch
- 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.
2018-01-07 18:37:34 -02:00
triplus
f34659a29f TechDraw LabelFont defaults 2017-12-31 15:09:13 +01:00
luzpaz
a866b420d2 TechDraw: Crowdin request to remove apostrophes in translation string
This was green-lit by @wandererfan in a private message on the forum. 
ref: https://crowdin.com/translate/freecad/27911/en-hu#6503436
2017-12-31 15:03:50 +01:00
WandererFan
87b360e557 TechDraw Prefs page 1 defaults & tooltips 2017-12-31 14:54:05 +01:00
WandererFan
c548878069 Fix LineGroup install & default issues 2017-12-31 14:54:05 +01:00
WandererFan
55f050e0f5 Fix crash when Source.Shape is Null 2017-12-31 14:54:05 +01:00
WandererFan
553fa64ec4 Fix crash during multi-object delete 2017-12-31 14:54:05 +01:00
WandererFan
98be3a3ff7 Support old Source property (PropertyLink)
- Source is now PropertyLinkList
2017-12-31 14:54:05 +01:00
WandererFan
76373b2c6a LinkScope clean up 2017-12-31 14:54:05 +01:00
WandererFan
e163ae1746 Allow multiple sources for all View types 2017-12-31 14:54:05 +01:00
WandererFan
7eba113600 Coverity 169507 2017-12-31 14:54:05 +01:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
WandererFan
87271d0cbb Allow user to modify Vertex size by parameter 2017-12-11 13:17:05 +01:00
WandererFan
7588081afd Implement option for perspective drawing views 2017-12-03 19:17:53 -02:00
WandererFan
5bc256d3f2 Fix "still touched after recompute" and display 2017-12-03 19:17:53 -02:00
Unknown
9831dfe531 SVG Cleanup: remove typos + uniformity fixes 2017-12-02 14:02:14 +01:00
Unknown
3d9ecab346 SVG cleanup: remove all redundant <dc:title> content
Removed duplicate mentions of `[agryson] Alexander Gryson`
2017-12-02 14:02:14 +01:00
luzpaz
56111a0810 Typos: user-facing and trivial
Several typos and uniformity fixes.
Note: 
*SCL/SimpleDataTypes.py is a upstream stepcode file whose fiz has been submitted upstream and accepted.
*the header of Tools/generateBase/generateMetaModel_Module.xsd  had redundant data. It has been removed. Please double check it.
2017-12-02 14:00:57 +01:00
wmayer
af0477fc4a remove trailing whitespace 2017-12-02 13:54:07 +01:00
WandererFan
15b509db25 Implement LineGroups for default weights
- Add ability to control default weight for visible,
  hidden and decorative lines from a configuration
  file. Diffent sets of defaults can be specified as
  a preference.
2017-12-02 13:51:25 +01:00
luzpaz
56af703746 Fix Techdraw UI typo found via crowdin + misc. typos
Ref: https://crowdin.com/translate/freecad/27911/en-eu#6503377
2017-11-26 15:48:20 +01:00
WandererFan
447d4816ce Fix #3224 Seg Fault in DrawProjGroup
- QGIViews for DrawProjGroupItem were not being deleted since
  DPGI belongs to DPG, not DrawPage.  Since there is a 1 to 1
  relationship between MDIViewPage and DrawPage, the check for
  membership in DrawPage is unnecessary.
2017-11-24 20:03:02 -05:00
WandererFan
7de79e7997 Fix #2967 Ph2 Do not show page on restore.
- phase 1 of this fix displayed an empty Page when
  restoring with Preference set to "Do Not Keep Pages
  Up To Date".  Ph2 does not show the Page at all.
2017-11-24 20:03:02 -05:00
luzpaz
706141b967 Make uniform the use of B-spline visible to users
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=25411
This commit does not include fixes to source  comments unless they were 'doxygenated'.
No .xml files were altered either.
2017-11-17 19:30:37 -05:00
Yorik van Havre
9c4b31a4aa TechDraw: Updated translation scripts 2017-11-16 17:12:52 -03:00
WandererFan
9a3a98c303 Correct sceneRect when Template size changes 2017-11-16 10:31:14 -05:00
Sebastian Bachmann
15d1b80df7 Adding a 20mm border
A4 Landscape is a special template, as it is new in the standard.
We orient us on the A4 portrait template, where the border is on the
left side (e.g. long side). Thus it should be on top for the
landscape template.
2017-11-16 14:36:53 +01:00
WandererFan
4ea6204d2e Fix Dimension value format with Qt5
- Dimension values were displayed as zero for locales
  with "," decimal point in Qt5.
2017-11-12 19:08:33 -05: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
9d038ddf60 Make decimal point optional in FormatSpec 2017-11-12 19:08:33 -05:00
WandererFan
196dd536e0 Fix QGIVSymbol positioning/rotation 2017-11-12 19:08:33 -05:00
WandererFan
88b15ffdf1 Poistioning and Rotation for QGIVAnnotation 2017-11-12 19:08:32 -05:00
WandererFan
600962362c Fix QGIVImage positioning/rotation 2017-11-12 19:08:32 -05:00
WandererFan
44fd200166 Rotate DrawViewPart around part centroid 2017-11-12 19:08:32 -05:00
WandererFan
c70c6b15f7 Remove incorrect .qm/.ts files
- TechDraw translations directory contains old files based on
  Drawing module.
2017-11-05 18:44:49 +01:00
wmayer
7ea6b0e19e use scoped connection to automatically disconect on deletion 2017-11-01 14:13:57 +01:00
Yorik van Havre
cfe2d134a2 Updated translations from crowdin 2017-10-23 18:32:02 -02:00
WandererFan
3d7a4b9db6 Fix 3215 - ViewDetail does not handle Scale correctly 2017-10-19 13:24:19 +02:00
WandererFan
4e474cf60b Handle variable UoM schemes in Dimensions 2017-10-19 13:24:08 +02:00
wmayer
46d516b465 fix coverity issue 2017-10-15 21:08:04 +02:00