Commit Graph

5379 Commits

Author SHA1 Message Date
Bas Ruigrok
98320cc839 Gui: Improve lookAtPoint (#13556)
* Gui: Rename NavigationStyle::pan to setupPanningPlane

* Gui: Replace duplicate code with NavigationStyle::setupPanningPlane

* Gui: Use panning plane when hit point not found in lookAtPoint

Also enables navigation animations when pressing MMB while the mouse is not over an object

* Gui: Remove unused methods
2024-05-06 10:45:14 -05:00
wmayer
34837d7e9f PD: Fix crash when adding sketch to loft via tree view
The underlying problem is the method DocumentItem::updateItemSelection() where
the selection is altered. This may cause the destruction and recreation of the
DocumentObjectItems so that the passed pointer can become dangling.

The issue is fixed in two steps:
1. Add the method 'DocumentObjectItem *findItem(App::DocumentObject* obj, const std::string& subname) const'
   to safely re-access the item.
2. Add a boolean flag 'dirtyFlag' and the methods insertItem() and removeItem() to DocumentObjectData.
   This is needed to check when the iterator over the container becomes invalid.
2024-05-06 17:38:59 +02:00
Chris Hennes
984e4df2a1 Themes: Explicitly remove Editor/Text setting in Classic 2024-05-05 13:46:14 +02:00
wmayer
d94f01614b Core: Set tab title for MDIViewPyWrap 2024-05-03 14:18:00 +02:00
Chris Hennes
d112e8661f Merge pull request #13727 from wwmayer/fix_warnings
Fix compiler warnings
2024-05-01 10:29:21 -05:00
wmayer
2d41a7eb12 Gui: fix possible build failure 2024-05-01 09:47:33 +02:00
wmayer
2ea6bc17b6 Fix various compiler warnings:
* fix -Wunused-parameter
* fix -Wunused-function
* fix -Wunused-private-field
* fix -Wunused-variable
* fix -Winconsistent-missing-override
2024-04-30 16:59:31 +02:00
Martin Rodriguez Reboredo
221ae53dbe Gui: TypeInitStruct for Shiboken6 builds 2024-04-29 16:08:07 -04:00
liukaiwen
8e5213efd8 fix precompile on lastest unified measurement 2024-04-29 13:42:40 -05:00
sliptonic
3f46f1f8cc Merge pull request #13650 from chennes/firstStartWidget
Start: First start widget
2024-04-29 11:42:50 -05:00
WandererFan
dd09bd2b53 Merge pull request #9750 from hlorus/gsoc2023_measure
GSoC 2023: Unified Measurement Facility
2024-04-29 12:41:54 -04:00
WandererFan
d4270d2275 Merge pull request #13644 from wwmayer/default_material
Gui: expose ViewProviderGeometryObject::getUserDefinedMaterial() to Python
2024-04-29 12:28:25 -04:00
Roy-043
743f2ac41b Gui: DlgSettingsNavigation.ui fix misalignment of Corner label 2024-04-29 11:26:11 -05:00
MisterMaker
393a4b71f3 Overlay fix for default windows style and other light theme's. (#12573)
* Removing white spaces

* Fixes made by Kadet

I am cleaning up my previous PR because of the white space removal.
I now make a single commit with the white space stuff and one with Kadet fixes.

Co-Authored-By: Kacper Donat <kacper@kadet.net>

* Delete CMakeSettings.json

screwed it up

* added stylesheet for example code.

* added example to cmakelist

* Mouse over fix

This fixes the mouse over issue!

Co-Authored-By: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>

* Added more overlay stylesheet for all options

* Removed reddudant code!

* Fixed the code

Works great!

Co-Authored-By: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>

---------

Co-authored-by: Kacper Donat <kacper@kadet.net>
Co-authored-by: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>
2024-04-29 11:24:33 -05:00
sliptonic
5cd62247fa Merge pull request #13666 from Roy-043/Gui-Clarify-cache-directory-as-read-only-in-prefs,-add-Browse-tooltip
Gui: Clarify cache directory as read-only in prefs, add Browse tooltip
2024-04-29 11:14:59 -05:00
Chris Hennes
f07a4fe074 Merge pull request #13665 from wwmayer/fix_memory_leak2
Core: fix possible memory leaks when using parser
2024-04-29 11:14:11 -05:00
PaddleStroke
2267aa761b Core: TabBar: fix issue following #13508 2024-04-29 10:55:44 -05:00
Max
fd360e8fe9 Update context menu with a toggle for suppress property with checkmark (checked when suppressed) 2024-04-29 17:35:14 +02:00
wandererfan
722fab240e [Measure] Change icon
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2024-04-29 09:27:22 -04:00
hlorus
4f66ef8cb0 [Gui] Add command and task for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
dc54fdd5b8 [Part] Move ArcEngine into own file in Gui module 2024-04-29 09:27:22 -04:00
Kacper Donat
1f4531bb98 Fix issues with wrong color for preference page tooltips 2024-04-29 13:06:48 +02:00
Chris Hennes
e3c17ff991 Gui: Add missing GuiExport to PreferencePack 2024-04-28 12:56:21 -05:00
Roy-043
472fcc7f23 Gui: Clarify cache directory as read-only in prefs, add Browse tooltip
Fixes #13608.
2024-04-26 23:10:05 +02:00
wmayer
88893f7524 Core: fix possible memory leaks when using parser 2024-04-26 21:42:34 +02:00
wmayer
f2647448ec Gui: Fix MainWindowPy::removeWindow
See https://forum.freecad.org/viewtopic.php?t=87097
2024-04-26 10:10:25 +02:00
Patryk Skowroński
aec8199bc3 Fix for removeMarkups() 2024-04-25 21:40:39 -05:00
wmayer
e9bf1e4b88 Gui: expose ViewProviderGeometryObject::getUserDefinedMaterial() to Python 2024-04-25 17:56:58 +02:00
Chris Hennes
ead426c6eb Update translations
Note: Web and Start omitted
2024-04-24 13:58:21 -05:00
Roy-043
65b698e222 Gui: DlgSettingsDocument.ui change url to https 2024-04-24 01:22:41 +02:00
wmayer
1e15f1fbc2 Gui: simplify singleton of PropertyItemFactory 2024-04-23 10:53:24 +02:00
wmayer
7514cb9a45 Gui: fix linter warnings in PropertyItem.cpp 2024-04-23 10:53:24 +02:00
Chris Hennes
1f12684f3c Gui: Add random to PreCompiled.h
Also re-sorts the STL list
2024-04-22 20:35:50 +02:00
sliptonic
3d517ff2cf Merge pull request #13134 from chennes/qtQuickTechDemo
Start: Recreate start as a QtWidgets-based app
2024-04-22 11:49:02 -05:00
PaddleStroke
0ebf43a09c TabBar: Move + tab to beginning. 2024-04-22 11:13:12 -05:00
Chris Hennes
893f15c28a Start: Cleanup and minor bugfixes
Start: Remove QML include
Start: Eliminate errors on unreadable images
Start: Ensure command succeeded
Start: Correct startup WB
Also re-enable the migrator, which was not the culprit.
Gui: Roll back unneeded NoneWorkbench changes
2024-04-21 22:27:50 -05:00
Chris Hennes
bd96ddef8a Web: Remove GUI
Web no longer provides a user-visible browser, but only a simple server for remote interaction with FreeCAD. Dependency on QtWebWengine has been removed.
2024-04-21 22:27:50 -05:00
Chris Hennes
f68c2de569 Start: Migrate to simple command 2024-04-21 22:27:50 -05:00
Chris Hennes
57bc297005 Start: Recreate start as a QtWidgets-based app
Removes all Start network access and dependency on Chromium for rendering. Written
entirely in C++ (no HTML, CSS, JS, etc.).
2024-04-21 22:27:49 -05:00
wmayer
2b0a88ca7d Gui: Read material colors from settings 2024-04-19 11:13:59 +02:00
dzid26
f9c423e979 Core: Bring ConfirmSave dialog to the top (#13352) 2024-04-18 22:56:28 -05:00
Chris Hennes
e7069e6797 Update translations. 2024-04-17 16:50:38 -05:00
wmayer
1f29a4a8b7 Gui: In property editor disable widget of Placement property is not part of a DocumentObject 2024-04-17 12:28:30 +02:00
wmayer
86f9c6b6b4 Gui: In Placement dialog check that the object identifier has a valid property before binding it to a widget 2024-04-17 12:28:30 +02:00
Patryk Skowroński
43ddbb4936 New integration with 3Dconnexion devices (#12929)
* New integration with 3Dconnexion devices

* CMake build option hidden for Mac

* Minor fixes, to be squashed to previous commit

* cmake: fix indent and case; to be squashed

* Corrected name case

---------

Co-authored-by: Patryk Skowroński <pskowronski@3dconnexion.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
Co-authored-by: Ladislav Michl <ladis@linux-mips.org>
2024-04-15 10:43:45 -05:00
Chris Hennes
ed3e1cf544 Merge pull request #13332 from wwmayer/fix_material_issues
Fix material issues
2024-04-15 10:33:29 -05:00
Roy-043
5ae6b8acf6 Gui: spelling: freezed -> frozen 2024-04-13 17:16:22 +02:00
wmayer
a1194f5f57 Gui: fix crash in PythonCommand::isChecked()
This very likely fixes the crash reported at https://forum.freecad.org/viewtopic.php?t=86874
2024-04-13 14:58:21 +02:00
Bas Ruigrok
4b8fe0c1ab Fix compiler warning 2024-04-10 22:31:35 +02:00
wmayer
12ef38e66f Fix handling of transparency / Restore colour per face
The Materials module does a conversion from float to double when saving the transparency and again a conversion from double to float to double
when restoring it. This causes a considerable loss of accuracy so that the representation in percent leads to different numbers.

Using consistently some helper functions to do a proper conversion from float to long and back fixes the problem.

The new property ShapeAppearance is a PropertyMaterialList and always read after the DiffuseColor property when restoring a document.
Thus, the  method onChanged() doesn't override DiffuseColor when restoring a document. Additionally, the method finishRestoring() is re-implemented
to set the colours per face in case DiffuseColor has defined multiple colors.
2024-04-10 13:32:58 +02:00