Commit Graph

1463 Commits

Author SHA1 Message Date
wmayer
dc53e6dce1 App: fix restoring the attributes of a dynamic property
For more details see: https://forum.freecadweb.org/viewtopic.php?p=591465#p591465
2022-05-03 16:52:54 +02:00
wmayer
eebdaadb94 App: handle 'NoPersists' property type in PropertyContainerPy::getTypeOfProperty 2022-05-03 14:10:42 +02:00
wmayer
95123b3399 App: expose PropertyType enum to Python 2022-05-03 11:24:23 +02:00
Zheng, Lei
fe5ac277a0 App: fix property conflict in App::Link restore
The conflict happens if the App::Link has dynamic property having the
same name as the linked object
2022-04-25 00:49:16 +02:00
wmayer
6bc65bdd99 Mod: issue #6274: Source code installation failed 2022-04-18 12:27:09 +02:00
marioalexis
8f3f1d1e4c App: Use regex to match names in ComplexGeoData::getSubElementByName 2022-04-15 17:38:17 +02:00
wmayer
631d36e87c App: [skip ci] fix bug in ComplexGeoDataPy::getPoints
The normals were added to the wrong list
2022-04-13 11:23:15 +02:00
0penBrain
78e1174018 Core: partially revert 4ab37fc that introduced composed units
Parser shall only deal with atomic units or it breaks other composed units
 Fixes #6735
2022-04-13 03:45:39 +02:00
Zheng, Lei
15c59d6007 App/Gui: Fix auto checking 'Sync sub object' if property link editor
Related FreeCAD/FreeCAD#6672 case C
2022-04-10 14:31:25 +02:00
Zheng, Lei
9242355c8c App: fix PropertyXLinkSubList::getLinks()
Originally getLinks() missed entries without subname/sub-element

Related FreeCAD/FreeCAD#6672 case B
2022-04-10 14:31:25 +02:00
wmayer
1ff4ad085c App: issue #6672: PartDesign SubShapeBinder: crash and other issues when manually editing Support
This change only fixes the crash as described in procedure A at https://github.com/FreeCAD/FreeCAD/issues/6672
2022-04-10 12:18:41 +02:00
wmayer
9eac35cf5d Gui: clean-up Selection API
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
Uwe
7ddf10df45 [skip CI] [App] PropertyLinks: fix line endings 2022-04-09 06:36:43 +02:00
0penBrain
1928bfed63 Fix typo 2022-04-08 10:55:31 +02:00
wmayer
dc3986ee10 Base: add method isEqual() to Base::Flags<> to simplify comparison 2022-04-05 19:09:14 +02:00
wmayer
d666cc4114 App: [skip ci] fix zero-based color model Red-White-Blue 2022-04-03 00:58:51 +02:00
wmayer
02b8a98f79 App: [skip ci] fix zero-based color model Red-White-Blue 2022-04-02 11:06:18 +02:00
wmayer
874a6ef28e App/Gui: refactor ColorGradient and move all settings to ColorGradientProfile 2022-04-02 10:58:04 +02:00
wmayer
5fe0a63201 App: handle option 'outside invisible' directly in ColorGradient 2022-04-01 08:38:27 +02:00
wmayer
8ccaac7264 App: [skip ci] whitespace changes 2022-03-31 23:19:00 +02:00
wmayer
9fcf5faf69 App: in verbose mode print used library versions 2022-03-31 16:33:00 +02:00
Chris Hennes
132a1d7e55 App: PR6497 move return statement to new line 2022-03-29 12:33:37 -05:00
Adrian
a7ef1d7aa8 fix creation of backup file even when numberOfFiles<=0 in applyTimeStamp
and move file deletion inside if (fi.exists()) block
2022-03-28 19:17:43 +02:00
Adrian
c346f76ae8 move tmp file rename after file deletion in applyTimeStamp when numberOfFiles <=0 [fixes #6532] 2022-03-28 19:17:43 +02:00
Zheng, Lei
97deadf437 App: minor change to LinkParams 2022-03-26 10:19:20 -04:00
Zheng, Lei
63ac642785 Gui: expose Link CopyOnChange setup through context menu
The CopyOnChange setup is meant to let user select which dependency to
copy when changing configuration.
2022-03-26 10:19:20 -04:00
Zheng, Lei
5947f91b17 Gui: refactor Object Selection Dialog
It is originally used for dependency selection when copying object.
Modified to improve auto dependency selection, and for use by Link
configuration object setup, which also involves dependency selection.
2022-03-26 10:19:20 -04:00
Zheng, Lei
c6d87e69b5 App: fix recompute problem caused by expression hidden reference 2022-03-26 10:19:20 -04:00
Zheng, Lei
d1b6bb78d1 App/Gui: support Link refresh on change of originally linked configurable object 2022-03-26 10:19:20 -04:00
Uwe
d286b52b57 [App] add property for electric potentials
- in preparation to fix the electrostatic simulation mess
2022-03-26 01:39:32 +01:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
3bdf1fecce App: fix for Py3.8 or newer 2022-03-23 18:03:58 +01:00
Uwe
9581790055 [App] intermediate compilation fix
- needed for the CI as well as for MSVC
2022-03-23 17:52:52 +01:00
wmayer
749361d2f3 App: modernize C++11
* use nullptr
2022-03-23 17:29:23 +01:00
Chris Hennes
1d74892f34 App: Fix missing ignored variable 2022-03-21 09:40:28 -05:00
Chris Hennes
9fe1bdb092 App: Add Metadata content type test 2022-03-21 09:24:51 -05:00
wmayer
cf7fd5d2ac lgtm: removes unused imports in Python scripts 2022-03-20 23:00:55 +01:00
wmayer
c9a0fae9db lgtm: [skip ci] FIXME comment
Change FIXME or remove it
2022-03-20 16:51:23 +01:00
wmayer
702222b5a2 App: [skip ci] lgtm: Declaration hides parameter
Local variable 'obj' hides a parameter of the same name.
2022-03-20 16:46:16 +01:00
wmayer
32e9984751 App: [skip ci] lgtm: Large object passed by value
This parameter of type pair<const basic_string<char, char_traits<char>, allocator<char>>, Metadata> is 672 bytes - consider passing a const pointer/reference instead.
2022-03-20 16:42:48 +01:00
wmayer
a93cec09bc App: [skip ci] fix warning 2022-03-20 13:41:45 +01:00
wmayer
a60754ea93 App/Gui: make operator-> operator of WeakPtrT constant 2022-03-19 15:35:58 +01:00
wmayer
b84e41bc89 App: make sure to create parent directories of a document's transient directory 2022-03-19 13:58:10 +01:00
wmayer
25bae6343b App: use static functions of FileInfo to convert between path and string 2022-03-19 13:57:24 +01:00
wmayer
9160f06e1c Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
11895f8d59 App: change base types of some exceptions and raise XML exceptions in MetadataPy::PyInit 2022-03-17 11:43:59 +01:00
wmayer
10a13c6dbc Base: add more custom Python exception types 2022-03-17 11:29:09 +01:00
wmayer
0054cbddaa Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Chris Hennes
2fc9c93235 App: Improve Metadata error handling
Report XML parse exception details.
2022-03-13 21:01:47 -05:00