Commit Graph

18448 Commits

Author SHA1 Message Date
Zheng, Lei
bb3baefdb5 Gui: refactor bounding box selection style
Previously, box style selection is rendered using customized
SoBoxSelectionRenderAction, which does not support selection context,
i.e. it does not work with Link.

This patch implements context aware bound box rendering inside
SoFCSelectionRoot, SoFCSelection and SoFCPathAnnotation (for always on
top rendering). The box rendering in SoBoxSelectionRenderAction is
disabled on construction. Box style selection can be enabled for
individual object through property SelectionStyle (moved from
ViewProviderGeometryObject to ViewProviderDocumentObject), or globally
through Parameter BaseApp/Preferences/View/ShowSelectionBoundingBox.

In addition, the parameter BaseApp/Preferences/View/UseNewSelection is
used to override selection model reported from
ViewProvider::useNewSelectionModel(). The reason being that, the same
parameter is already used to toggle selection model inside
SoFCSelection. This avoids inconsistency of selection model choice
between view provider and the SoFCSelection node inside. Note that if
the parameter 'UseNewSelection' is set to false, those view providers
that choose old selection model will not work with Link.
2019-10-08 09:56:09 +02:00
triplus
d6a1ef125e Travis - remove workaround due to more time granted 2019-10-08 08:56:08 +02:00
vocx-fc
ac66a65cb2 Draft: added missing file Draft_Dimension_Tree.svg 2019-10-08 08:54:40 +02:00
Tomas Pavlicek
d54633183c TechDraw - Fix Annotation and Symbol international characters mangling 2019-10-07 16:56:09 -04:00
Bernd Hahnebach
f5768441a6 Arch: IFC import, better debug message for skipped objs in non parametric import mode 2019-10-07 21:53:12 +02:00
Yorik van Havre
f6d4c06ce9 Draft: Fixed copying of windows 2019-10-07 15:46:16 -03:00
Yorik van Havre
2f07f13e9d Arch: Adjust height of objects inside groups 2019-10-07 15:33:28 -03:00
Bernd Hahnebach
c8df73d756 Gui: fix ui file, introduced with 88d7870 2019-10-07 19:51:43 +02:00
wmayer
6222cb310b add method RotationPy.toMatrix() 2019-10-07 19:27:54 +02:00
wmayer
edcb33f120 improve RotationPy::number_power_handler: make computation more efficient and less prone to round-off errors 2019-10-07 19:23:14 +02:00
M G Berberich
4f13d25933 Draft circular array
Adds a circular array case to the Draft Array.

Parameters are: radial and tangential distance, number of circles,
symmetry-axes, axis and center of rotation.

see https://forum.freecadweb.org/viewtopic.php?f=13&t=39726 (german)
2019-10-07 13:53:10 -03:00
M G Berberich
fcb021a4dd Circular Array
ciruclar array for Draft workbench
2019-10-07 13:53:10 -03:00
luz.paz
14847c934f Docs: Update Prefs > General > 'General' tooltips
Update the tooltips for the 'General' tab.
2019-10-07 13:49:33 -03:00
Syres916
8d11ced84b [Draft] Wire To BSpline fix to show new object
Discussion https://forum.freecadweb.org/viewtopic.php?f=8&t=39466
2019-10-07 13:45:25 -03:00
vocx-fc
7a655c25de Draft: DraftTools, place the CubicBezCurve tool before the BezCurve, as the cubic curve is more used. 2019-10-07 13:45:01 -03:00
vocx-fc
e731d08c38 Draft, makeBezCurve(), changed parameter Degree to degree, preferred lowercase 2019-10-07 13:44:25 -03:00
Zheng, Lei
f6ad70195f App: fix dynamic property undo/redo
Instead of enforce property type match when undo/redo, modify various
property Paste() to make it type safe.
2019-10-07 17:24:31 +02:00
Zheng, Lei
cc94eb9966 Base: add RotationPy.RawAxis
Expose rotation raw axis
2019-10-07 17:24:31 +02:00
Zheng, Lei
4bf4444d81 App: add DocumentObjectPy.evalExpression()
Allow easy evlauation of expression.
2019-10-07 17:24:31 +02:00
Zheng, Lei
d68de72578 Gui: sync expression change in property editor
This patch fixes two problems,

When one property item is assigned an expression, auto remove any parent
and child item expressions to avoid expression conflicts.

Disable value update when an property item or any of its parents are
bound by an expression.
2019-10-07 17:24:31 +02:00
Zheng, Lei
1ff5c2f720 Gui: fix missing expression highlight in property editor 2019-10-07 17:24:31 +02:00
Zheng, Lei
0e6ad2056b Gui: fix missing auto update when edit property expression
It only happens when editing expression through property editor context
menu action.
2019-10-07 17:24:31 +02:00
Zheng, Lei
d004278209 Gui: fix ExpLineEdit::apply()
ExpLineEdit was originally created for editing PropertyString with
optional expression. It has since been extended to be used by any type
of property.
2019-10-07 17:24:31 +02:00
Zheng, Lei
db89713160 Gui: fix ExpressionBinding::apply()
Remove extra '.' because of newly introduced local property referencing
syntax.
2019-10-07 17:24:31 +02:00
Zheng, Lei
1ae4e536ff Spreadsheet: add test case for operation on matrix/placement/rotation 2019-10-07 17:24:31 +02:00
Zheng, Lei
43d4b9a497 Spreadsheet: column/row select on right click 2019-10-07 17:24:30 +02:00
Zheng, Lei
c061a4df7e Spreadsheet: improve cyclic dependency exception handling 2019-10-07 17:24:30 +02:00
Zheng, Lei
2df4fb754b App: add Expression built-in function mscale/minvert/create
mscale(matrix,vector|tuple) for scaling matrix

minvert(matrix|placement|rotation) for inverting matrix, placement or
rotation

create(type,arg...) for creating Python object of given type (currently
only support 'matrix', 'placement', 'rotation', 'vector'
2019-10-07 17:24:30 +02:00
Zheng, Lei
b2ba93c4fc Base: fix __pow__ operator in MatrixPy/PlacementPy/RotationPy 2019-10-07 17:24:30 +02:00
Zheng, Lei
c5fd45f762 Base: remove VectorPy right multiplication to matrix/placement/rotation 2019-10-07 17:24:30 +02:00
Zheng, Lei
c146fbbdba Replace use of Matrix.inverse() with inverseGauss()
Because of possible scaling involved.
2019-10-07 17:24:30 +02:00
Francesco Fantoni
eeae3457c4 removed trailing whitespace 2019-10-07 11:26:16 -03:00
Francesco
1da10e84af fixes issue aligning workplane to a face
this is a quick workaround for a problem introduced in the Draft select plane procedure while refactoring the code. not sure it is the best fix though.
2019-10-07 11:26:16 -03:00
Zheng, Lei
694cfc202e Draft: relax Part::Feature type checking for Link support
Replace isDerivedFrom('Part::Feature') with hasattr(obj,'Shape')
2019-10-07 10:48:42 -03:00
vocx-fc
183b7dafe0 Arch: ArchCommands, change the color of the vertices of the subcomponent when using Arch Remove, just like the line color and shape color are changed. 2019-10-07 10:46:36 -03:00
Zheng, Lei
7d7bb650f7 App: add argument 'hidden' to FreeCAD.new/openDocument()
The keyword argument 'hidden' allows create/open document without 3D
view.
2019-10-07 14:25:27 +02:00
vocx-fc
2aa14761d2 Draft: modify the permissions of the icons (755), so that they don't have the execute permission (644) 2019-10-07 14:18:52 +02:00
vocx-fc
f55059cedf Draft: new icon for Draft_Dimension in the tree view in SVG, instead of XPM 2019-10-07 14:17:17 +02:00
vocx-fc
ec0d50459c Draft: re-order alphabetically the resources in Draft.qrc to be easier to spot missing files 2019-10-07 14:17:08 +02:00
triplus
e11d795153 AppImage - support for embedded documentation 2019-10-06 18:18:29 +02:00
Zheng, Lei
2df3052ecf Gui: add new API ViewProviderDocumentObject::allowOverride()
This API is used to delcare if a view provider can be used as an
override for a give object.

Conflicts:
	src/App/DocumentObject.h
2019-10-06 17:22:57 +02:00
vocx-fc
7305343e10 Part: deactivate and remove the remaining XPM icons, and use SVG icons instead 2019-10-06 17:05:30 +02:00
vocx-fc
3d36e7d5e1 Part: rename the icons to start with Part_ 2019-10-06 17:05:30 +02:00
Tomas Pavlicek
1751e130ff TechDraw - Put BOM on beginning of exported SVG 2019-10-06 07:31:34 -04:00
Tomas Pavlicek
c67ffc9f44 TechDraw - SVG changes via DOM manipulation instead of Regex replace 2019-10-06 07:31:34 -04:00
vocx-fc
ab22418878 Gui: fix DlgSettings3DView.ui, remove bold tags <b> 2019-10-05 20:26:38 +02:00
luz.paz
044213d6ad Source typo fix (includes file rename) 2019-10-05 13:19:32 -04:00
luz.paz
d4e381d846 Crowdin: Fix creative common license name
Source: https://crowdin.com/translate/freecad/549/en-sv#6498160
2019-10-05 17:27:48 +02:00
vocx-fc
30a722777b Part: new icon for Part::Part2DObject, in SVG, instead of using a generic XPM 2019-10-05 17:24:57 +02:00
vocx-fc
5421ef24e5 Part: re-order the resources in Part.qrc, and removed the PNGs 2019-10-05 17:24:57 +02:00