kaktus Jacek
21b327eb04
Cleaning code from unnecessary strings generated to Crowdin 3 ( #10420 )
...
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-29 07:35:04 -05:00
Chris Hennes
3d8ec230f8
Merge pull request #10365 from chennes/wrapPyArgParseWithKeywords
...
Wrap PyArg_ParseTupleWithKeywords
2023-08-27 10:23:31 -05:00
kaktus Jacek
b6db25c2d2
Cleaning code from unnecessary strings generated to Crowdin. ( #10385 )
...
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-27 10:08:11 -05:00
Chris Hennes
068b39092c
Part: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
2c2347f746
Tests: add unit tests for:
...
* TopoShape::getElementTypeAndIndex
* ComplexGeoData::getTypeAndIndex
and fix crashes there when passing a null pointer
2023-08-25 19:23:18 +02:00
wmayer
66fb1c7777
Part: refactor ViewProviderPartExt::getDetail
2023-08-25 19:23:18 +02:00
wmayer
57057b5840
Part: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
b9e9fe435a
Part: modernize C++: use equals default
2023-08-22 15:14:03 +02:00
wmayer
c8abd4a6d4
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
Chris Hennes
bac14e81f7
Merge pull request #10258 from chennes/translations20230814
...
Update translations
2023-08-18 08:52:13 -05:00
Chris Hennes
58cf9f3212
Update translations
...
Adds the ten units strings from Base as well.
2023-08-16 22:50:39 -05:00
wmayer
7cb51a4980
Part: modernize C++: use range-based for loop
2023-08-16 21:56:32 -05:00
bdieterm
d5c4e501ad
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
Jonas Bähr
34b176c1db
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
luzpaz
5b698e6b68
Fix various typos
2023-08-13 08:17:01 -07:00
wmayer
7fe0d5b9a6
modernize C++: use equals delete
2023-08-10 17:29:05 +02:00
wmayer
15c41e81d1
fixes #10063 : Part_SectionCut does not work if the view is in perspective
2023-08-10 00:48:21 +02:00
Chris Hennes
3bad74fe7d
Update translations
2023-08-08 17:52:59 -06:00
wmayer
948cbfccd9
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
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
ec73caa40e
modernize C++: make unique
2023-08-07 19:51:30 -06:00
wmayer
c2e17824fa
modernize C++: raw string literal
2023-08-07 19:51:15 -06:00
bdieterm
ed7427330e
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
da2ae719f2
[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
wmayer
31ed14db83
modernize C++: use noexcept
2023-08-07 16:06:58 +02:00
wmayer
df93b14ec0
modernize C++: use emplace
2023-08-06 20:29:56 -06:00
wmayer
7a3106d31b
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
tomate44
529f791c78
Part: add optional tolerance to python sortEdges()
2023-08-05 15:17:26 -06:00
wmayer
22e6e2cd40
Part/PD: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
andrea
68101ac933
removed old OCC <7 references
...
removed OCC <7 references
2023-08-04 21:22:40 -06:00
wmayer
52ef3a540c
Part: modernize C++: use override
2023-08-04 17:09:53 +02:00
Yorik van Havre
51d8f94f10
Merged crowdin translations
2023-07-26 11:05:11 +02:00
Yorik van Havre
4501cf479c
Update ts files
2023-07-26 11:04:24 +02:00
sliptonic
ef4ca26382
Merge pull request #9594 from wwmayer/issue_9549_new
...
Part: fixes #9549 : Part Fuse not working inside Part container
2023-07-24 10:16:51 -05:00
Chris Hennes
dd40387478
Update translations
2023-07-24 13:37:52 +00:00
Benjamin Bræstrup Sayoc
ba33e50962
[Part] Make tooltip match label
...
Fixes issue #9941
2023-07-17 09:47:53 -04:00
wmayer
1e7825cc02
Part: add a unit test for PR #9905
2023-07-14 11:29:20 -05:00
Chris Hennes
a6e4eb942f
Merge pull request #9905 from Syres916/patch-85
...
[Part] Fix regression when opening...
2023-07-14 11:29:04 -05:00
wmayer
f99205a4bc
Part: delete created document in unit test TopoShapeListTest.testMakeTopoShapeList
2023-07-14 11:04:23 +02:00
Syres916
37b08b962c
[Part] Fix regression when opening...
...
project files with linked objects having face colors.
See discussion https://forum.freecad.org/viewtopic.php?t=79558
Regression commit: cbc5c182cf
2023-07-11 00:20:27 +01:00
Chris Hennes
e1ca567172
Apply translations
2023-07-09 18:09:53 -05:00
Chris Hennes
0ca283cc3e
Update translations
2023-07-06 08:20:59 -05:00
Abdullah Tahiri
2834aebf90
Unused variable
2023-06-29 23:42:28 +02:00
wmayer
f09bf02b6d
Part: fixes #5967 : Weird behavior in Placement dialog when using "center of mass" with Datum Plane
2023-06-29 22:49:39 +02:00
Yorik van Havre
398de2d031
merged crowdin translations
2023-06-16 16:42:32 +02:00
Pesc0
c65f049d20
[Toponaming] create ElementMap class ( #9175 )
...
* Copypaste ElementMap
* Add MappedNameRef
* Fix missing include
* Copypaste `findTagInElementName`
* fix error introduced _somewhere_
* refactor toponaming constants
* Move `findTagInElementName` in `MappedName`
* reintroduce workaround to compile ElementMap
* Added missing functions copied from complexgeodata
* fix last compile errors, reorder and format files
* remove recursive refs to ComplexGeoData
* Add more comments
* fixed comments and added tests
* added FIXME, make functions private, misc fixes
* Move static functions from complexGeoData to PostfixStringReferences. Rename to ElementNamingUtils
* Fix broken includes due to previous change
* Revert constants from string to const char*
* added childmap tests and made hasher public
* Make functions private
* Added remaining tests
* removed bool return from `erase` functions
* fix missing appexport
Co-authored-by: John Dupuy <jdupuy98@gmail.com >
2023-06-15 09:05:24 -05:00
Yorik van Havre
3c07d567cf
Merged crowdin translations
2023-06-12 22:34:22 +02:00
Yorik van Havre
d61e60511a
Updated ts files
2023-06-12 22:27:56 +02:00
Chris Hennes
05b85d0ddc
Sync translations
2023-06-04 14:11:21 -05:00
Chris Hennes
2686ad58b9
Update translations
2023-05-25 21:32:26 -05:00