Commit Graph

5762 Commits

Author SHA1 Message Date
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
wmayer
92ac3cc0d3 Core: avoid conversion from float to double or vice-versa
When synchronizing the Transparency property with the transparency value of the ShapeAppearance property then do not convert between float and
double as otherwise some strange rounding issues can occur.

Example: Set the Transparency property of an object to 35 in the Property Editor. After leaving the editor the value may switch to 34.
2024-04-09 22:15:51 +02:00
wmayer
15dcd1e9be Gui: add security checks to view provider extensions because they can be accessed if a document objects is not yet attached 2024-04-09 22:15:51 +02:00
wmayer
2af81362d3 Gui: fix Std_RandomColor 2024-04-09 22:15:51 +02:00
wmayer
92b1e77744 Gui: fix ViewProviderGeometryObject
* fix several linter warnings
* remove code that cannot be executed: inside the constructor it cannot ever happen that getObject()
  returns a valid object
* in ViewProviderGeometryObject::handleChangedPropertyName call the method of the direct base class
  as otherwise this may break the mechanism in the future
* Shape is a property of an extension module -> move its handling to ViewProviderPartExt
2024-04-09 22:15:51 +02:00
sliptonic
d485bf3741 Merge pull request #13330 from Rexbas/fix-navigation-with-overlays
Gui: Fix navigation with overlays
2024-04-08 11:09:10 -05:00
PaddleStroke
c6bf546b7a Sketcher: Points color reflect their construction state. Remove Vertex color. 2024-04-08 17:49:46 +02:00
Bas Ruigrok
5e9b75658c Gui: Fix navigation with overlays 2024-04-05 22:30:52 +02:00
wmayer
dfc74591cc Material: add workbench manipulator
Implement a workbench manipulator to inject Std_Material and Std_Appearance to (context) menu.
2024-04-05 10:08:06 +02:00
wmayer
384902c26c Gui: Fix broken toolbars layout due to MaterialWorkbench
The explicit activation of the MaterialWorkbench breaks the toolbars layout for every start. When fixing it manually it will be broken
again after the next start.

Because the core doesn't depend on the Material module it's a no-go to add an explicit runtime dependency to the corresponding workbench.

Since the Part module depends on the Materials module and the PartGui on MatGui the correct way is to let Part an PartGui load their
dependencies.
2024-04-05 10:08:06 +02:00
David Carter
ba20441935 Material: Material appearance
Uses new material system for appearance

Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.

The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.

A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
2024-04-04 07:39:58 -05:00
wmayer
c96fd71e4f Fix several compiler warnings
* fix -Winconsistent-missing-override
* fix -Wunused-but-set-variable
* fix -Wunused-parameter
* fix -Wunused-lambda-capture
* fix -Wunused-private-field
* fix -Wpessimizing-move
2024-04-03 10:04:56 +02:00
Ladislav Michl
4054520f08 Gui: WorkbenchSelector: Fix build with Qt6
indexOf is returning qsizetype in Qt6, so use type explicitely.
2024-04-02 16:19:27 +02:00
Ladislav Michl
ec3b89a567 Gui: WorkbenchSelector: Fix whitespaces 2024-04-02 16:19:27 +02:00
Yorik van Havre
00b6b6ba3b Setter for Modified attribute 2024-04-02 15:28:57 +02:00
wmayer
392d0ce150 Gui: Fix Std_LinkActions
Currently the active button of the Std_LinkActions command is toggable that is confusing behaviour.
This PR makes the action group non-checkable
2024-04-02 08:19:38 +02:00
wmayer
b1a0a3edc8 Gui: fix compiler warning 2024-04-01 19:42:08 +02:00
PaddleStroke
bb87b572c5 Core: Std_ToggleTransparency: Fixes #11353 2024-04-01 11:23:49 -05:00
Florian Foinant-Willig
3aa0241dc9 [PD] Fix crash related to SuppressibleExtension 2024-04-01 11:02:25 -05:00
lyphrowny
e99ee08514 FEM: Fix cxx typo and remove calculix from solvers tab in examples (#12876)
* FEM: remove calculix from solvers

* FEM: remove calculix from joint with ccxtools if branches

* FEM: remove calculix from its if

* FEM: fix cxx typo in translations

* FEM: fix cxx typo in classes name

* FEM: fix ccx typo in shortcuts

* FEM: convert FEM_*CcxTools to CamelCase

* FEM: remove tests related to calculix

* FEM: remove test_solver_calculix.py from Fem/CMakeLists.txt

* FEM: convert all 'CalculiXccxTools' to 'CalculiXCcxTools'

* FEM: revert changes in all *_*.ts files

* FEM: convert 'SolverCcxtools' to 'SolverCcxTools'

* FEM: convert remaining 'Ccxtools' to 'CcxTools'
2024-04-01 10:51:23 -05:00