wmayer
ee0fad4c90
App: modernize C++: use default member init
2023-08-23 19:51:44 +02:00
wmayer
89bdd489b0
App: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
wmayer
26f16f7410
App: modernize C++: use range-based for loop
2023-08-14 16:40:25 +02:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
0af4990817
modernize C++: make unique
2023-08-07 19:51:30 -06:00
wmayer
6e7ee14062
App: [skip ci] fix memory leak
2022-11-14 19:42:33 +01:00
Uwe
a96a3a505f
use explicit prefix std:: for vectors
...
- also add potentially missing include
- this commit is an attempt to fix #7585
2022-10-11 01:44:24 +02:00
marioalexis
5cb31ece93
App: Check Python types using Base::PyTypeCheck
2022-09-24 05:10:34 +02:00
marioalexis
9ccb9eecb2
App: Replace C cast
2022-09-18 11:06:51 -05:00
wmayer
5240a30431
App: modernize C++: replace 'typedef' with 'using'
2022-08-29 12:58:39 +02:00
berniev
d66df602ad
App: Single arg ctors must be explicit
2022-08-24 07:20:57 +02:00
berniev
1cc6329eab
App: use empty
2022-08-06 19:29:59 +02:00
berniev
e7357c1a99
App: use emplace_back
2022-08-05 10:31:51 +02:00
berniev
65a356835b
App: Modernise ctors dtors defs etc
2022-08-01 00:34:46 +02:00
berniev
b40de7a509
remove redundant void
2022-07-31 10:27:44 +02:00
wmayer
bf7e6aac4a
Fix several clazy issue:
...
* Suppress non-POD static [-Wclazy-non-pod-global-static]
* Call to temporary is a no-op: [-Wclazy-writing-to-temporary]
* Unused QString [-Wclazy-unused-non-trivial-variable]
2022-07-24 21:39:59 +02:00
andrea
0c4c3cc786
Remove unused code into App
2022-07-23 14:27:50 +02:00
Uwe
142cfce9f7
[App] code style fixes by MSVC
...
- automatic .clang fixes while checking for nullptr, no actual code change
2022-07-18 13:03:42 +02:00
Uwe
fa36a57724
[App] remove superfluous nullptr checks
2022-07-18 03:12:01 +02:00
mosfet80
620c273c4e
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +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
Uwe
7ddf10df45
[skip CI] [App] PropertyLinks: fix line endings
2022-04-09 06:36:43 +02:00
Chris Hennes
132a1d7e55
App: PR6497 move return statement to new line
2022-03-29 12:33:37 -05:00
wmayer
749361d2f3
App: modernize C++11
...
* use nullptr
2022-03-23 17:29: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
4ae1ca58d1
App: use forward declaration to reduce compile time
2022-03-04 17:27:53 +01:00
Uwe
c7910825a3
[App] Placement and Property: remove unused includes
2022-02-24 01:09:00 +01:00
wmayer
f147986fa9
App: Bugfix for NULL-Pointer dereference of Property->getName()
2022-01-16 14:30:51 +01:00
wmayer
d3cdd29f5e
App: [skip ci] fix Property::isSame() and subclasses by first comparing the pointers directly
2022-01-07 17:09:08 +01:00
Zheng, Lei
08cdd323b6
App: add Property::isSame() API
...
To compare if two property contains the same content. The default
implementation in Property uses the persistense interface to save both
properties to string and compares the content. This may not work at the
moment if the property saves content in separate file or in binary.
Various properties have cheaper implementation to direct compare their
internal values.
2021-12-21 21:41:02 -07:00
Zheng, Lei
b9e72f1a7c
App: fix subname encoding when saving property links
2021-11-21 23:35:40 -06:00
wmayer
0469e277ab
App: add PropertyLinkSubList::addValue() to extend the list
2021-11-15 13:05:19 +01:00
wmayer
1929b4ca4a
App: add PropertyLinkSubList::verifyObject() to reduce code duplication
2021-11-15 08:42:32 +01:00
Zheng, Lei
14dfae0597
App: add hiddenref() expression built-in function
...
Any object reference inside this function is treated as hidden to
exclude it from dependency calculation. This function allows some form
of cyclic depdenency.
Merger note: renamed from "HREF" to "HIDDENREF" to avoid confusion with
the standard "hypertext reference" use of HREF.
2021-11-14 20:45:09 -06:00
wmayer
b2475b228a
App: add upgrade() method to PropertyLinkSubList
2021-11-12 07:49:44 +01:00
Zheng, Lei
fc9d3547ad
App: fix external document loading
...
The problem happens when partial loading is enabled. If document A
contains a link to some object in document B, it will load B as partial
document with only that object and its necessary dependencies. But if
document A contains another link to some object in document C which also
has a link to some object in document B, the link in document C may not
be restored, because document B is partially loaded without the linked
object. This patch will check for this case and reload document B for
more objects.
See an example reported in
https://forum.freecadweb.org/viewtopic.php?p=495078#p495078
2021-10-30 11:03:52 +08:00
Chris Hennes
6780ded233
[App] Fix LGTM warning decl hides param
2021-09-19 12:31:24 -05:00
wmayer
1241752b94
App: [skip ci] check object status before accessing back links
2021-02-22 17:31:25 +01:00
wmayer
c54deee146
Py2/Qt4: fix build failures and warnings
2020-11-30 19:05:37 +01:00
wmayer
6b2b6a4868
PyCXX: [skip ci] fix compiler warnings due to changes on PyCXX
2020-11-25 16:52:46 +01:00
luz paz
bfdffb50be
App: Fix header uniformity, trailing whitespace, and doxygen headers
2020-11-19 13:38:37 +01:00
wmayer
e2b58bf3d5
App: simplify the logic in PropertyLinkList::getPyValue
2020-11-18 18:21:15 +01:00
Chris Hennes
031619db27
Modify PropertyLinkList to accept None from Python.
2020-11-18 18:11:11 +01:00
Zheng, Lei
18eb018a14
App: fix PropertyXLink handling on symlink file path
2020-08-31 14:05:14 +02:00
wmayer
035993c968
typos: [skip ci]
2020-08-30 14:51:55 +02:00
wmayer
bf1e8e4838
App: fix crash due to incorrect usage of std::mismatch
2020-08-22 20:25:10 +02:00
Jean-Marie Verdun
0b1af7c838
Add App::Link support to Cloud module
...
ONLY enabled if the Cloud Module is compiled into FreeCAD
ALL files must be saved into a Cloud Based storage
Add a Signal to the PropertyLink to enable support of external storage
Put the Assembly Document as active document
Signed-off-by: Jean-Marie Verdun <jmverdun3@gmail.com >
2020-07-23 13:47:21 +02:00
wmayer
421f6c52cb
Coverity: Dereference after null check
2020-07-20 17:34:25 +02:00