Commit Graph

37284 Commits

Author SHA1 Message Date
David Carter
4dcd810ac5 Material: Material Preferences
Updates the material preferences including selecting a default material

Preferences adds some options for what gets displayed in the Materials editor.
The option to use the legacy editor is removed in favour of the new
editor.

A new preference page has been added that allows the user to select a
default material. This will then be assigned to any newly created object. In
support of this, a new widget PrefsMaterialTreeWidget has been added as an
extension of the MaterialTreeWidget to automatically save and restore the
selected material.
2024-05-13 11:14:55 -05:00
Chris Hennes
6c4f76a8a5 Merge pull request #13721 from kadet1090/more-at-the-end
Gui: Move more button to the end WB TabBar
2024-05-13 11:12:26 -05:00
Zheng, Lei
4919afddad Gui: fix toolbar init state 2024-05-13 11:06:01 -05:00
PaddleStroke
5f4dd814ea Core: Add getRootObjectsIgnoreLinks and fix bugs in tree.cpp and AssemblyObject.cpp, CommandInsertLink.py, UtilsAssembly.py 2024-05-13 17:58:34 +02:00
ppphp
7096125038 fix some warnings: cmake string quotes and float mark (#13909)
Co-authored-by: liukaiwen <kaiwen.liu@zixel.cn>
2024-05-13 11:55:59 -04:00
FEA-eng
d430551aa0 FEM: Change the misleading constraint descriptions regarding the geometry selection (#13921)
* FEM: Update TaskFemConstraintFixed.ui

* FEM: Update TaskFemConstraintForce.ui

* FEM: Update TaskFemConstraintTemperature.ui

* FEM: Update TaskFemConstraintDisplacement.ui
2024-05-13 10:54:03 -05:00
Jacob Oursland
11ae698033 VSCode: Use port 39999 to test for debugger readiness. 2024-05-13 10:53:27 -05:00
Chris Hennes
bd7abe5521 Merge pull request #13907 from wwmayer/issue_13898
Fix memory leaks with PySequence_GetItem
2024-05-13 10:53:00 -05:00
hlorus
2394a8cb1e [MeasureGui] Add measurement value to label text 2024-05-13 10:47:10 -05:00
hlorus
c81776a418 MeasureGui: Improve measure task wording (#13857)
* MeasureGui: Add remaining labels for translation

* MeasureGui: Improve wording for annotation and close buttons
2024-05-13 10:45:09 -05:00
Florian Foinant-Willig
1398ab67e4 Fix #13107 (#13682)
Introduce a signal slot for tree item highlight change.
2024-05-13 10:42:57 -05:00
Chris Hennes
b52c6ed9bc Merge pull request #13811 from hlorus/remove_measure_prefs
[Measure] Remove unused properties from measure preferences
2024-05-13 10:39:18 -05:00
bgbsww
86abf074c0 Toponaming: bring in missing code fragments in PartDesign 2024-05-13 08:45:26 -05:00
wmayer
41a707dcfe Draft: refactor TestDraftGeomUtils 2024-05-13 09:15:35 +02:00
Chris Hennes
01278386e8 Merge pull request #13964 from bgbsww/bgbsww-toponamingMissingPartDesignTests3
Toponaming Add missing code elements in Part
2024-05-12 23:25:20 -05:00
bgbsww
d3c5df86ee Toponaming: bring in missing code fragments in Part 2024-05-12 23:08:06 -04:00
bgbsww
40ee6c7e45 Toponaming: bring in missing code fragments in App 2024-05-12 20:59:39 -04:00
bgbsww
e00d02aba1 Rework makeElementChamfer to match current parms, and add PartDesign code for Chamfers 2024-05-12 20:57:00 -04:00
Chris Hennes
0e3042a4e9 Merge pull request #13963 from bgbsww/bgbsww-toponamingMissingPartDesignTests2
Toponaming: missing code bits in App
2024-05-12 19:30:04 -05:00
Chris Hennes
9fead3682d Update translations 2024-05-12 17:06:56 -05:00
bgbsww
53ad95b382 Toponaming: bring in missing code fragments in App 2024-05-12 17:21:49 -04:00
bgbsww
2698062d28 Rework makeElementChamfer to match current parms, and add PartDesign code for Chamfers 2024-05-12 16:22:23 -04:00
bgbsww
5054cace46 Rework makeElementChamfer to match current parms, and add PartDesign code for Chamfers 2024-05-12 13:28:20 -05:00
Kacper Donat
52560ce650 Gui: Reuse QActions for workbench activation
This fixes segfault that can occour due to keeping reference to QAction
that is supposed to change workbench.
2024-05-12 19:05:14 +02:00
Kacper Donat
33c6b04461 Gui: Fix wrong orientation of workbench tab bar after start
This replaces old mechanism that was based on storing tab bar
orientation in user settings with one that delays initialization by half
of a second to ensure that toolbar is placed where in right place.
2024-05-12 19:05:14 +02:00
Kacper Donat
75d43f8607 Gui: Use RTL layout when Wb Tab Bar is placed in right corner
Right corner is placed to the right edge of screen, so its natural
growth occours on the left side. Basically it is Right to Left order and
so in that case the "end" is actually on left and so TabBar should grow
in that direction.

Unfortunately it is not possible to simply use RTL Qt feature to handle
that case as it would result in reverse order of workbenches (people will still
read it in LTR order) and icons on the right which is not wanted. That's
custom support is introduced.
2024-05-12 19:05:14 +02:00
Kacper Donat
727078bbd3 Gui: Adjust sizing of Workbench TabBar when changing orientation
This should fix issues when toolbar containing Workbench TabBar suddenly
(or not) changes orientation. It also fixes size policies so toolbar
resizes properly and does not cause window to grow.

Fixes: #13286
2024-05-12 19:05:14 +02:00
Kacper Donat
eb99c8bcda Gui: Add proper tooltip to Workbench TabBar tab 2024-05-12 19:05:14 +02:00
Kacper Donat
3c7487638b Gui: Move more button to the end WB TabBar
This changes back placement of the "more" button of the WB TabBar to be
at the end, where it should be naturally placed. In order to ensure that
it is always visible the control was reworked to show this button always
after the tab bar widget which now is dynamically sized. This is
behavior that is well known from browsers.

This commit also ensures that active workbench is always visible in the
TabBar by adding additional temporary tab when necessary. This tab will
automatically dissapear when not needed.

Fixes: #13720
Fixes: #13630
2024-05-12 19:05:14 +02:00
Kacper Donat
90dc3e3370 Gui: Add our ToolBarArea enumeration
This refactors implementation of toolbars in menu / status bar a bit. It
introduces enum with all possible areas like it is in Qt that can be
later used to decide what to do based on toolbar placement.
2024-05-12 19:05:12 +02:00
Roy-043
3dc1de6acf Draft: minor refactor of layer code (#13948) 2024-05-12 09:49:04 +02:00
Roy-043
30b3fcd045 Draft: Update v0.22 references to v1.0 (#13934) 2024-05-12 09:47:51 +02:00
Chris Hennes
7b7dc52c8a Merge pull request #13928 from ronnystandtke/fix_i18n
include translations of the FreeCAD App & Base
2024-05-10 10:16:31 -05:00
wmayer
c2e3d61059 PD: Fix ShapeBinder::execute() if Support is empty
This fixes the reported regression: https://forum.freecad.org/viewtopic.php?t=87229
2024-05-10 15:06:22 +02:00
wmayer
f3637096e3 PD: Fix linter warnings 2024-05-10 15:06:22 +02:00
wmayer
ba638d204c Mesh: Make colors persistent if meshing option 'Apply face colors to mesh' is used 2024-05-10 15:03:20 +02:00
Ronny Standtke
3406e26c72 include translations of the FreeCAD Base 2024-05-10 14:31:33 +02:00
Ronny Standtke
afb9ce29c6 include translations of the FreeCAD App 2024-05-09 21:21:16 +02:00
bgbsww
5d15df8729 Support saving the tnp recalculated file in profile testing 2024-05-09 09:01:25 -05:00
Roy-043
4c87e22b7f Draft: Add "legacy importer only" to DXF option (#13638)
* Draft: Clarify "legacy only" DXF options in the preferences

Fixes #13598.
2024-05-09 11:12:19 +02:00
Jacob Oursland
26784fd441 Conda: add libspnav to linux builds. 2024-05-09 02:00:14 -04:00
wmayer
03715005f8 Gui: Fix PythonWrapper::toEnum() to also accept a Python int as argument
See https://github.com/FreeCAD/FreeCAD/pull/13611#issuecomment-2097126565
2024-05-09 01:28:45 -04:00
Jacob Oursland
67be33d4e9 Conda: pin zstd==1.5.6 to fix Windows CI failures. 2024-05-09 01:28:02 -04:00
wmayer
acbb19335d TD: Fix memory leaks with PySequence_GetItem 2024-05-09 00:03:01 +02:00
wmayer
58988a7482 Core: Fix memory leaks with PySequence_GetItem 2024-05-08 23:40:27 +02:00
wmayer
5b98af4591 Part: Fix memory leaks 2024-05-08 20:01:54 +02:00
wmayer
9934eb3b37 Measure: Fix memory leaks 2024-05-08 20:01:54 +02:00
wmayer
bf1fc57157 Material: Fix memory leaks 2024-05-08 20:01:54 +02:00
Furgo
5dc4a45afe Change property view panel title to sentence case 2024-05-08 10:04:50 +02:00
Chris Hennes
938a9012e8 Merge pull request #13867 from bgbsww/bgbsww-toponamingFixBadPad
Toponaming/Part: Fix fillet/pad bug, add tests
2024-05-07 14:19:01 -05:00