Markus Reitböck
d05e2a0431
App: use CMake to generate precompiled headers on all platforms
...
"Professional CMake" book suggest the following:
"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."
Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-14 09:47:02 +02:00
Chris Hennes
f5806841b6
Merge pull request #19907 from benj5378/getAttribute
...
Base: make getAttribute template
2025-05-12 10:39:55 -05:00
Benjamin Bræstrup Sayoc
492b8312b3
Base: make getAttribute template
2025-05-09 15:54:57 +02:00
bofdahof
998f4e4d45
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Ladislav Michl
c293d74566
Base: rename Exception's PascalCase methods to camelCase
2025-05-05 23:50:01 +02:00
Chris Hennes
867e4507cc
App: Prevent exceptions in destructors
...
Coverity issues 251332 and 356538. These destructors call methods
that could throw exceptions. Catch them and convert to console
print statements to prevent calls to `terminate()`.
2025-03-23 08:52:44 +01:00
wmayer
5771c94523
App: Apply clang format (part 2)
2024-11-21 21:17:42 +01:00
Zheng, Lei
1bb5350c51
App: fix PropertyPythonObject persistence backward compatibility
...
Related #10460
2024-02-03 17:20:46 +01:00
Florian Foinant-Willig
773c701eec
Core: modernize type checking
2023-10-23 18:07:07 +02:00
wmayer
56820718c5
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
1f9bae0de7
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-25 22:58:23 -03:00
wmayer
58adf212d9
App: still support __getstate__/__setstate__ for add-ons for < Py3.11
2023-09-25 14:48:54 +02:00
wmayer
83d4080fe8
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
AgCaliva
39dcb1da7b
Merge Master
2023-08-30 16:24:16 -03:00
AgCaliva
1f6545557d
Fixed working with tests
2023-08-29 14:41:58 -03:00
wmayer
26f16f7410
App: modernize C++: use range-based for loop
2023-08-14 16:40:25 +02:00
wmayer
96aabe113e
modernize C++: raw string literal
2023-08-07 19:51:15 -06:00
wmayer
347729090a
App: in PropertyPythonObject::fromString only assign a dict to __dict__ attribute
2023-03-24 14:43:38 +01:00
Syres916
2ed96078c5
[App] Urgent Backout commit cb21604
...
cb21604494 Humble apologies, back to the drawing board and more testing required.
2023-03-23 15:04:38 +00:00
Syres916
cb21604494
[App] Minor improvment to error handling for...
...
... a rare event, see https://forum.freecad.org/viewtopic.php?t=76947
2023-03-21 16:43:45 +01:00
wmayer
313525a012
Core: [skip ci] ignore some code spell checks and filter all '_rc_.py' files
2022-12-05 10:12:49 +01: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
749361d2f3
App: modernize C++11
...
* use nullptr
2022-03-23 17:29:23 +01:00
Uwe
b4fff07d9e
[App] Expression and Extension: remove unused includes
2022-02-25 18:06:57 +01:00
Uwe
c7910825a3
[App] Placement and Property: remove unused includes
2022-02-24 01:09:00 +01:00
luz paz
fc6d1292d1
App: remove Py2 code from several src/App .cpp files
2021-04-19 15:27:06 +02:00
wmayer
75b9dd8a0e
[skip ci] App: print affected Python type if serializing via JSON fails
...
FemGui: add default implementations of __getstate__/__setstate__ to _ViewProviderFemResultMechanical
2020-03-10 16:32:31 +01:00
wmayer
b50b21576e
core system
...
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +02:00
wmayer
ed47e962d2
Py3: fix crash if class is not part of a module any more
2019-06-02 18:06:46 +02:00
wmayer
b112ac0ec1
fixes 0003513: Can't open file - some exceptions are shown in the log
2018-09-25 13:21:53 +02:00
wmayer
cb13376746
properly handle failure of loading a module
2018-06-09 15:55:20 +02:00
looooo
ca3e58e2f3
py3: App: files D-Z ported to python3
...
issue 0000995
diff to py3-branch will remain in the following files in src/App:
- ExtensionContainer.cpp
- FeaturePythonPyImp.h +.inl
most likely these files depend on Tools and Base
2017-05-11 19:19:17 +02:00
Sebastian Hoogen
faac8c36ba
add encoding parameter to .as_std_string()
...
to handle PyUnicode Objects. Usually ASCII for object names and Utf-8
for file names and console output.
issue #995
2015-02-08 15:37:00 +01:00
wmayer
5c269996b8
+ restore lost changes, improve whitspaces, suppress useless MSVC warnings
2014-08-28 12:37:42 +02:00
jriegel
d65a4e4ed7
some type clearification
2014-08-21 17:59:33 +02:00
jriegel
30b189c1da
Merge branch 'refs/heads/double-precision-werner'
...
Conflicts:
src/App/Document.cpp
src/App/PropertyGeo.cpp
src/App/PropertyStandard.cpp
src/Base/Reader.cpp
src/Base/Reader.h
src/Gui/propertyeditor/PropertyItem.cpp
src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
src/Mod/Inspection/Gui/ViewProviderInspection.cpp
src/Mod/Mesh/App/MeshProperties.cpp
src/Mod/Part/App/TopoShapeFacePyImp.cpp
src/Mod/PartDesign/App/FeatureRevolution.cpp
2013-09-26 00:05:05 +02:00
jriegel
68078487c7
Add SchemaVersion to RestoreDocFile to distinquish double from float binary
2013-09-24 11:01:09 +02:00
wmayer
946bd02df4
Improve reporting of Python exceptions
2013-05-04 14:23:53 +02:00
wmayer
d98d013b71
0001086: Crash when executing script 3 times
2013-04-06 16:44:15 +02:00
wmayer
b24f0efbc1
Remove FileVersion from RestoreDocFile, convert point data back to floats
2013-03-29 15:23:51 +01:00
jrheinlaender
fdc3e50811
Added FileVersion attribute to XML format to distinguish legacy float binary files from new double binary files
2013-03-27 11:47:18 +04:30
wmayer
765d887943
Extend data serialization with JSON
2012-09-27 13:43:26 +02:00
wmayer
f3865e7efe
Fix crash when loading projects built with Kene's Buildes module
2012-08-28 10:46:41 +02:00
wmayer
16788eea21
Fix build error
2012-07-04 10:43:23 +02:00
wmayer
feeaac9ecb
0000774: merge project with these files instantly crashes FreeCAD
2012-07-03 18:27:10 +02:00
wmayer
f8c299c858
0000762: cPickle allows to trigger arbitrary code execution from FCStd file
2012-07-03 14:32:19 +02:00
wmayer
7032f5f329
0000762: cPickle allows to trigger arbitrary code execution from FCStd file
2012-07-02 15:31:23 +02:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00