Commit Graph

30 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
9fe130cd73 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
PhoneDroid
db6d1e0c33 [ Part ]: Update SPDX License Identifiers 2025-11-02 16:16:07 -06:00
drwho495
a48cc162cb Part: Fix toponaming issues. (#23151)
* fix split apart and splice

* fix hasher gen issue in extrusion

* fix broken gen in fillet/chamfer

* error when elements go missing in fillet/chamfer

* fix hashing in some elements

* fix compiler errors

* fix sweep

* remove hasher from mirror

* remove old import

* add clarifying comment

* Linter cleanup

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-08-18 01:35:46 +00:00
Max Wilfinger
0be9b79093 Part: Update UI strings for consistency
Closes: #22133
2025-08-04 20:14:51 +02:00
Florian Foinant-Willig
b4c41d8c62 Part: Prevent user to remove core properties 2025-04-22 23:52:17 +02:00
wmayer
8eefa7f113 Part: Fix getIcon() of several view providers to return full path name of the icon file 2024-12-20 12:19:47 -05:00
DeflateAwning
1e3179e9bc Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
wmayer
ef9936a940 App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
luz paz
2f1ff7928b Part: remove trailing whitespace 2022-11-15 14:19:30 -06:00
Chris Hennes
b675920e05 Part: Change _translate to translate 2022-05-31 10:05:44 -05:00
marioalexis
7124476d7a Part: Some updates in CompoundFilter.py 2022-03-10 03:07:07 +01:00
marioalexis
3c2fc9374f Part: Check geometry in Part_ExplodeCompound command 2022-03-09 15:41:30 +01:00
luz paz
147542aef0 Part: Part.CompoundTools.Explode.explodeCompound access a property of...
...a sometimes null object with an error

Python code, file `src/Mod/Part/CompoundTools/Explode.py`
The `explodeCompound` function can be called in a context without assigning the `ViewObject` property, for example from a command line script.

The error that is fixed by this patch. 
```
Traceback (most recent call last):
  ...
  File "/opt/freecad/Mod/Part/CompoundTools/Explode.py", line 23, in explodeCompound
    cf.ViewObject.DontUnhideOnDelete = True
AttributeError: 'NoneType' object has no attribute 'DontUnhideOnDelete']
```

Patch submitted by marioamb.  
Fix #004421  
https://tracker.freecadweb.org/view.php?id=4421
2021-02-21 11:40:20 +01:00
vocx-fc
39c9e2a451 Part: update icon, object and command for CompoundFilter
The previous icon did not follow the general style and colors
of other icons in the workbench.

If there is no `Stencil` in the `CompoundFilter` object, raise
a `ValueError` exception when the `FilterType` is `'collision-pass'`
or `'window-distance'`.

Raise an exception when `items` is empty, or has a malformed string,
when `Filtertype` is `'specific items'`.

Fix the `getNullShapeShape` function to return a simple
`Part.Shape`, so that there is no error raised if `_nullShapeShape`
doesn't exist. This function doesn't work at all. It was probably
a prototype which was never fully developed; it may be removed
completely in the future.

The docstrings for the commands `CompoundFilter` and `ExplodeCompound`
were revised.

Clean up the spacing of the code so that lines aren't very long.
2020-10-13 12:49:54 +02:00
vocx-fc
5c732d440c Part: small cleanup of Python modules and InitGui.py
Add empty newline at the end of the file.
2020-10-13 12:49:54 +02:00
vocx-fc
32a5a2dee8 Part: move icons to booleans subdirectory
The path to the icons is added to `AppPartGui.cpp`
using `Gui::BitmapFactory().addPath()`, so the icons are found
automatically in their new directories.
2020-10-12 19:54:11 +02:00
luz.paz
ebe194a9e9 Fix typos
Found via  
```
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-03-06 14:50:35 +01:00
Bernd Hahnebach
bb6228dde0 FEM and Part: check if catched exception has an error message 2020-01-07 23:01:47 +01:00
Bernd Hahnebach
41f442716b Part: compound filter, fix gui object delete if obj has no Base anymore 2020-01-07 14:56:52 +01:00
luz.paz
17ada69518 Part: [skip ci] fix header uniformity
This PR fixes header uniformity across all Part WB files
2019-12-22 00:59:47 +01:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
DeepSOIC
55838a0508 Part: "Explode compound" tool 2018-12-27 14:30:04 +01:00
Janne Keränen
37c4bda776 Correct small bug in CompoundFilter in command line
Without this, CompoundFilter does not work in Python script in non-GUI-mode.
See:
https://forum.freecadweb.org/viewtopic.php?f=10&t=27593&p=222303
and
https://www.freecadweb.org/tracker/view.php?id=3381
2018-05-28 16:55:15 +02:00
DeepSOIC
dac72f25f1 Part: fix compoundfilter's items property tooltip
reported by chrisb:
https://forum.freecadweb.org/viewtopic.php?f=3&t=28299#p229889
2018-04-25 10:58:30 +02:00
looooo
f1bdd58c74 py3: fix some simple incompapilities
issue 0000995
2017-06-21 11:25:30 +02:00
looooo
dc01180b78 py3: define xrange for python3
this is done in files where the xrange is used.
replace this with range once python2 is not supported anymore.
issue 0000995
2017-05-18 15:56:09 +02:00
Bernd Hahnebach
4cf205995c Part: BOPTools and CompoundFilter, remove not needed overwrting of setEdit and unsetEdit which prevents some C++ sedEdit modes to work 2017-03-20 10:59:02 -03:00
Bernd Hahnebach
9c965137b1 Part: compound filter, GUI command 2017-02-18 15:57:54 +01:00
Bernd Hahnebach
8f900945ab Part: compound filter, core module 2017-02-18 15:57:54 +01:00