Commit Graph

18479 Commits

Author SHA1 Message Date
wmayer
77d3c19573 fix typo 2019-10-08 10:36:19 +02:00
Zheng, Lei
aa01411c89 Gui: change default tree view document mode to Expand/Collapse 2019-10-08 10:28:13 +02:00
Zheng, Lei
b81485d72d Gui: improve scale handling in SoFCCSysDragger
Because of the scale transformion in Link, the dragger may have
undesired behavior. This patch checks scaling factor in scenegraph
transformation, and auto scale the dragger axis accordingly.
2019-10-08 10:27:56 +02:00
Zheng, Lei
e8389219b2 Gui: fix ViewProviderLink dragger behavior with scale 2019-10-08 10:27:30 +02:00
Zheng, Lei
c7a0e7a2f5 App: fix getSubObject() in Link
Do not include scale in transformation output in
LinkBaseExtension::extensionGetSubObject()
2019-10-08 10:26:29 +02:00
Zheng, Lei
ba459fcfdd Gui: fix tree view option sync placement 2019-10-08 10:26:16 +02:00
Zheng, Lei
c6bad2e487 App: fix PropertyXLink file path update 2019-10-08 10:26:03 +02:00
Zheng, Lei
c34ee6e753 Gui: expose link actions to toolbar 2019-10-08 10:25:36 +02:00
Zheng, Lei
8d7287b8a6 App/Gui: add ObjectStatus::NoAutoExpand
Used by App::Origin to disable selection auto expanding in tree view.
2019-10-08 10:23:57 +02:00
Zheng, Lei
5f0e060082 App: allow link properties for all App::Link 2019-10-08 10:23:42 +02:00
Zheng, Lei
855e3fd724 Gui: fix missing tree view sync after drag and drop 2019-10-08 10:23:21 +02:00
Zheng, Lei
c765ff8fa2 App: add ScaleVector property to Link
This is a normally hidden property for non-uniform scaling
2019-10-08 10:23:05 +02:00
Zheng, Lei
c26081f7dc App: fix Document::isTransactionEmpty() 2019-10-08 10:22:51 +02:00
Zheng, Lei
846707c628 Gui: improve array element color override in ViewProviderLink 2019-10-08 10:22:31 +02:00
Zheng, Lei
50102918d3 Part: add missing API ViewProviderPartExt::getElementColors()
This API is defined in Gui::ViewProvider to allow color override in
Link. In particular, the implementation in PartGui::ViewProviderPartExt
allows override for various part shapes.
2019-10-08 10:22:17 +02:00
Zheng, Lei
b4b61ce6c2 Part: fix TopoShape::getElementTypes()
This also fixes Std_BoxElementSelection in Gui/CommandView.cpp, which
relies on this API through Data::ComplexGeoData::getElementTypes().
2019-10-08 10:22:00 +02:00
Zheng, Lei
eb4dbd56a7 Gui: fix tree view lingering sub element selection 2019-10-08 10:21:46 +02:00
Zheng, Lei
ae067d7a58 Gui: improve PropertyXLink display in property view 2019-10-08 10:21:31 +02:00
Zheng, Lei
092e79a9ce App: migrate old SubElements in Link 2019-10-08 10:21:19 +02:00
Zheng, Lei
0d966e6777 Gui: improve SelectionSingleton::setVisible()
Change argument to enum type. Make setVisible() robust against
unexpected selection change.
2019-10-08 10:21:06 +02:00
Zheng, Lei
0b42b0b596 Link: change sub-element linking mechanism
Previous multi-sub-element linking (e.g. Face, Edge) is supported
through SubElements of type PropertyStringList, which does not support
geometry element update tracking. This patch changes it to use
PropertyXLink's new multi-subname capability.
2019-10-08 10:20:50 +02:00
Zheng, Lei
661da78141 App: allow multiple subname in PropertyXLink
PropertyXLink and PropertyXLinkSub now only differ in getPyObject().
This is to allow Link support of multiple sub-element
2019-10-08 10:20:36 +02:00
Zheng, Lei
df9e950f38 App: null pointer check in ComplexGeoData::noElementName() 2019-10-08 10:20:18 +02:00
Zheng, Lei
75c8c6289a Gui: minor fix of tree view drag move 2019-10-08 10:20:01 +02:00
Zheng, Lei
3f63064301 Gui: expose link selection and navigation command 2019-10-08 10:19:20 +02:00
Zheng, Lei
1f18474c28 Gui: improve Std_LinkSelect command
Recognize external object brought in by a link to a group. The
Std_LinkSelect will jump into the the owner document of the external
object.
2019-10-08 10:16:44 +02:00
Zheng, Lei
9a1723179f Gui: assign default guesture to Std_SelBack/Forward 2019-10-08 10:16:20 +02:00
Zheng, Lei
3b1aa19f05 Gui: add class GroupCommand help with grouped command
As an example usage, changed StdCmdTreeViewActions to be derived from
GroupCommand
2019-10-08 10:16:00 +02:00
Zheng, Lei
2fe15c87cf Gui: output Cmt type macro line as comment in python console 2019-10-08 10:15:18 +02:00
Zheng, Lei
b583c2c9ac Gui: add document to Command and Selection 2019-10-08 10:14:41 +02:00
Zheng, Lei
8b65a94f28 Gui: add toolbar button for toggling selection bounding box 2019-10-08 09:56:09 +02:00
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