Commit Graph

1377 Commits

Author SHA1 Message Date
Uwe
beb0152996 [App] Range to VRML: remove unused includes 2022-02-24 11:28:52 +01:00
Uwe
d88397f3d6 [App] Placement and Property: remove unused includes 2022-02-24 01:09:00 +01:00
Uwe
09ce5ce137 [App] Document: remove unused includes 2022-02-23 01:56:26 +01:00
Uwe
d3473523d2 [App] Application: remove unused includes
- also sort the includes
2022-02-22 13:17:07 +01:00
Uwe
16467d9067 Revert "App: fix property ordering problem when undo/redo (#3255)"
This reverts commit 24d30636e4fb990fdbd67538360846ff09456dfc.
2022-02-22 01:21:49 +01:00
Zheng, Lei
2895f8f631 App: fix undo/redo of dynamic property add/remove/change 2022-02-21 14:04:12 +01:00
Zheng Lei
170a12089c App: fix property ordering problem when undo/redo (#3255)
* Part: fix Placement/Shape onChanged() handling

* App: fix property ordering problem when undo/redo
See https://tracker.freecadweb.org/view.php?id=4265#c14271

* Gui: fix undo/redo signaling
Make sure to signal after all properties has been restored
2022-02-21 12:29:01 +01:00
Chris Hennes
ec90b7f954 Core: Add mechanism to disable addon 2022-02-20 22:09:57 -06:00
Chris Hennes
b7056b94b9 Gui: Add interface for managing preference packs 2022-02-17 19:51:24 -06:00
wmayer
0208608b9e Base: fix Matrix4D::hasScale
* If all column vectors of the 3x3 sub-matrix are equal the function incorrectly claims that it's uniform scaling.
* Detect also non-uniform scaling and if was applied from the left or right side
* Replace the int with an enum and expose it to Python
* Add several new unit tests
2022-02-15 21:05:11 +01:00
Chris Hennes
5c622291c8 Core: Eliminate compiler warnings on Metadata 2022-02-14 12:32:47 -06:00
Chris Hennes
04bff76f1c Core: Fix metadata compiler warning 2022-02-11 11:15:33 -06:00
Chris Hennes
e8699b1c45 Core: Add additional Python bindings for Metadata 2022-02-10 15:25:07 -06:00
wmayer
b7bef31aca App: set by default three colors for legend 2022-02-06 23:13:38 +01:00
wmayer
dae81fa377 App: [skip ci] fix regression in ColorGradient/ColorField 2022-02-05 17:54:55 +01:00
wmayer
0922265b37 App: fix ColorField::set/ColorGradient::set in case an invalid value range is passed 2022-02-05 14:13:35 +01:00
wmayer
82e1feffef App: fix Py3.8 warnings 2022-02-05 12:24:36 +01:00
wmayer
0df823c68b App: add missing pragma for GCC diagnostic 2022-02-04 22:38:26 +01:00
wmayer
8e5ad95de3 App: improve ColorLegend 2022-02-03 22:01:52 +01:00
wmayer
7ff62348df App: fix ColorField::set/ColorGradient::set in case an invalid value range s passed 2022-02-03 07:53:38 +01:00
wmayer
2bf84e79ac App/Gui: make color bar to handle very small values 2022-02-02 21:12:59 +01:00
Chris Hennes
2ac7052236 Addon Manager: Add search and display of tags 2022-01-31 15:24:40 -06:00
Uwe
81fa1d6a27 [App] fix compiler warning
warning C4305: 'argument': truncation from 'double' to 'float'
2022-01-29 19:07:03 +01:00
wmayer
4f814afa57 App: add a function to document observer to be notified if the active document changes 2022-01-29 18:33:39 +01:00
wmayer
ecac0b4d0c App: rework ColorGradient and allow to easily extend it with further color models 2022-01-29 15:29:07 +01:00
wmayer
90d9f58de0 App: code cleanup of Color models 2022-01-29 11:58:05 +01:00
wmayer
3ef2cd2027 App: include header with export macro 2022-01-28 11:21:26 +01:00
howetuft
8e87eca83c Set App::Part Material property type to App::PropertyLink
App::Part Material property type is currently App::PropertyMap, but to
be consistent with other domains using materials (like Arch, especially), it
should rather be App::PropertyLink, in order to link to a Material
card.
2022-01-25 23:20:46 +01:00
luz paz
787963a8d0 App: fix source comment typo
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,ro,rougly,seperator,serie,sinc,strack,substraction,te,technic,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,./build/doc/SourceDocu`
2022-01-22 16:28:41 +01:00
Chris Hennes
8d96cadb69 Addon manager: install dependencies (#5376)
Addon Manager: Dependency Installation

The Addon Manager can now attempt to use pip directly to install
required packages as specified in either metadata.txt or
requirements.txt files provided by AddOns. The packages are installed
into FreeCAD.getUserAppDataDir()/AdditionalPythonPackages directory.
Only simplified requirements.txt data is supported: any version
information is stripped out, and only packages are supported (that is,
no pip arguments, included files, etc.). Further, packages are checked
against a list of allowed packages prior to being suggested for
installation. Addon authors should submit a PR to the FreeCAD repo
adding their requirements to the allowed list, for packages that are not
already on the list (this is a malware-prevention mechanism).
2022-01-21 10:19:21 -06:00
wmayer
659a55ffb9 Base: Exception handling:
* Harmonize FreeCAD with Python exception types
* Implement AbortException::getPyExceptionType() to avoid handling it in client code
* Remove catch block for plain C strings
2022-01-19 18:00:04 +01:00
wmayer
2a3991d799 App: do not hide actual exception type in DocumentObjectPy::addProperty/DocumentObjectPy::removeProperty
and throw TypeError in DynamicProperty::addDynamicProperty() if the based type id is invalid
2022-01-19 10:48:00 +01:00
marioalexis
950a859842 App: Prevent crash when trying to delete pointer to BaseClass 2022-01-19 08:14:41 +01:00
Aapo Lankinen
82b97374fd [App] DocumentObject.cpp: Add more information to the error message ... (#5394)
* [App] DocumentObject.cpp: Add more information to the error message printed to the console when links go out of allowed scope, namely linked object name(s), allowed scope name, invalid scope name(s).
2022-01-19 01:14:13 +01:00
wmayer
b35623e680 App: Bugfix for NULL-Pointer dereference of Property->getName() 2022-01-16 14:30:51 +01:00
luz paz
28ab1bb68f Fix various superfluous whitespace in *.dox files 2022-01-09 21:01:42 -06:00
wmayer
ce05165f21 App: replace three boolean of CellAddress::toString() with a bitmask of enums 2022-01-09 10:39:54 +01:00
wmayer
54047878ac App: [skip ci] fix Property::isSame() and subclasses by first comparing the pointers directly 2022-01-07 17:09:08 +01:00
luz paz
fd3f2b0092 Fix various typos and refinements 2022-01-06 20:22:34 +01:00
wmayer
bea4b65639 App: include FCGlobal.h for export macro 2022-01-05 20:11:16 +01:00
luz paz
daa508a55c Fix more typos + whitespace fix and added 'TODO'
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,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,./build/doc/SourceDocu`
2022-01-04 18:57:56 -06:00
Benjamin Alterauge
e81ee6f540 Use std::map without const 2021-12-30 17:40:45 +01:00
Benjamin Alterauge
3f85853e09 Spreadsheet: Fix trouble with clang and MacOS
Since the Spreadsheet: support cell binding commit, I got trouble by building freecad. I didn't find similar reports in install/compile forum. So I will only use the old version of typedef for macos. Better solutions are welcome.

See [trouble details](0c54f3236e (commitcomment-62364932))
2021-12-30 17:40:45 +01:00
luz paz
546a243ad9 App: fix doxygen typo 2021-12-30 01:09:10 +01:00
luz paz
5c737973cf Link: Fix doxygen typo 2021-12-25 20:44:55 +01:00
Zheng, Lei
c4b0907c2c App: catch Base::Exception in ObjectIdentifier::getDep() 2021-12-23 15:35:22 +01:00
Zheng, Lei
16649243fb App: fix Enumeration assignment and comparison 2021-12-21 21:41:02 -07:00
Zheng, Lei
3e68a27960 Minor code changes according to suggestions 2021-12-21 21:41:02 -07:00
Zheng, Lei
c37c8658c4 App/Gui: add new ObjectStatus TouchOnColorChange
For triggering recompute on color changes
2021-12-21 21:41:02 -07:00
Zheng, Lei
611e79af53 App: insert UUID property to trace the source of copied object
A property _ObjectUUID will be added to an object before it is being to
copied, if the property does not exists. Anoter propert _SourceUUID
property will be added to any copied object, with value set to its
source objct's _ObjectUUID.
2021-12-21 21:41:02 -07:00