Commit Graph

1505 Commits

Author SHA1 Message Date
Uwe
2c86fe2ab1 [App] AutoTransaction: a change to silence MSVC compiler
as proposed here: https://github.com/FreeCAD/FreeCAD/pull/6519#discussion_r820641762
2022-03-07 20:34:02 +01:00
wmayer
4977e55e51 App: Optimize includes to reduce compile time 2022-03-07 15:53:58 +01:00
wmayer
c3138db55f App: include cstddef to get definition of size_t 2022-03-07 01:00:14 +01:00
Uwe
8bca1e00ec Revert "[App] add a missing return statement (#6519)"
This reverts commit 1be4ed57ae.
2022-03-07 00:50:18 +01:00
wmayer
e4435cdcba Base/App: fix warnings from code analysers:
* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
2022-03-06 23:49:30 +01:00
Uwe
1be4ed57ae [App] add a missing return statement (#6519)
* [App] add a missing return statement

as discussed here: c96f61b0a1 (commitcomment-68066635)
2022-03-06 23:20:05 +01:00
wmayer
58a719e207 Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
Uwe
c96f61b0a1 [App] next attempt to fix CI build error
- revert previous commit and re-add application as header
2022-03-06 03:25:14 +01:00
Uwe
befd041147 [App] try to fix CI build failure
- since I have no clue what the error is about:
https://gitlab.com/freecad/FreeCAD-CI/-/jobs/2167699355
I follow MSVC's advice that tells me that a function definition in the .cpp file is missing
2022-03-06 03:02:14 +01:00
wmayer
95c70e7f4c App: use forward declarations 2022-03-04 21:09:46 +01:00
wmayer
ca3c8185e0 App/Gui: move template classes (ViewProvider)ExtensionPythonT to their own header files 2022-03-04 18:54:42 +01:00
wmayer
4ae1ca58d1 App: use forward declaration to reduce compile time 2022-03-04 17:27:53 +01:00
wmayer
032cea587d Base: implement a lightweight smart pointer for PyObject like Py::Object to reduce includes of Python.h in header files 2022-03-04 15:51:51 +01:00
wmayer
4d9ddcfa66 App: move member DocumentPythonObject to DocumentP 2022-03-03 20:28:47 +01:00
Chris Hennes
3af20938cd 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
8a9ee1951b [App] remove header
slipped in with previous commit but will be part of a PR
2022-03-02 01:53:28 +01:00
Uwe
a5c838fefc [Base] some sorting and cleanup 2022-03-02 01:51:05 +01:00
wmayer
9955c64752 Mod: add string header to dxf.h 2022-03-01 17:18:29 +01:00
wmayer
7f8940b858 App: [skip ci] Add enum value to suppress error messages on document recompute 2022-02-28 17:54:25 +01:00
Uwe
40c7b1660b [App] Origin and Part: remove unused includes 2022-02-28 13:15:23 +01:00
Chris Hennes
853aa8c93e Core: Correct metadata docs 2022-02-27 23:33:07 -06:00
Uwe
178e082271 [App] Object, Meta, Merge: remove unused includes 2022-02-28 01:02:06 +01:00
Uwe
3a88639e19 [App] remove unused code and some header sorting 2022-02-28 00:17:16 +01:00
Uwe
07912f7388 [App] Link and Material: remove unused includes 2022-02-27 21:23:51 +01:00
Uwe
f35a1237b2 [App] Annotation: remove unused code 2022-02-27 18:30:15 +01:00
Uwe
8bedc25344 [App] Feature: remove unused includes 2022-02-27 16:37:29 +01:00
Uwe
b4fff07d9e [App] Expression and Extension: remove unused includes 2022-02-25 18:06:57 +01:00
Uwe
26102318a0 [App] remove some unused includes 2022-02-25 02:25:47 +01:00
Uwe
8dd1140a4b [App] Range to VRML: remove unused includes 2022-02-24 11:28:52 +01:00
Uwe
c7910825a3 [App] Placement and Property: remove unused includes 2022-02-24 01:09:00 +01:00
Uwe
4adabe3de8 [App] Document: remove unused includes 2022-02-23 01:56:26 +01:00
Uwe
4ed705903b [App] Application: remove unused includes
- also sort the includes
2022-02-22 13:17:07 +01:00
Uwe
62496d7277 Revert "App: fix property ordering problem when undo/redo (#3255)"
This reverts commit c3178343db.
2022-02-22 01:21:49 +01:00
Zheng, Lei
0a0bdf6762 App: fix undo/redo of dynamic property add/remove/change 2022-02-21 14:04:12 +01:00
Zheng Lei
c3178343db 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
02cfa11c8e Core: Add mechanism to disable addon 2022-02-20 22:09:57 -06:00
Chris Hennes
7a566ea4d8 Gui: Add interface for managing preference packs 2022-02-17 19:51:24 -06:00
wmayer
a5e561b31d 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
6cd68bf644 Core: Eliminate compiler warnings on Metadata 2022-02-14 12:32:47 -06:00
Chris Hennes
dc561d0125 Core: Fix metadata compiler warning 2022-02-11 11:15:33 -06:00
Chris Hennes
00ab1f7634 Core: Add additional Python bindings for Metadata 2022-02-10 15:25:07 -06:00
wmayer
a0b333ab2c App: set by default three colors for legend 2022-02-06 23:13:38 +01:00
wmayer
409d36df30 App: [skip ci] fix regression in ColorGradient/ColorField 2022-02-05 17:54:55 +01:00
wmayer
ce8df41709 App: fix ColorField::set/ColorGradient::set in case an invalid value range is passed 2022-02-05 14:13:35 +01:00
wmayer
cf268e6e6e App: fix Py3.8 warnings 2022-02-05 12:24:36 +01:00
wmayer
9c9ed2847b App: add missing pragma for GCC diagnostic 2022-02-04 22:38:26 +01:00
wmayer
e54b6e167a App: improve ColorLegend 2022-02-03 22:01:52 +01:00
wmayer
607180bd9c App: fix ColorField::set/ColorGradient::set in case an invalid value range s passed 2022-02-03 07:53:38 +01:00
wmayer
bc509c8069 App/Gui: make color bar to handle very small values 2022-02-02 21:12:59 +01:00
Chris Hennes
a0e4bb37d0 Addon Manager: Add search and display of tags 2022-01-31 15:24:40 -06:00