Commit Graph

32980 Commits

Author SHA1 Message Date
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
Paddle
5ad7548340 ToolWidget-Sketcher: Tool widget basic framework
================================================

Provides a framework to show in the taskbar a taskbox with a tool settings dialog.
2023-10-15 15:20:03 +02:00
Roy-043
ceaf048277 Draft: Change get_3d_view to only return the active 3D view (#11050)
Related issue:
#10634

Also needed to avoid warnings from the PlaneGui class.
2023-10-15 14:28:32 +02:00
Roy-043
afa77a6189 Draft: PlaneGui: minor fix (#11049)
* Draft: PlaneGui: minor fix

Related issue:
#5603.

* Typo
2023-10-15 14:28:02 +02:00
wmayer
c662c01c9c Assembly: fixes #11034: Assembly_rc.py not installed 2023-10-14 18:28:53 -03:00
Kacper Donat
b21cd75395 Gui: Register overlay search path from preference packs
This commit adds "<mod>/overlay" path to search paths of "overlay"
prefix. This allows preference packs to register custom overlay
stylesheets.

Fixes: #11023
2023-10-14 16:48:24 -04:00
Roy-043
7ff8a10994 Draft: PlaneGui: some updates and fixes. (#11040)
Related issue:
#5603.
2023-10-14 21:50:14 +02:00
wmayer
e360436f06 Gui: Switch back to a single Reset button
The reset button opens a menu that offers all options to reset the user settings.
2023-10-14 21:48:53 +02:00
wmayer
3a294aeb07 Gui: [skip ci] remove empty lines from .ui file 2023-10-14 16:30:37 +02:00
wmayer
abe9fabc46 Gui: implement option to disable overlay management 2023-10-14 13:36:12 +02:00
marioalexis
b209c6f82a Fem: Change TaskPostBoxes constructors to specific view providers 2023-10-14 00:43:59 +02:00
Paddle
ae3198419e Add setHeaderIcon to actiongroup.h 2023-10-13 19:05:16 +02:00
Paddle
527ffeb3b4 EditableDatumLabel : Prevent passing the focus with tab. And small thing. 2023-10-13 19:03:45 +02:00
Paddle
ce4cb6eea7 Adds SoDatumLabel::getLabelTextCenter() to get the externalize the finding of position of text center. 2023-10-13 19:03:45 +02:00
Paddle
6741e95990 editableDatumLabel : add setSpinboxInvisibleToMouse 2023-10-13 19:03:45 +02:00
wmayer
821b57f969 Gui: Make sure the title of the combo view is 'Model' again 2023-10-13 16:17:25 +02:00
wmayer
a02d1fe45a Gui: make tab position of combo view configurable and set it back to North by default 2023-10-13 16:17:25 +02:00
wmayer
76e2a91c65 Gui: refactor MainWindow::initDockWindows
* split MainWindow::initDockWindows into smaller functions
* remove of legacy group for Tree view, Property view and DAG view
* simplify code logic
2023-10-13 16:17:25 +02:00
wmayer
0932b54abd Gui: fix size policy of placement dialog 2023-10-13 11:09:33 +02:00
wmayer
2091f02033 Gui: fix invalid placeholder for argument in QString 2023-10-13 08:39:55 +02:00
wmayer
e3fb3b9639 Base: add method XMLReader::isStartOfDocument() 2023-10-12 19:46:21 +02:00
Kacper Donat
502dbca3e7 [Gui] Fix trailing whitespace and spelling issues 2023-10-12 15:54:24 +02:00
Kacper Donat
14b89b1404 [Gui] Prefer Dark-Outline as default overlay stylesheet
FreeCAD 3D View is often somewhat dark even if the UI is in light
colors. So if user has not speficially applied "Light" stylesheet we
should prefer to use "Dark-Outline" stylesheet which provides proper and
fully transparent overlay panels.
2023-10-12 15:54:24 +02:00
sliptonic
9b682bf921 Merge pull request #10915 from xtemp09/path-fix2
[Path] Prevent division by zero
2023-10-12 07:11:25 -05:00
Roy-043
2e577ea18a Draft: Introduction of the PlaneGui class
Related issue:
#5603.

Previous PRs:
#10766
#10838
#10931

Short explanation:
* The PlaneGui class handles several GUI related aspects of the WP including a WP history.
* The `get_working_plane` function should be used to get a WP.
* Some of the code was taken from gui_selectplane.py. The intention is to remove almost all WP related code from that file. The icon, tooltip and label for the draftToolBar are also handled by PlaneGui.
* The tooltip shows extended information about the WP (position and axes vectors). An asteriks is appended to the label if the origin does not match the global origin.
* The `_update_all` function still updates FreeCAD.DraftWorkingPlane for compatibility.
* Some confusing names from the Plane class have been changed: `weak` -> `auto`, `reset` -> `set_to_auto`, `setup` -> `auto_align`.

Next step:
Implementing PlaneGui in Draft and Arch. The gui_selectplane.py file will be updated first.
2023-10-12 13:11:57 +02:00
marioalexis
121d29771b Fem: Plot vector components in FemPostDataAlongLineFilter - fixes #5916 2023-10-12 12:49:18 +02:00
Haas
8db59593cb Fixed indicator for Qcombobox for Qstyle Fusion 2023-10-12 12:06:44 +02:00
wmayer
91aa75fb18 Gui: fix some important linting warnings:
* cppcoreguidelines-explicit-virtual-functions
* google-explicit-constructor
2023-10-12 11:48:16 +02:00
wmayer
3ba5cd569d Gui: port new code to Qt6 2023-10-12 11:48:16 +02:00