Commit Graph

501 Commits

Author SHA1 Message Date
wmayer
578d7b2876 fix typos in German translation 2018-03-27 10:47:52 +02:00
Yorik van Havre
d4f835ab39 Merged translations from crowdin 2018-03-26 18:52:02 -03:00
wmayer
fa26b06c9c repair French and Finnish translation files 2018-03-22 14:40:14 +01:00
luz.paz
b45bc4889d Misc. typos: Please merge right before 0.17 release
I'm still finding typos in the source code. I propose that you keep this PR open prior ro relaese and then merge  so that if I find other typos in the meantime they will be part this release.
2018-03-18 15:15:16 +01:00
wmayer
5109e15889 TD Translation fixes 2018-03-18 15:12:39 +01:00
luz.paz
f97e28bdb1 TD Translation fixes 2018-03-18 14:30:52 +01:00
wandererfan
c02ddba1fb Fix display of Edge/Edge horiz/vert Dims 2018-03-11 20:43:16 -04:00
wandererfan
9d26fe0599 Preserve setting across language change 2018-03-11 21:33:59 +01:00
wandererfan
2b35fd173a Correct delayed scaling of center/section lines 2018-03-11 21:33:59 +01:00
wandererfan
7cde0236f1 Prevent translation of LineGroup name 2018-03-11 21:33:59 +01:00
wandererfan
4880eff86d Sync code default values with Pref defaults 2018-03-11 21:33:59 +01:00
WandererFan
be3b4d8881 Fix #2624 Draft Patterns Not Installed 2018-03-08 12:02:59 +01:00
WandererFan
11ad76b82e Fix Bad View Position on Add to Clip 2018-03-08 11:24:31 +01:00
WandererFan
02eadc950f Use Unit Aware Spinbox in Prefs
- use length aware spinboxes for font and
  arrow sizes in TechDraw preferences.
2018-03-08 11:12:45 +01:00
wmayer
8c6b4ad1a6 fix German translation 2018-03-03 23:37:15 +01:00
wandererfan
449dbe13eb Fix painting of detail highlight
- painting of the detail highlight in the base
  view was being delayed until the base view
  was updated. It is now drawn when detail
  changes.
2018-03-03 11:22:15 -03:00
Sebastian Bachmann
efa8ceb303 TechDraw: small corrections for line sizes
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.
2018-03-02 10:48:55 -03:00
WandererFan
8a26554eda Fix Dimension Response to Changed X/Y
- Dimensions in Gui were not responding to changes in
  the Feature's X/Y properties.
2018-02-28 18:38:59 -05:00
WandererFan
1700f36104 Use PrefFontBox for TD Label Font Selection
- was PrefLineEdit.
2018-02-27 14:30:21 -05:00
Sebastian Bachmann
c41363c117 TechDraw: new center/section draw style
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)
2018-02-24 16:58:17 +01:00
WandererFan
c606bbbcba Fix DrawViewAnnotation TextSize
- text size was originally specified in integer
  point size.  Now they are specified in mm. The
  relevant Properties have been changed to
  PropertyLength.
2018-02-22 19:17:40 +01:00
Yorik van Havre
12f3258ded Applied latest translations from crowdin 2018-02-21 14:25:31 -03:00
WandererFan
f07d3a177f Fix default GeomHatch weight 2018-02-14 15:42:26 -05:00
WandererFan
679f26af58 Dimension Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
99fcba4992 VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
78f4d91b95 HatchColor & HatchScale prop to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
033077f76f KeepLabel Property to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
4aae6e1554 Remove unneeded code, add menu item
- remove code for updating tab with Page label
  (handled in MDIView)
- add context menu item to toggle Page
  KeepUpdated property
2018-02-12 21:57:15 +01:00
WandererFan
973da7d3e6 Avoid affecting other Tabs when Page deleted.
- when Page object was deleted, closing the Page's
  tab would have undesired effect on 3D tab. Now Page
  delete does not affect other tabs.
2018-02-12 21:57:15 +01:00
WandererFan
83806936c9 Change removeWindow logic for consistency
- 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.
2018-02-11 20:07:57 +01:00
WandererFan
7349a66cf9 Fix Unrequested Page Zoom
- Page zoomed out after updating editable
  text.
2018-02-11 20:07:57 +01:00
WandererFan
3da2c0c180 Add 2 templates
- add templates for wiki howto example and US
  letter size
2018-02-11 20:07:57 +01:00
WandererFan
4f291f7305 Allow ProgGroup Item AutoPosition from Python 2018-02-11 20:07:57 +01:00
WandererFan
0a7340b9e9 Fix hidden click handles on Templates
- on some Templates, the green click handles for
  editing text were being painted under the Template
  and were not visible.
2018-02-07 19:05:25 +01:00
WandererFan
540b2dc79e Correct Selection When Multiple Pages
- when inserting a new View in a document with
  multiple Pages, the View did not always get
  added to the proper Page.
2018-02-06 13:58:00 -05:00
WandererFan
2ca7912d19 Show Page Label in Tab 2018-02-06 13:58:00 -05:00
WandererFan
02d318f89d Prevent Page Template Interference
- adding a 2nd+ Page with a different Template
  modified the existing Page's Template
2018-02-06 13:58:00 -05:00
WandererFan
37644285d6 Fix CmdTechDrawProjGroup Selection Criteria
- CmdTechDrawProjGroup was not allowing Body or
  App::Part to be selected as Source for new
  ProjectionGroup even though DPG handles
  both.
2018-02-02 15:39:01 -05:00
WandererFan
ebf33403e6 Show Dimension text on Document load
- if keepUpdated is off, Dimension text never
  gets shown.
2018-02-01 17:01:13 -05:00
WandererFan
356f879659 Prevent Loop in BRepBuilderAPI_Transform
- 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.
2018-02-01 17:01:12 -05:00
WandererFan
6bd237e41e Update TechDraw Unit Test set
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
2018-02-01 19:34:04 +01:00
WandererFan
7d6f6dd933 Correct Scaling/boundingRect of Svg Symbols
- Svg symbols were over scale and reporting their
  boundingRect incorrectly.
2018-01-29 22:35:47 +01:00
wmayer
ed893ff504 fix -Winconsistent-missing-override 2018-01-28 00:30:56 +01:00
wmayer
0718e2c56a fix -Winconsistent-missing-override 2018-01-28 00:20:11 +01:00
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