Commit Graph

34651 Commits

Author SHA1 Message Date
wmayer
aa5bea4e2e Base: add method XMLReader::isStartOfDocument() 2023-10-12 19:46:21 +02:00
Kacper Donat
4f1fcbd03b [Gui] Fix trailing whitespace and spelling issues 2023-10-12 15:54:24 +02:00
Kacper Donat
9d5390ed83 [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
06af8b2bd8 Merge pull request #10915 from xtemp09/path-fix2
[Path] Prevent division by zero
2023-10-12 07:11:25 -05:00
Roy-043
a0af13ad2c 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
56422b177b Fem: Plot vector components in FemPostDataAlongLineFilter - fixes #5916 2023-10-12 12:49:18 +02:00
wmayer
dcfd888c8f Tests: extend some reader tests after fixing givenDataAsXMLStream 2023-10-12 12:07:47 +02:00
Haas
75419d50b0 Fixed indicator for Qcombobox for Qstyle Fusion 2023-10-12 12:06:44 +02:00
wmayer
552b1f48b1 Gui: fix some important linting warnings:
* cppcoreguidelines-explicit-virtual-functions
* google-explicit-constructor
2023-10-12 11:48:16 +02:00
wmayer
e37e924b85 Gui: port new code to Qt6 2023-10-12 11:48:16 +02:00
Roy-043
a8864ae28b Draft: Import DXF: handle arc angles larger than 360 degrees
See #10985.
2023-10-12 10:52:30 +02:00
wmayer
27dd573101 Gui: remove trailing whitespaces (thanks luzpaz) 2023-10-12 00:58:44 +02:00
wmayer
b016e328f5 Gui: removing parameters from settings that affects older versions is rude 2023-10-12 00:58:44 +02:00
wmayer
be70307867 Gui: fixes OverlayManager issues
* QMetaObject::invokeMethod: No such method Gui::OverlayManager::raiseAll()
* variable 'total' set but not used [-Wunused-but-set-variable]
* 'globalPos' is deprecated: Use globalPosition() [-Wdeprecated-declarations]
2023-10-12 00:58:44 +02:00
wmayer
4eee90f6d4 Gui: replace deprecated QDesktopWidget with QScreen
Since Qt5.11 QDesktopWidget is marked as deprecated and has been removed in Qt6. New code has to use QScreen instead.
2023-10-12 00:58:44 +02:00
wmayer
5449281108 Gui: fix tab order and duplicated widget names in DlgSettingsTheme.ui 2023-10-12 00:58:44 +02:00
Yorik van Havre
55292e9041 Import: Support DXF text rotation (#11001)
* Import: Support DXF text rotation - fixes #10882

- Reads and supports text rotation in builtin DXF import
- Makes the builtin DXF import produce Draft texts instead of App::Annotations
- Extends the arguments of Draft make_text()

* [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-11 17:05:31 +02:00
wmayer
fbc447ad4b Gui: fixes a problem that if executing a macro that requires user-interaction this is blocked 2023-10-11 15:19:04 +02:00
wmayer
5b1ccf895a TD: fix -Wsign-compare 2023-10-11 15:12:42 +02:00
wmayer
fe79eed98f Import: fix -Wunused-private-field 2023-10-11 15:12:42 +02:00
wmayer
b197473842 Tests: suppress warning about intened self-assignment 2023-10-11 15:12:42 +02:00
wmayer
be2aa179b1 Tests: fix undefined behaviour in givenDataAsXMLStream 2023-10-11 12:05:37 +02:00
wmayer
a6ff03d54b Material: remove several unreferenced variables 2023-10-11 12:04:26 +02:00
wmayer
14f2653c40 Core: fix compiler warning due to boost 2023-10-11 12:04:26 +02:00
Roy-043
c01c0a2e45 Draft: Use DXF OCS when importing circles and arcs to Part shapes
See #10985.
2023-10-11 10:08:58 +02:00
Zheng, Lei
21e6e7a79b Gui: expose various overlay UI options to preference pages 2023-10-11 09:58:53 +02:00
Zheng, Lei
bf9584a90b Gui: add support for transparent overlay docking widget 2023-10-11 09:58:53 +02:00
Zheng, Lei
07542c5660 Gui/TechDraw: declare 'panning' capability in views
OverlayManager queries this capability to determin whether to auto hide
the overlay docking widgets
2023-10-11 09:58:53 +02:00
Chris Hennes
e0f73af414 Merge pull request #10909 from chennes/toponamingPhase3Card1
App/Toponaming: Add base64 encoding to XML
2023-10-10 12:00:53 -05:00
Chris Hennes
9b11c36708 Base/Toponaming: Refactor to extract filters to new file 2023-10-10 11:28:30 -05:00
Chris Hennes
5b30bdc2f0 App/Toponaming: Linter cleanup of Base64 code
Does not address pointer arithmetic or array indexing complaints.
2023-10-10 10:19:44 -05:00
Chris Hennes
5975e3d51e App/Toponaming: Add base64 encoding to XML 2023-10-10 10:19:43 -05:00
Roy-043
7029c6f53e Arch: Fix multiple issues with ImportOBJ.py
Fixes #6187.

Other fixes:
* Made handling of shapes and global placement more consistent.
* Shapes without curves were also triangulated.
* Polygonal faces could have flipped normals and duplicate points.
2023-10-10 16:44:57 +02:00
Zheng, Lei
9287f94974 Gui: fix selection of nested object in App::Part 2023-10-10 14:28:26 +02:00
marioalexis
0ea0ea807b Fem: Remove callback added by filters task box and rework marker classes 2023-10-10 13:58:34 +02:00
Paddle
951edf3ec4 Fix typo making Sketcher_Dimension fails for angles. 2023-10-10 13:48:07 +02:00
wmayer
e6bd1f10e9 App: the function findLicense() uses the '==' operator to compare two C strings.
This is wrong and leads to failures under Windows.
2023-10-10 13:31:10 +02:00
wmayer
816a054203 Core: switch from master to main in version number script 2023-10-10 13:09:44 +02:00
wmayer
7c33d7d473 Gui: Initial save of a document doesn't have the expected thumbnail
When saving the thumbnail there is a check if the 3D window is the active window. This check fails if a document is saved for the first time because
the appearing file dialog causes the 3D window to not be active any more. Thus, no snapshot of the 3D window will be created and the program logo will be
saved instead. A workaround is to save the document twice.

This PR removes the check for the active window so that the snapshot can be created. The issue might be related to #10937.
2023-10-10 13:08:29 +02:00
wmayer
057469c225 Import: fixes #10983: Crash when trying to import a DXF file with Polish letters in the name 2023-10-10 12:58:47 +02:00
Florian Foinant-Willig
191aee568f Fix #10910 2023-10-09 22:54:12 +02:00
Rexbas
908f6c9f78 Gui: Fix rotation center indicator for Gesture styles 2023-10-09 22:30:05 +02:00
Haas
b86d8852e5 Update DlgSettingsWorkbenchesImp.cpp
added translucent background for workbench name/icon widget.
2023-10-09 16:42:53 +02:00
xtemp09
a710eb23c2 [GUI] Fix memory leak in ViewProviderPlane.cpp 2023-10-09 16:27:39 +02:00
wmayer
13dce7864d Gui: Enable the thumbnail size widget by default
With PR #10016 the saving of thumbnails is on by default but the spin box to set the size is still disabled.
This results into an inconsistency and one has to click the Save thumbnails check box twice to enable the size widget.
2023-10-09 16:23:35 +02:00
wmayer
1312b9d2ac Tests: add unit tests for XMLReader::readNextElement() 2023-10-09 15:06:45 +02:00
wmayer
a2c2e4fb16 Core: In XMLReader::readNextElement() support structure <element>data</element> 2023-10-09 15:06:45 +02:00
wmayer
ce3e6b9b24 Core: add method to XMLReader to access next element of an XML file
If the next element could be read-in successfully true is returned, and false otherwise.
2023-10-09 15:06:45 +02:00
wmayer
56820718c5 Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
luzpaz
e7a0690d47 Preferences: remove whitespace before colon
Uniformity fix in the preference page
2023-10-09 14:44:42 +02:00