Commit Graph

35638 Commits

Author SHA1 Message Date
Roy-043
cb2fdeeeea Draft: DraftGui.py make type of self.facecolor consistent
Since V0.19 self.facecolor had two types: integer (initial value) or QColor. With this PR it is again always a QColor.
2024-01-19 18:31:11 +01:00
Chris Hennes
10d1102b84 Merge pull request #12007 from chennes/toponamingElementNameComparator
App/Toponaming: Add Comparator for mapped elements
2024-01-19 09:20:59 -06:00
Chris Hennes
01859163da Merge pull request #12024 from Ondsel-Development/property_rightclick
Core : Tree: Add 'Properties' action in contextual menu. Opens a prop…
2024-01-19 08:58:54 -06:00
Kacper Donat
f4030c4384 Gui: Fix scroll behaviour in preference pages selector
This fixes problem with scroll jumping after selecting page on bottom of
the pages tree view. It was caused by collapsing group of the current
item and then re-expanding it few lines after.

Fixes: #12000
2024-01-19 08:27:05 -06:00
Paddle
2bf3639fb5 Core: PropertyEditor : save properly the size of the first column. 2024-01-19 10:49:33 +01:00
Paddle
3136bd6fcc Core: add property command, that shows property view. 2024-01-19 10:26:00 +01:00
wandererfan
0eee1c476a [TD]fix Complex Section scale with DPGI base 2024-01-18 13:27:29 -05:00
wandererfan
cf3189fef7 [TD]fix Section scale for DPGI base views 2024-01-18 13:27:29 -05:00
Roy-043
893f0fed5b Multiply textheight by DefaultAnnoScaleMultiplier 2024-01-18 15:43:15 +01:00
Roy-043
544bd1e7ea Arch: implement new get_param functions
Additionally 2 Arch_Window bugs were fixed:
* If the W1 value was changed the box tracker was not repositioned relative to the cursor.
* The WindowColor was not applied because of a typo in the code. De current default color is quite dark BTW.

Note that all dimensional values that were not really defaults, but just the last entered values, have been removed from preferences-archdefaults.ui. As a result the layout looks a bit strange. That will be improved in a next PR.
2024-01-18 15:43:15 +01:00
sliptonic
893238c2ab Merge pull request #11939 from davidgilkaufman/restMachiningFromGcode
[Path] Rest machining from gcode
2024-01-18 07:49:54 -06:00
Chris Hennes
8bc54e242c Merge pull request #11980 from 3x380V/fix_material_qt6
Material: fix Qt6 build failure
2024-01-17 21:36:14 -06:00
Chris Hennes
0992bae590 Merge pull request #11994 from 3x380V/avoid_fmtlib
Tests: Avoid use of fmtlib when not needed
2024-01-17 21:35:23 -06:00
Paddle
4acff3f66f Sketcher: polyline: fix ESC exit tool 2024-01-17 13:53:04 -03:00
Paddle
919d8c9392 Sketcher: bspline: fix ESC exit tool 2024-01-17 13:53:04 -03:00
wandererfan
80c2942c22 [Import]fix rounding errors in dxf export 2024-01-17 11:33:50 -05:00
Paddle
10de5a19d0 Core : Tree: Add 'Properties' action in contextual menu. Opens a property dialog. 2024-01-17 17:00:55 +01:00
Paddle
6db820a580 Sketcher: Define double click on edges : Select the whole wire. 2024-01-17 11:05:28 -03:00
Paddle
b0176c2d92 Sketcher: add isPeriodicBsplineCurve helper function 2024-01-17 11:05:28 -03:00
Roy-043
6aafdd5305 Merge pull request #12019 from Roy-043/Draft-Task-panel-checkboxes-were-repositioned-by-accident
Draft: Task panel checkboxes were repositioned by accident
2024-01-17 11:31:46 +01:00
Roy-043
904bb57538 Draft: Task panel checkboxes were repositioned by accident
In a previous PR of mine I have reorganized some lines of code in DraftGui.py without realizing that this would reposition checkboxes. This PR fixes that.
2024-01-17 11:00:40 +01:00
Chris Hennes
32d47402b6 Tests/Toponaming: Add tests for ElementNameComparator
This verifies the existing functionality, but does not alter it. Two tests are disabled because they represent cases that the current code does not handle correctly. They are edge cases that are not expected in real code.
2024-01-16 19:25:38 -06:00
wandererfan
2e5d902d1a [TD]Dimension validation improvements 2024-01-16 20:07:30 -05:00
Chris Hennes
14d4ea2416 Merge pull request #11883 from wavexx/pch_build_fix
Fix build with precompiled headers
2024-01-16 14:06:34 -06:00
Chris Hennes
c999f887eb App/Toponaming: ElementNameComparator linter cleanup
Does not address cognitive complexity.
2024-01-15 21:50:32 -06:00
Zheng, Lei
ef2ef6d7aa App/Toponaming: Add Comparator for mapped elements
This is the original code from the Toponaming branch, modified slightly to update the
method name and correct some grammatical errors in the descriptive comment.

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-15 21:28:02 -06:00
marioalexis
27a0fb1e99 Fem: Fix constraint arrows - fixes #6073 2024-01-15 19:21:09 -06:00
wandererfan
7bc3317455 [TD]fix Balloon parentage in tree 2024-01-15 15:44:12 -05:00
CalligaroV
49e7bba9c7 Preferences: reset preference pages parameters set without using "PrefWidgets" objects
Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-15 11:28:12 -06:00
marioalexis
9ceb1e7af1 Fem: Remove pipeline node from analysis view provider - fixes #11175 2024-01-15 11:19:09 -06:00
Chris Hennes
ed6230093f Part/Toponaming: Refactor makeElementCompound
Refactor to address linter issues, breaking up large methods, renaming variables, etc.
2024-01-15 18:17:32 +01:00
Chris Hennes
60a7f45ece Tests/Toponaming: Add tests for makeElementCompound 2024-01-15 18:17:32 +01:00
Chris Hennes
928c4ce813 App/Toponaming: Add addition TNP methods 2024-01-15 18:17:32 +01:00
Zheng, Lei
4729dc6c59 Part/Toponaming: Add original code for makECompound
Renamed to makeElementCompound and modified as little as possible to get it to compile in the new framework. All required auxilliary methods are also brought in.
2024-01-15 18:17:32 +01:00
mosfet80
9975c74c45 Update Mesher.cpp
removed old code for smesh <v7.
Freecad now requre smesh  version >=7.7.1
2024-01-15 18:02:31 +01:00
mos
dacdc2b1d1 updated nlohmann/json
updated to JSON version 3.11.3

Add missing <numeric> header include. #3717 #3718 #3719
Replace uses of INT_MIN/INT_MAX, etc. with

std::numeric_limits and consistently use std-namespaced integer types to make library work with newer GCC versions. #3722 #3723
Add missing files (json_fwd.hpp and Bazel build files) to release artifact include.zip. #3727 #3728
Fix 'declaration hides global declaration' warning. #3751
Fix natvis XML. #3858 #3863
Fix warning about moved from object. #3805 #3889
Remove a magic number to fix a warning. #3837 #3888
Fix debug pretty-printer by checking if match is valid before accessing group. #3919 #3920
Fix custom allocators by defining missing rebind type. #3895 #3927
Prevent memory leak when exception is thrown in adl_serializer::to_json #3881 #3901
Fix Clang-Tidy warnings. #4047
Fix init-list construction when size_type is not int. #4140
Fix deprecation warning "identifier _json preceded by whitespace in a literal operator declaration". #4129 #4161
Fix compile error with _HAS_STATIC_RTTI=0. #4046
Fix char_traits deprecation warning "char_traits<unsigned char> is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard". #4163 #4179
2024-01-15 10:53:38 -06:00
Alexander Neumann
d9636aaa25 Guard MEFISTO code with version check against SMESH. 2024-01-15 10:44:06 -06:00
Ladislav Michl
7a955c5600 Tests: Avoid use of fmtlib when not needed 2024-01-15 17:38:56 +01:00
edi271
5ddd9829ad [TD] Solve issue in VertexAtIntersection 2024-01-15 09:46:33 -05:00
Chris Hennes
fa0a25a777 Merge pull request #11896 from Pesc0/toponaming-shapeprotector
Toponaming shapeprotector
2024-01-14 21:03:09 -06:00
Kacper Donat
48d935d401 Gui: Reset scroll position after preference page change
As every page is contained in the same QScrollArea we must ensure that
after page is changed the scrolled area is scrolled back to top-left
corner.

Fixes: #11981
2024-01-14 20:19:48 -06:00
sliptonic
2f710755bc Merge pull request #11972 from br4243/Fix_for_Vcarve_missing_letters_8064
Fix for issue 8064 missing letters when V-carving a string.

Excellent work!  Thank you.
2024-01-14 13:26:14 -06:00
Ladislav Michl
a85db2c1d6 Material: fix Qt6 build failure
QRegExp has been replaced with QRegularExpression and isn't part of the base of Qt6 any more
2024-01-14 11:08:10 +01:00
Bill Reese
adaa0d171b Fix for missing letters when V-carving a string.
Issue 8064 occurs when FreeCAD passes a Voronoi diagram to
Boost that becomes self-intersecting when Boost truncates the
diagram's coordinates to integers.  This occurs when the discretizer
slightly misses closing the polygon generated for the letter by less
that FreeCAD's epsilon, then the wrapping Python code closes the
polygon by adding the initial polygon point as the final point.
This creates a short segment that, depending on the position of
the letter in the coordinate system, may end up being moved one
Boost coordinate delta away from the intended point, which can
end up self-intersecting.
Since the miss is very small, FreeCAD should treat it as it it
were the initial point.  There's no need for a duplicate copy of
the initial point, so we remove this point close to the initial
point and let insert_many_wires() close the polygon as usual.
2024-01-13 12:41:26 -05:00
Syres916
ce1a43ed2c [Gui] Fix Status Bar Tooltip Visibility 2024-01-13 09:15:18 -06:00
pre-commit-ci[bot]
dd1db1e23e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-13 09:59:54 -05:00
edi271
6b68344af8 [TD] extend App.Vector API 2024-01-13 09:59:54 -05:00
edi271
14c536b453 [TD] extend Base::Vector3D 2024-01-13 09:59:54 -05:00
edi271
9a9803c9f9 [base] Extend Vector by isParallel function 2024-01-13 09:59:54 -05:00
Paddle
5ee16df6b7 Draw arc helpers for radius constraints. 2024-01-12 19:03:38 -06:00