Commit Graph

25743 Commits

Author SHA1 Message Date
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
Roy-043
8a4e8ca60e Draft: Fix SVG "Edges not ordered" issue (#10116) 2023-08-12 15:30:54 +02: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
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
wandererfan
b7f149864b [TD]move dvp cosmetic functions to extension 2023-08-10 10:17:22 -04:00
wandererfan
a379f17b1c [TD]provide result of detail to other views 2023-08-10 10:17:22 -04:00
wandererfan
d087a8fea4 [TD]remove unused code dvp & sections 2023-08-10 10:17:22 -04:00
wandererfan
0f504fc9da [TD]refactor QGIViewPart 2023-08-10 10:17:22 -04:00
wmayer
778653825b Drawing: fix build failure 2023-08-10 10:51:34 +02:00
Roy-043
79a31d7483 Material: Avoid dictionary.keys() where possible 2023-08-10 00:59:02 +02:00
Roy-043
2e835349d2 PartDesign: Avoid dictionary.keys() where possible 2023-08-10 00:54:21 +02:00
wmayer
a8a730bf6d fixes #10063: Part_SectionCut does not work if the view is in perspective 2023-08-10 00:48:21 +02:00
sliptonic
a12a44823d Merge pull request #10118 from Roy-043/Path-Avoid-dictionary.keys()-if-possible
Path: Avoid dictionary.keys() if possible
2023-08-09 14:32:49 -05:00
wmayer
a4e8ed4217 TD: fix possible crash in QGIWeldSymbol::customBoundingRect()
Forum thread: https://forum.freecad.org/viewtopic.php?t=80203
2023-08-09 10:48:11 -04:00
Roy-043
bc22e34b91 Drawing: Avoid dictionary.keys() where possible 2023-08-09 10:15:01 +02:00
Roy-043
beaf4ccb71 Import: Avoid dictionary.keys() where possible 2023-08-09 10:10:35 +02:00
Roy-043
67ce237651 Merge branch 'master' into Path-Avoid-dictionary.keys()-if-possible 2023-08-09 08:22:46 +02:00
Chris Hennes
d3c08a2da9 Update translations 2023-08-08 17:52:59 -06: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
Roy-043
7bb6f48dbd Mesh: Avoid dictionary.keys() where possible 2023-08-08 17:29:05 +02:00
wmayer
662e305dc3 Path: make export macro accessible in header file
It's not recommended any more to keep the export macro in the PreCompiled.h because many IDEs fail to fetch the export macro and raise a parsing error instead.
2023-08-08 17:27:28 +02:00
Roy-043
4f7bca2f65 Path: Avoid dictionary.keys() if possible 2023-08-08 15:56:22 +02:00
luzpaz
93ddce5008 Fix various typos 2023-08-08 14:25:00 +02:00
wmayer
0af4990817 modernize C++: make unique 2023-08-07 19:51:30 -06:00
wmayer
96aabe113e modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
Paddle
61daaceb8f Add 'type' to MetadataPy, MetadataPyImp and addonmanager_metadata.py 2023-08-07 10:52:08 -06:00
bdieterm
c9028e46fe Part: allow reduction of Part ViewProvider tesselation resolution
Problem description
To display a shape, the ViewProvider creates a mesh of the shape data. The
resolution depends also on the two parameters "Angular Deflection" and
"Deviation" in the View properties. (The values of these parameters are also
updated for all objects when changing these settings in the Preferences
dialog).
Changing the parameters from a high value to a lower value has an immediate
effect on the displayed shape -- for example a circle will be displayed finer
with more line segments. But changing the parameter back to the higher value
(with less resolution) will keep the finer view-mesh instead of calculating a
coarser one. To get back to the coarse view, the object has to be manually
recomputed or the file re-opened.

Solution
I just set the meshing parameter AllowQualityDecrease to True. I guess that
this was not implemented before because this parameter is quite new (introduced
in OCC v7.5 in the year 2020).
2023-08-07 10:19:58 -06:00
Benjamin Bræstrup Sayoc
33384cff9c [Everywhere] FileInfo::hasExtension for multiple values (#9774)
* [Base] Add hasExtension for multiple values

* [Gui] Use hasExtension for multiple values

* [Drawing] Use hasExtension for multiple values

* [Fem] Use hasExtension for multiple values

* [Import] Use hasExtension for multiple values

* [Mesh] Use hasExtension for multiple values

* [Part] Use hasExtension for multiple values

* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
tomate44
9587393ca3 Surface: fix BlendCurve relative size
values independent of the number of control points are more intuitive
2023-08-07 09:53:00 -06:00
wmayer
f94b026456 modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
wmayer
c7a17468e7 modernize C++: use noexcept 2023-08-07 16:06:58 +02:00
wmayer
4f10fc4fa0 modernize C++: use emplace 2023-08-06 20:29:56 -06:00
wmayer
89d529ab7b modernize C++: use using 2023-08-06 23:17:10 +02:00
wmayer
2a88c7c7df modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
wmayer
5a7824b646 Mesh: for invalid neighbour facet indexes explicitly use -1
The underlying C++ class use an unsigned long to reference neighbour facets. ULONG_MAX is used to indicate a missing neighbour facet.
Since the value of ULONG_MAX is platform dependent and can be confusing in Python the Python wrapper FacetPy now explicitly uses -1 to indicate missing neighbour facets
2023-08-05 15:32:11 -06:00
tomate44
df9c8f6556 Part: add optional tolerance to python sortEdges() 2023-08-05 15:17:26 -06:00
Tobias Falk
5965956293 added PDF/A-1b compliancy to all PDF export functions
for more details about this look at: https://www.kdab.com/creating-pdfa-documents-qt/
2023-08-05 14:46:11 -06:00
wmayer
d244dcf2da modernize C++: use nullptr 2023-08-05 11:23:12 -06:00
wmayer
39e53e5eb0 Mods: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
ca84a0662d Sheet: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
899932cec0 Part/PD: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
5621a0089f Qt6 port:
Fix deprecation warnings with version 6.3 or 6.4
2023-08-04 21:23:14 -06:00
andrea
170c2b9957 removed old OCC <7 references
removed OCC <7 references
2023-08-04 21:22:40 -06:00