Commit Graph

20667 Commits

Author SHA1 Message Date
Yorik van Havre
ea5211e5d3 Arch: Also skip default storey when importing IFC with 'replace by group' option 2020-04-21 14:46:07 +02:00
Yorik van Havre
32d73bca15 Arch: Added IFC import option to replace project,site and building with a group 2020-04-21 13:43:28 +02:00
carlopav
5a4b78c0c3 [Draft] Fixed scale multiplier for text object 2020-04-21 12:58:20 +02:00
vocx-fc
f5bfb56e82 Draft: move Modifier class to gui_base_original module 2020-04-21 12:53:30 +02:00
vocx-fc
8b3bac1d73 Draft: move Creator class to gui_base_original module 2020-04-21 12:53:30 +02:00
vocx-fc
cb545c7fa8 Draft: import Part module where necessary for the tools
Also import `DraftGeomUtils` where necessary.

These modules were previously imported globaly when the base
`DraftTool` class was first called by the individual tools
through the `Creator` and `Modifier` classes.

However, since `DraftTool` was moved to a separate module,
these `Part` and `DraftGeomUtils` modules are no longer
in the `DraftTools` namespace, and therefore they
cannot be imported globally anymore.

Now the `Part` and `DraftGeomUtils` modules are imported
in the specific functions where they are actually needed.
2020-04-21 12:53:30 +02:00
vocx-fc
180544edbb Draft: move the base DraftTool class to its own module
This is the base class of most Draft Gui Commands,
particularly those which were developed a long time ago.
It is inherited by `Creator` and `Modifier`
to set some specific options for some tools.

Newer Gui Commands do not use these classes and thus
are independent of `DraftTool`.

Nevertheless, in the future we expect to organize further
the commands so that they all derive from a few classes,
so that they all share some common properties and behaviors.
2020-04-21 12:53:30 +02:00
vocx-fc
23e324280f Draft: move DraftTools utilities to another module
These small functions and utilities are placed in another
module, so they can be imported and called
by the individual Gui Command classes as necessary.

When these Gui Command classes are moved to their respective
modules, they will be able to import this auxiliary module as well.
2020-04-21 12:53:30 +02:00
vocx-fc
f518cfee8f Draft: GuiCommandSimplest to serve as base of simple Gui Commands
This class defines the `command_name` of the command,
so that it is output to the report view, and is also recorded
in the log file.

It also stores the current document so it can be used inside the
command.

The class implements with `IsActive` method so that the command
is only active when an active document exists.

Also `GuiCommandNeedsSelection`, which subclasses the former
class. It reimplements `IsActive` in order to be available
only when there is a selection.
2020-04-21 12:53:30 +02:00
Yorik van Havre
4d90327a97 Draft: Fixed further regressions 2020-04-21 12:46:08 +02:00
Yorik van Havre
aafe4b9f43 Draft: Fixed broken backwards compatibility with annotations 2020-04-21 12:20:10 +02:00
triplus
1d6d841cf6 NaviCube fix compiler warning
Forum discussion:

https://forum.freecadweb.org/viewtopic.php?f=10&t=45012
2020-04-21 10:20:01 +02:00
Yorik van Havre
3847310914 Adding FreeCAD liberapay account 2020-04-20 16:22:03 +02:00
Yorik van Havre
05e1defb3b Fixed bad conflict merge in PArtDesign 2020-04-20 13:34:38 +02:00
luz.paz
7eb270017e [skip ci] fix documentation typos
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-20 12:59:09 +02:00
Jean-Marie Verdun
5860a71eb9 Fix indent and double "or" 2020-04-20 12:57:15 +02:00
Jean-Marie Verdun
249d2040eb Add initial link support 2020-04-20 12:57:15 +02:00
donovaly
92f745b0ba [Part] color preferences: add missing tooltips
see: https://forum.freecadweb.org/viewtopic.php?f=8&t=44595
2020-04-20 12:44:02 +02:00
carlopav
854687fd6f [Draft] Further cleanup of the branch
thanks to vocx revisions
2020-04-20 12:38:06 +02:00
carlopav
e68bf521f6 [Draft] Snapper cleanup
Cleanup after @vocx-fc review
2020-04-20 12:38:06 +02:00
carlopav
113c699ada [Draft] Snap improvement and statusbar cleanup after rebase
[Draft] Attempt to make base classes compatible with super on py2


[Draft] Refactored imports of snapper and snaps gui tools


.


.
2020-04-20 12:38:06 +02:00
carlopav
5b027dfa23 [Draft] Statusbar widgets, preferences to disable draft statusba
.


.


.


.
2020-04-20 12:38:06 +02:00
carlopav
cd1f2df6e9 [Draft] rough implementation of new preference dialog for interface 2020-04-20 12:38:06 +02:00
carlopav
77c385631b [Draft] Added Draft Snap Statusbar
.
2020-04-20 12:38:06 +02:00
carlopav
78a5036048 [Draft] Improved Snapper Toolbar Behaviour
Changed snap toolbar behaviour:
- create a list of available snaps (Gui.Snapper.snaps)
- make it consistent with Snap Gui Commands (in gui_snaps module)
- create a list of active snaps (Gui.Snapper.active_snaps)
- refactor the isEnabled() method to allow it to check if the given snap is in Gui.Snapper.active_snaps and not if the snap toolbar button isChecked()
- updated and reordered the new list of gui snap commands in draftutils.init_tools and used it as a base to refactor the creation of draft toolbar
- updated all the draft snap gui tools to make them control the toolbar buttons directly
.


.


.
2020-04-20 12:38:06 +02:00
Adam Spontarelli
7334fa5cf0 Converted class names from private to public, per feedback from pull request 2020-04-20 12:30:08 +02:00
Adam Spontarelli
6da1c6f834 Converted class names from private to public and corrected docstring formatting, per feedback from pull request 2020-04-20 12:28:27 +02:00
Adam Spontarelli
67f37b3d90 Initial addition of fcsprocket feature. This is a PartDesign tool that allows for the simple creation of ANSI standard roller chain sprockets. 2020-04-20 12:28:27 +02:00
Bernd Hahnebach
7e76135b2e FEM: meshtools, init empty node numbers in face search 2020-04-19 21:57:54 +02:00
Bernd Hahnebach
12d30f33ef FEM: result task panel, avoid zero float division 2020-04-19 21:38:19 +02:00
Bernd Hahnebach
29f4ecc79e FEM: meshtools, fix element names in face search 2020-04-19 21:38:09 +02:00
WandererFan
7c1ce37eff [TD]Piecewise Detail Algo 2020-04-19 09:17:28 -04:00
WandererFan
d12124073c [TD]Piecewise Sectioning Algo 2020-04-19 09:17:28 -04:00
Bernd Hahnebach
bbdaa62890 FEM: mesh export, add export to Python module 2020-04-17 22:51:36 +02:00
Bernd Hahnebach
f74cfae9b3 FEM: mesh tools, better logs 2020-04-17 21:11:28 +02:00
Yorik van Havre
d51363fefe Draft: Annotation styles editor 2020-04-17 18:51:30 +02:00
sliptonic
49ba5bef1f Merge pull request #3327 from Russ4262/3D_Surface_updates
[Path] 3D Surface fixes(7), minor optimizations, and cleanup
2020-04-17 10:40:53 -05:00
sliptonic
2e1796cbb5 Merge pull request #3331 from Russ4262/Waterline_updates
[Path] Waterline fixes(5), new IgnoreOuterAbove feature, and code simplification
2020-04-17 10:40:15 -05:00
Yorik van Havre
419b99bc38 Draft: [WIP] Annotation styles editor 2020-04-17 17:18:52 +02:00
wandererfan
f59188e5e4 [TD]fix crash on bad centerline selection 2020-04-17 10:11:24 -04:00
sliptonic
d4c35a0f08 Merge pull request #3320 from Russ4262/ProfileEdges_optimize
[Path] Some optimization for recent open edges update
2020-04-16 16:21:44 -05:00
Russell Johnson
9642271335 Path: Optimization for open edges update
Remove required usage of DocObject creation, in lieu of Part geometry usage - the preferred method.
Limit DocObject creation to debugging mode only.
Remove dependency on Draft module.
Drawback is top edge must be selected, and Final Depth set appropriately when using profiling open edges.
2020-04-16 12:53:32 -05:00
wmayer
63fcfb4802 Mesh: [skip ci] add sphere and cylinder fitting algorithms 2020-04-16 14:58:30 +02:00
wmayer
8e05325137 Spreadsheet: [skip ci] add generated Imp files to repository to avoid possible build failures 2020-04-16 12:24:38 +02:00
vocx-fc
5b677151e6 Draft: move array commands to DraftTools
Previously they were imported directly in `InitGui.py`,
now they are collected in `DraftTools.py`, so that they
are imported at the same time as other modules.

Also provide an icon so this icon appears in the menu.
2020-04-16 11:40:58 +02:00
vocx-fc
6b659cfcc2 Draft: move AddPoint and DelPoint to gui_line_add_delete module
These two Gui Commands were inside `DraftTools.py`
but they were considered obsolete as they just call `Draft_Edit`.
They were completely removed in 8f07732c46 and 15de58a5be.

They are restored in this commit and placed in their own module
just for historical reasons; however this module is not imported
in `DraftTools.py`.
2020-04-16 11:40:58 +02:00
vocx-fc
b5aa88fdbc Draft: move Draft_Arc_3Points to gui_arcs module 2020-04-16 11:40:58 +02:00
vocx-fc
31ca5dd812 Draft: move Draft_AddConstruction to gui_groups module
Also add a new icon for adding to the construction group.
2020-04-16 11:40:58 +02:00
vocx-fc
8640697107 Draft: move Draft_AutoGroup to gui_groups module 2020-04-16 11:40:58 +02:00
vocx-fc
125008c5e8 Draft: move Draft_Slope to gui_lineslope module
The class name was renamed to `LineSlope` as it is fundamentally
inteded to control slopes of lines.
2020-04-16 11:40:58 +02:00