Commit Graph

1392 Commits

Author SHA1 Message Date
wmayer
9798e6de2b App: move member DocumentPythonObject to DocumentP 2022-03-03 20:28:47 +01:00
Chris Hennes
6dd6c3168d Core: Remove Init.py stop file check from inner package loop
Check was unused, only stop files located at the top-level should halt loading.
2022-03-02 10:00:52 -06:00
Uwe
7a551a82f3 [App] remove header
slipped in with previous commit but will be part of a PR
2022-03-02 01:53:28 +01:00
Uwe
71d6e43d54 [Base] some sorting and cleanup 2022-03-02 01:51:05 +01:00
wmayer
739804b511 Mod: add string header to dxf.h 2022-03-01 17:18:29 +01:00
wmayer
e70170dbf3 App: [skip ci] Add enum value to suppress error messages on document recompute 2022-02-28 17:54:25 +01:00
Uwe
d64c091385 [App] Origin and Part: remove unused includes 2022-02-28 13:15:23 +01:00
Chris Hennes
7d0e6aa1ac Core: Correct metadata docs 2022-02-27 23:33:07 -06:00
Uwe
f04194b7bb [App] Object, Meta, Merge: remove unused includes 2022-02-28 01:02:06 +01:00
Uwe
efd68f1c69 [App] remove unused code and some header sorting 2022-02-28 00:17:16 +01:00
Uwe
062944f674 [App] Link and Material: remove unused includes 2022-02-27 21:23:51 +01:00
Uwe
7a60d92282 [App] Annotation: remove unused code 2022-02-27 18:30:15 +01:00
Uwe
9d30b0af6a [App] Feature: remove unused includes 2022-02-27 16:37:29 +01:00
Uwe
a8c912d6f8 [App] Expression and Extension: remove unused includes 2022-02-25 18:06:57 +01:00
Uwe
d837160c8e [App] remove some unused includes 2022-02-25 02:25:47 +01:00
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