Commit Graph

478 Commits

Author SHA1 Message Date
WandererFan
bdba11d965 Dimension Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
02b64dca3a VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
WandererFan
cbca02f7f3 HatchColor & HatchScale prop to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
6fa92cb188 KeepLabel Property to Gui side 2018-02-14 15:42:25 -05:00
WandererFan
bf0d94458a 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
6b930016c8 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
8b32757376 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/e69a825.
  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
56280b1ffb Fix Unrequested Page Zoom
- Page zoomed out after updating editable
  text.
2018-02-11 20:07:57 +01:00
WandererFan
a9d7852942 Add 2 templates
- add templates for wiki howto example and US
  letter size
2018-02-11 20:07:57 +01:00
WandererFan
f24da28239 Allow ProgGroup Item AutoPosition from Python 2018-02-11 20:07:57 +01:00
WandererFan
6fb1972875 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
172eab4fc2 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
39c5848d44 Show Page Label in Tab 2018-02-06 13:58:00 -05:00
WandererFan
b812f8bea8 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
0ea5b9923b 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
abada49d33 Show Dimension text on Document load
- if keepUpdated is off, Dimension text never
  gets shown.
2018-02-01 17:01:13 -05:00
WandererFan
d7544b4223 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
e7e74aba0d 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
7252a8898b 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
a0ed53c5ed fix -Winconsistent-missing-override 2018-01-28 00:30:56 +01:00
wmayer
f21a855631 fix -Winconsistent-missing-override 2018-01-28 00:20:11 +01:00
WandererFan
613ecd478d 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
eafba8cbfe Fix Exception when Source Shape IsNull 2018-01-22 19:10:28 -05:00
TeroK
61b202992c 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
c58a7d9785 Remove NewViewMulti from toolbars/menu 2018-01-20 14:07:31 +01:00
WandererFan
4f2fe1d1a5 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
a858c3b9be 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
60e43253f7 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
1e7aa621f1 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
442892ffa7 Fixed indentation 2018-01-07 18:39:47 -02:00
TeroK
c5e5958a6e 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
c94bb4d2f8 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
e8a76cd2e8 TechDraw LabelFont defaults 2017-12-31 15:09:13 +01:00
luzpaz
3c53da4e35 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
df16d730ce TechDraw Prefs page 1 defaults & tooltips 2017-12-31 14:54:05 +01:00
WandererFan
d84ee2b131 Fix LineGroup install & default issues 2017-12-31 14:54:05 +01:00
WandererFan
71253bad81 Fix crash when Source.Shape is Null 2017-12-31 14:54:05 +01:00
WandererFan
815d8bed0a Fix crash during multi-object delete 2017-12-31 14:54:05 +01:00
WandererFan
0549caf2cb Support old Source property (PropertyLink)
- Source is now PropertyLinkList
2017-12-31 14:54:05 +01:00
WandererFan
d9b71fb754 LinkScope clean up 2017-12-31 14:54:05 +01:00
WandererFan
309178f2ff Allow multiple sources for all View types 2017-12-31 14:54:05 +01:00
WandererFan
8ecc370a40 Coverity 169507 2017-12-31 14:54:05 +01:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
WandererFan
e2655bc726 Allow user to modify Vertex size by parameter 2017-12-11 13:17:05 +01:00
WandererFan
622d91f743 Implement option for perspective drawing views 2017-12-03 19:17:53 -02:00
WandererFan
5b19abb0dd Fix "still touched after recompute" and display 2017-12-03 19:17:53 -02:00
Unknown
88f6ecc118 SVG Cleanup: remove typos + uniformity fixes 2017-12-02 14:02:14 +01:00
Unknown
198ba0a123 SVG cleanup: remove all redundant <dc:title> content
Removed duplicate mentions of `[agryson] Alexander Gryson`
2017-12-02 14:02:14 +01:00
luzpaz
985980648c 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
bb40f9737e remove trailing whitespace 2017-12-02 13:54:07 +01:00