Commit Graph

2087 Commits

Author SHA1 Message Date
carlopav
aa572290b7 Draft: bugfix in Snapper 2020-05-12 10:03:52 +02:00
vocx-fc
a79664d3e3 Draft: small updates to the Annotation class
This annotation class implements `onDocumentRestored`
in order to add the `ScaleMultiplier` property to older
`Dimension`, `Label`, and `Text` objects.
2020-05-12 10:02:21 +02:00
vocx-fc
31792151c7 Draft: update ViewProviderWire properties
The improvements are done to `ViewProviderWire` which propagates
to many objects like Line, Wire (polyline), BSpline, BezCurve,
Fillet, etc.

The initialization of the properties is moved to a method
`_set_properties`. The properties `EndArrow`, `ArrowSize`,
`ArrowType` are created only if they do not exist.

This allows calling `ViewProviderWire(obj.ViewObject)`
to migrate an older object to this viewprovider
but without adding duplicated properties.

In particular, this is done to support the migration of the older
`Fillet` object.
2020-05-12 10:02:21 +02:00
vocx-fc
87f9c45cae Draft: update ViewProviderDraft properties
The improvements are done to `ViewProviderDraft` which propagates
to the majority of the Draft objects by derived classes
like `ViewProviederWire`.

The initialization of the properties is moved to a method
`_set_properties`. The properties `Pattern` and `PatternSize`
are created only if they do not exist.

This allows calling `ViewProviderDraft(obj.ViewObject)`
to migrate an older object to this viewprovider
but without adding duplicated properties.

In particular, this is done to support the migration of the older
`Fillet` object.
2020-05-12 10:02:21 +02:00
vocx-fc
d3d52c57b4 Draft: move arc_3points to the make package
Also import it in the `Draft` namespace so that is available
as `Draft.make_arc_3points`.

Use this new function in the unit test `drafttests.test_creation`,
in the GuiCommand `draftguitools.gui_arcs`, and in the
`draft_test_objects` script.
2020-05-12 10:00:41 +02:00
vocx-fc
9a2aa39538 Draft: remove repeated _DraftObject class in Draft.py 2020-05-12 10:00:41 +02:00
vocx-fc
08285a85ec Draft: import the missing Gui module in the mirror function
Otherwise the function will not work in a terminal only session
without the graphical user interface (GUI).

Also small changes for style, documentation,
and removing unused modules.
2020-05-06 12:48:02 +02:00
vocx-fc
909452dc9c Draft: add description of draftfunctions package
These modules provide supporting functions for dealing
with the scripted objects and Gui Commands defined
within the workbench.

If the functions do very basic tasks or are too generic,
they are more appropriate inside the `draftutils` package.

These function are imported in the main `Draft.py` module
so they form part of the public programming interface (API)
of the workbench.

Remove trailing spaces in CMakeLists.txt.
2020-05-06 12:46:24 +02:00
vocx-fc
d2c06281e3 Draft: add description of draftmake package
These modules provide the functions that are used to create
the scripted objects defined within the workbench.

The functions import and use the proxy classes
and viewprovider classes in `draftobjects`
and `draftviewproviders`.

These functions are imported in the main `Draft.py` module
so they form part of the public programming interface (API)
of the workbench.
2020-05-06 12:46:24 +02:00
vocx-fc
f4b3340042 Draft: update description of draftviewproviders package 2020-05-06 12:46:24 +02:00
vocx-fc
f1398c3207 Draft: update description of draftobjects package 2020-05-06 12:46:24 +02:00
vocx-fc
ef7e30c653 Draft: update description of drafttaskpanels package 2020-05-06 12:46:24 +02:00
vocx-fc
aa3b432ebd Draft: update description of draftguitools package 2020-05-06 12:46:24 +02:00
vocx-fc
2e11a3f788 Draft: update description of drafttests package 2020-05-06 12:46:24 +02:00
vocx-fc
4fc94d0254 Draft: correct description of draftutils package
These utilities are general in the entire workbench,
some of them can be used without a GUI, and some of them
absolutely require the GUI to function.
2020-05-06 12:46:24 +02:00
luz.paz
9f1ff8def1 AddonManager: [skip-ci] Change reference from "Addons Manager" to "Addon
...Manager"  
https://forum.freecadweb.org/viewtopic.php?f=3&t=45951&p=395355#p394147
2020-05-05 19:40:14 +02:00
vocx-fc
efcbbce28c Draft: small improvements to the todo module
Small ammeds to the docstrings and the use of `App` and `Gui`
namespaces, and the explicit use of the `ToDo` class
in `PascalCase`.
2020-05-04 10:55:18 +02:00
vocx-fc
bc44324be0 Draft: show the error message of the ToDo class in the terminal
The error is both sent to the log file and to the console
instead of only the log.

This is helpful to troubleshoot problems with the delayed
execution of commands, such as when testing a relatively
broken version like 1827eb17ae.
2020-05-04 10:55:18 +02:00
carlopav
c1696f20dc Draft: fixed edit for dimension objects 2020-05-04 10:53:54 +02:00
carlopav
81e5a3487b Draft: fix ScaleMultiplier on annotation objects
Object auto create the property when opening an old Draft annotation
.
2020-05-04 10:53:54 +02:00
carlopav
f27f038da4 Draft: split extrude from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
40e8eb7b84 Draft: split downgrade from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
f0136fd27d Draft: split cut from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
08448d198e Draft: split upgrade from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
c9ce87b5fb Draft: split draftify from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
c567ce10a1 Draft: split fuse from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
3c6bc25667 Draft: split heal from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
2d6b7479f0 Draft: split mirror from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
9eb59414c1 Draft: split offset from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
ff1d0587ff Draft split Split from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
af31394e21 Draft: split scale related functions from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
964d8a9851 Draft: split join functions from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
e14d632f02 Draft: split isClosedEdge form Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
e94be2e542 Draft: split rotate from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
66031c8dbe Draft: split Move from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
3351cde462 Draft: split FilterObjectsForModifiers from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
7bdf54e933 Draft: delete makeWire from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
1f0e6e2855 Draft: split makeCopy from Draft.py
.
2020-05-04 10:51:08 +02:00
wandererfan
a77c4b7b2e [Draft]PathArray TangentVector & gimbal lock
- allows user to specify orientation of copies
- prevents gimbal lock by using Base.Rotation instead of
  YRP transforms
2020-05-01 11:34:33 -04:00
carlopav
3da68ba3c5 Draft: fix to statusbar import on wb Activated and Deactivated
Import statusbar related functions only if snapper is loaded
added new line at the end
2020-04-30 13:48:33 +02:00
carlopav
c34ef27018 Draft: fix bspline and bezcurve viewproviders
Finished to fix bspline and bezcurve wiewproviders.
2020-04-30 13:48:33 +02:00
luz.paz
244639c2bf [skip-ci] Fix typos in Draft, Mesh, and src/Tools
Found via codespell v1.17.0.dev0  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-04-30 11:40:38 +02:00
vocx-fc
81029a2b74 Draft: add view provider for Bezier curve object 2020-04-30 09:41:41 +02:00
vocx-fc
3ba2f86034 Draft: add view provider for BSpline object 2020-04-30 09:41:41 +02:00
Bernd Hahnebach
e8c6cdc75a Draft: workaround to be able to import Draft 2020-04-29 22:46:27 +02:00
Yorik van Havre
141764e64f Merged crowdin translations 2020-04-29 16:08:23 +02:00
Yorik van Havre
7003b3f747 Updated source ts files 2020-04-29 15:41:26 +02:00
vocx-fc
8e9d6f8bae Draft: change the icon depending on the Link array type
Add new icons for `App::Link` versions of polar array and circular
array.
2020-04-29 11:44:22 +02:00
vocx-fc
9432acf44e Draft: change the icon depending on the array type 2020-04-29 11:44:22 +02:00
Yorik van Havre
70962447bc Draft: Small bugfix in DraftGeomUtils.getNormal 2020-04-29 11:43:00 +02:00