Commit Graph

33834 Commits

Author SHA1 Message Date
Pieter Hijma
d07dd67ba1 Gui: Cleanup Python varargs
Various function existed that had no arguments but were still treated as
if they were vararg functions.  This has no been changed to
add_noargs_method declarations, cleaning up the code.
2023-08-16 15:07:09 +02:00
bdieterm
5a58c5a084 ignore whole selected objects for Part linear/angular measurement tool
Whole objects selected in the model tree will be ignored for the measurement element selection.
This allows for selecting and toggling the visibility of an object in the model tree.
2023-08-16 15:01:45 +02:00
howie-j
8da37ae635 Update DlgSettings3DView.ui 2023-08-16 13:29:35 +02:00
Jonas Bähr
3e68d6fd50 Remove C++ escaping from *Py.xml templates
Now all escaping required for the C++ code generation is done when the
.cpp/.h files are generated. Previously, only newlines were escaped
automatically. This was a) inconsistent and b) leaked c++ details into
the xml data.
In addition, the escaping is now done in one central place, harmonizing
the three previous implementations.

Pre-existing c++ escape sequences in the XML files have been replaced by
their literal equivalent so that the resulting python doc sting remains
unchanged.
2023-08-16 13:17:25 +02:00
marioalexis
05df2da6b4 Gui: Change SelectionFilterPy to new PyCXX extension type 2023-08-16 08:39:14 +02:00
Daniel-Khodabakhsh
8003606222 Expressions: Add Vector API expression functions (#10237) 2023-08-15 23:00:16 -05:00
wmayer
a49e104993 Sheet: modernize C++: use range-based for loop 2023-08-15 20:21:20 +02:00
wmayer
6bb6c0c886 Robot: modernize C++: use range-based for loop 2023-08-15 18:40:42 +02:00
wmayer
30d98dd417 Surface: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
wmayer
96f27bf43f RE: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
wmayer
9f42af487b Points: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
wmayer
f24ada3151 Start: modernize C++: use range-based for loop 2023-08-15 14:00:43 +02:00
wmayer
28a0274c7d Web: modernize C++: use range-based for loop 2023-08-15 14:00:43 +02:00
wmayer
7c42bc5e60 MeshPart: modernize C++: use range-based for loop 2023-08-15 12:52:52 +02:00
Chris Mayo
516795c986 Remove duplicate model/iges MimeType entry 2023-08-15 10:58:49 +02:00
wmayer
375cb9a0fe Mesh: modernize C++: use range-based for loop 2023-08-15 10:56:30 +02:00
wmayer
2ceb6edfe5 Inspection: modernize C++: use range-based for loop 2023-08-15 08:37:17 +02:00
wmayer
009f9f2222 FEM: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
wmayer
664a08043e Import: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
wmayer
2725c3a54f Gui: modernize C++: use range-based for loop 2023-08-14 19:42:18 +02:00
wmayer
26f16f7410 App: modernize C++: use range-based for loop 2023-08-14 16:40:25 +02:00
wmayer
367cdb36ed Base: modernize C++: use range-based for loop 2023-08-14 14:09:29 +02:00
sliptonic
2fd17be361 Merge pull request #10216 from chennes/removePRBoilerplate
Remove the PR template text
2023-08-13 16:42:21 -07:00
Chris Hennes
0f434d4e02 Merge pull request #10125 from cjmayo/desktopfilename
Finish renaming desktop filename to org.freecad.FreeCAD
2023-08-13 14:24:18 -07:00
Chris Hennes
6a7f47c959 Merge pull request #10146 from marioalexis84/app-string_hasher_py
App: Fix crash and undefined behavior in StringHasherPy and StringIDPy
2023-08-13 13:45:06 -07:00
Chris Hennes
abc25fb269 Remove the PR template text
Closes https://github.com/FreeCAD/FreeCAD/discussions/10196 and https://github.com/FreeCAD/FreeCAD/discussions/10195
2023-08-13 13:38:12 -07:00
luzpaz
3d0bfa214f Fix various typos 2023-08-13 08:17:01 -07:00
Roy-043
91cfb15f64 Arch: Avoid dictionary.keys() where possible (#10159) 2023-08-13 11:46:51 +02:00
Roy-043
beb996e6a1 Draft: Avoid dictionary.keys() where possible (#10160) 2023-08-13 11:46:25 +02:00
Roy-043
0b58b7ba5a Draft: make_sketch should not change Autoconstraints of sketch (#10181) 2023-08-13 11:16:22 +02:00
Chris Hennes
614c01c0b1 Gui: Translate 'page' for new pages 2023-08-12 17:54:26 -04:00
Chris Hennes
2536c0d855 TD: Correct use of TRANSLATE_NOOP
Direct UI access should use translate()
2023-08-12 17:53:26 -04:00
Chris Hennes
05442206ac TD: Correct translation in TaskComplexSection 2023-08-12 17:52:16 -04:00
Roy-043
2f534dee4a AddonManager: Avoid dictionary.keys() where possible 2023-08-12 10:24:25 -07:00
Chris Hennes
2ee7a9266a Gui: Tweak size of developer warning
Ensure that the warning adapts to the font size and text length as needed.
2023-08-12 10:24:05 -07:00
Chris Hennes
ee7779455a Test: Begin QuantitySpinBox QTests 2023-08-12 10:23:43 -07:00
Roy-043
8a4e8ca60e Draft: Fix SVG "Edges not ordered" issue (#10116) 2023-08-12 15:30:54 +02:00
Jonas Bähr
321c448c39 Fix build of "tests" on macOS
Building the C++ unit tests failed for
 tests/src/Mod/Sketcher/App/SketchObject.cpp
because some XML headers were not found. This was because the XercesC
include dir was not in the search list for headers.

Details:
> In file included from /Users/jonas/src/FreeCAD/FreeCAD-git/tests/src/Mod/Sketcher/App/SketchObject.cpp:7:
> In file included from /Users/jonas/src/FreeCAD/FreeCAD-git/src/App/Application.h:33:
> /Users/jonas/src/FreeCAD/FreeCAD-git/src/Base/Parameter.h:55:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
> #include <xercesc/util/XercesDefs.hpp>
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is the same issue as already adresses previously with PR9657 [1] but
the test for SketchObject was added later [2].

[1]: https://github.com/FreeCAD/FreeCAD/pull/9657
[2]: 532b391b69
2023-08-11 06:33:38 -07:00
Jonas Bähr
e3de4f217c minor reformat: break lines, one per item 2023-08-11 06:33:38 -07:00
Jonas Bähr
22b173d0e2 Spreadsheet: fix build on macOS
The recent migration from boost::bind to std::bind [1] broke the build
on Mac (Apple clang version 13.0.0 (clang-1300.0.29.30) on macOS-11.7.8).

In all other cases the `boost::bind` was replaced by `std::bind` (among
with the place holders) but in these two spread sheet files
  src/Mod/Spreadsheet/Gui/SheetModel.cpp
  src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp
the original code only referenced `bind`, which used to get resolved to
`boost::bind` but now raises this error:
> /Users/jonas/src/FreeCAD/FreeCAD-git/src/Mod/Spreadsheet/Gui/SheetModel.cpp:50:36: error: use of undeclared identifier 'bind'; did you mean 'boost::bind'?
>         sheet->cellUpdated.connect(bind(&SheetModel::cellUpdated, this, sp::_1));
>                                    ^~~~
>                                    boost::bind

This commit changes this to `std::bind` expicitly, just like it's done in
the other files. This works on my system/compiler.

[1]: 68d22d864b
2023-08-11 06:15:51 -07:00
Paddle
58ef6c244e Pref: Theme: Make sure theme has changed before saving the setting. 2023-08-11 13:19:19 +02:00
Paddle
3899304b37 Pref: Theme: Solves #10136 2023-08-11 13:19:19 +02:00
marioalexis
b6444b5164 Base: Explicitly avoid parameters in PrecisionPy methods 2023-08-11 13:15:58 +02:00
berniev
8f75442a91 restore prev setting 2023-08-11 13:14:12 +02:00
wmayer
e2597aa77b Test: avoid to expand test dialog if label text is too long 2023-08-10 19:51:48 +02:00
wmayer
9f456d712b modernize C++: use equals delete 2023-08-10 17:29:05 +02:00
bdieterm
664c4ab1ac add initialization of locales with native environment settings to the main function 2023-08-10 17:28:00 +02:00
wmayer
8bb0edc9f0 Gui: fix another tabstop compilation warning
See also #10105
2023-08-10 17:01:45 +02:00
marioalexis
f1445ed315 Test: Add StringHasher test 2023-08-10 11:55:21 -03:00
marioalexis
594ebe54d8 App: Change indentation to 4 spaces in String*PyImp.cpp 2023-08-10 11:55:21 -03:00