Commit Graph

34724 Commits

Author SHA1 Message Date
wmayer
decbcfdd12 Sketch: use new-style connect() in new code 2023-10-20 14:23:21 +02:00
wmayer
e9586c4206 Sketch: fix several compiler and lint warnings
* Remove private unused field 'sketchView'
* Mark constructor with single argument as explicit
* Mark virtual methods of base class as override
* Fix clang code model parsing error
* Avoid too short identifiers
* Avoid redundant ternary operators
* Avoid passing Base::Unit by value but by const reference
2023-10-20 12:29:59 +02:00
Roy-043
dd5b2fbae1 Draft: PlaneGui: minor fixes (#11115)
Related issue:
#5603.

* An 'auto' WP should not be added to the history if the previous WP in the history is also 'auto'.
* The `get_working_plane` function should only call `set_to_default` if the GUI is up. The axis of the returned WP should match global +Z if the GUI is not up.
2023-10-20 12:28:00 +02:00
wmayer
9578b57e3b Sketch: fix Qt6 build failure
QRegExp has been replaced with QRegularExpression and isn't part of the base of Qt6 any more
2023-10-20 11:57:21 +02:00
Paddle
ecdbd69db5 EditableDatumLabel add 'isInEdit' to check if the label is in edit. 2023-10-20 11:23:33 +02:00
Paddle
6c2493799e EditableDatumLabel add support for angle labels. 2023-10-20 11:23:33 +02:00
wmayer
b53623872e PD: fix constructor of TaskTransformedParameters 2023-10-19 22:58:46 +02:00
wmayer
334ca6a416 Test: add unit tests for Matrix4D::decompose() 2023-10-19 19:25:25 +02:00
wmayer
2265198ffe Base: add overloaded method Matrix4D::isUnity() 2023-10-19 19:25:25 +02:00
wandererfan
2535a9e835 [TD]#11091 item 12 array over run 2023-10-19 10:07:48 -04:00
wandererfan
acd557f60a [TD]#11091 - fix issue 1 getQGVPage() 2023-10-19 10:07:48 -04:00
wmayer
4abfa4aac6 Gui: remove redundant std::string from DlgRevertToBackupConfigImp::showEvent() 2023-10-19 15:49:04 +02:00
wmayer
99c5427c9b PD: remove redundant std::string from TaskFilletParameters::apply() 2023-10-19 15:49:04 +02:00
wmayer
cd6fcc0b99 PD: avoid creation of tmp. std::string in TaskAttacher::onRefName 2023-10-19 15:49:04 +02:00
wmayer
eb52c5fa9a Mesh: disable potentially unsafe code in Wm4 library 2023-10-19 15:10:09 +02:00
Roy-043
d761978387 Draft: importDXF: fix off layer bug (#11090)
* Draft: importDXF fix off layer bug

Fixes #10254.

* Typo

* Typo 2
2023-10-19 09:57:48 +02:00
wmayer
643fe0cf03 Sheet: remove double call of 'mimeData->hasText()' 2023-10-18 23:05:24 -05:00
wmayer
65038632eb TD: fix QGIViewPart::highlightMoved 2023-10-18 19:45:23 -04:00
wmayer
454716c7da TD: fix GeometryMatcher::compareBSplines 2023-10-18 19:43:51 -04:00
Tuomas Kuosmanen
dfd21fad56 Update CONTRIBUTING.md to reflect branch naming change
FreeCAD switched to use "main" branch in development. Updating CONTRIBUTING.md to reflect that.

https://github.com/FreeCAD/FreeCAD/discussions/10226
2023-10-18 14:22:45 -05:00
Kacper Donat
3ce9863d11 Gui: Target 3DViewer directly for overlay wheel events
Fixes: #11015
2023-10-18 18:48:05 +02:00
Adrian Insaurralde Avalos
c7fd115528 [PD] Remove unused old hole feature implementation
Has been disabled for 7 years a there's an existing newer implementation
2023-10-18 12:09:13 +02:00
hasecilu
24f256f165 Shorten string width to 80 characters.
- The string of the some tooltips are very long that use all screen width.
- In other .ui files seems to be a max width of about 80 characters.
- This commit shortens the long strings.
- Also fixes some words capitalization noted by david69 on Crowdin
2023-10-18 09:51:34 +02:00
Roy-043
2335c6beff Draft: Updates related to the PlaneGui class
Related issue:
#5603.
2023-10-18 09:50:50 +02:00
Roy-043
cd802d7bcb Draft: Make Facebinders link-aware
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81997

Additionally:
* Fixed offset and extrusion for non-planar faces.
* Improved the addSubobjects function,
* Cleaned up the code a little bit.
2023-10-18 09:50:18 +02:00
Adrián Insaurralde Avalos
69f05d313c fix #9348 - Improve Part_Measure_Clear_All tooltip 2023-10-17 17:46:56 +02:00
Rohan Mishra
43967cd081 Update MakePrismPy.xml
#10773  
Solved the issue and Update the MakePrismPy.xml
2023-10-17 17:45:07 +02:00
Roy-043
308391a806 Draft: Update gui_selectplane.py
Related issue:
#5603

Previous PR:
#11010

* This PR implements the new PlaneGui class for the Draft_SelectPlane command.
* As mentioned in the previous PR, almost all working plane related code has been removed from gui_selectplane.py.
* The task panel has a new button "Next" to switch to the next working plane in the history.
* Both the "Previous" and "Next" buttons are only enabled if there is a corresponding step in the history.
* PlaneGui stores a working plane per 3D view, but the other commands have to be updated before that system is fully functional.
* Code to update the toolbar when switching to a different view will be added later.
2023-10-17 15:05:28 +02:00
Roy-043
355c7111ad Draft: Fix angular dimension issue caused by #10556
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81956

This PR basically reverts PR #10556.

The angular offset required for the Draft_Arc command is handled in the gui_arc.py file instead. Also removed the unused `urotated` variable from that file.
2023-10-17 15:05:12 +02:00
Adrian Insaurralde Avalos
dcddc3dc64 AddonManager: handle the case of symlinked addon when uninstalling
see #11045
2023-10-16 22:50:31 -05:00
sliptonic
6c1c25b24a Merge pull request #11061 from Ondsel-Development/zcorrectFix
Add F-word to output on zcorrect dressup
2023-10-16 13:40:18 -05:00
Victor Predko
e1206a3fac File formats: Uppercase file types when importing a file. (#10977)
* Added uppercase extensions for supported formats

In the file App\Application.cpp

* Added file types in upper case

* Adds uppercase file types to the file import filter.

Fixes #10879

* Added filter for *.fcmacro *.fcscript
2023-10-16 14:40:46 -03:00
wmayer
0ee48bfea5 Gui: fixes #11045: Freecad fails to start after uninstalling disabled addon
The PR refactors FindPreferencePacksInPackage() and splits program logic from exception handling. It also handles std::exception to give more
information about a possible failure
2023-10-16 11:34:26 -05:00
Yorik van Havre
31b0896cf0 Merging the Help module (#11008)
* Adding the Help module - fixes 10527, fixes #10512

* Aded Help to pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-16 11:17:06 -05:00
wmayer
e2844f791e Gui: implement the methods of WorkbenchManipulatorPython 2023-10-16 18:13:41 +02:00
wmayer
754a047070 Gui: when closing application remove all manipulators 2023-10-16 18:13:41 +02:00
wmayer
cb786fcbcd Gui: expose functions to Python to add and remove a manipulator 2023-10-16 18:13:41 +02:00
wmayer
26b5adceda Gui: Python support of workbench manipulation 2023-10-16 18:13:41 +02:00
atlast-50
5f19a9db7b Gui: Rename forumula to expression + add hotkey to expression tooltip
Fixes #10601
2023-10-16 18:03:10 +02:00
Ajinkya Dahale
d83ba67b82 [Core] Use keyword arguments in DocumentObjectPy addProperty 2023-10-16 17:49:12 +02:00
sliptonic
7535ec1f55 Fixes #10928
Add F-word to output on zcorrect dressup
2023-10-16 10:28:56 -05:00
sliptonic
804970944c Merge pull request #10953 from jffmichi/rework_leadinoutdressup
Path: rework LeadInOutDressup
2023-10-16 09:14:13 -05:00
MisterMaker
993db6cf85 [Overlay/Stylesheets] Add seperate Overlay stylesheets for default stylesheets. (#11005)
Added the overlays to the preference packs also made the editor text a bit darker.
2023-10-16 11:13:28 -03:00
marioalexis
f8b4d38c46 Fem: Remove unnecessary DataAtPoint marker 2023-10-16 15:58:57 +02:00
marioalexis
4036dbd5e8 Fem: Remove FemPostDataAtPointFilter Radius property and add PointSize to their view provider - fixes #5719 2023-10-16 15:58:57 +02:00
Kacper Donat
e1d64e8f30 Gui: Target proper widget when passing wheel event
Fixes: #11015
2023-10-16 10:45:34 -03:00
sliptonic
6adbfff11b Merge pull request #10914 from LarryWoestman/staging
Path:  Added type annotations along with some refactoring.
2023-10-16 08:04:43 -05:00
Yorik van Havre
ec9099ae17 Arch: Made Arch Reference case-insensitive - issue #10874 2023-10-16 09:25:10 +02:00
Abdullah Tahiri
7034795723 Sketcher: ToolSettings Widget - Tool Management
===============================================

Sets the full interface between the DrawSketchHandler and a tool widget available somewhere in the UI.

Signalling is as follows:
1. On activation of the tool, DrawSketchHandler notifies the tool widget.
2. The tool widget retrieves tool information necessary for representation (type of widget, visibility, ...)
3. When the tool widget has created an appropriate widget, it notifies back a widget change.
4. The tool receives the widget handler and can now configure and interact with the widget.
2023-10-15 15:20:03 +02:00
Paddle
c6f42e1b68 Sketcher: DrawSketchHandler - add getViewer function to drawsketchHandler to simplify code. 2023-10-15 15:20:03 +02:00