Commit Graph

37258 Commits

Author SHA1 Message Date
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
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
wmayer
c1b7d38b27 Assembly: Fix warning: -Wunused-variable 2024-05-07 19:48:33 +02:00
wmayer
254d6ea3fd Core: Refactor several methods of ToolBarManager 2024-05-07 19:48:33 +02:00
wmayer
ef682370f9 Core: Fix linter warnings 2024-05-07 19:48:33 +02:00
wmayer
ac48d2bfb0 Core: Fix build failures and warnings 2024-05-07 19:48:33 +02:00
bgbsww
9fc744fbe3 Fix tests, slip in TNP defense 2024-05-07 13:42:21 -04:00
bgbsww
fd53ab3c9b Update ToolBarManager.cpp for QT 6.7
Replace obsoleted method call
2024-05-07 10:18:15 -05:00
bgbsww
ffba7dcbe6 Fix #13858
Mistaken enabling of known bad code
2024-05-07 10:17:48 -05:00
bgbsww
3ee0530ac2 Toponaming/Part: Fix fillet/pad bug, add tests 2024-05-07 09:40:48 -04:00
WandererFan
a617d9a7ee Merge pull request #13825 from HowThatWorks/main
Add page size to ISO 5457 template borders, replaced page size data fields, added blank owner data fields
2024-05-07 08:02:55 -04:00
HowThatWorks
9fd4270db7 Merge branch 'main' into main 2024-05-07 08:17:42 +02:00
David Carter
3de35c9818 Material: Expanded Python API (#13829)
Expands the Python API to allow for material creation. With test cases.
2024-05-06 11:34:51 -05:00
PaddleStroke
b12b95b908 Assembly: Fix Gear Radius2 spinbox issue 2024-05-06 18:32:00 +02:00
PaddleStroke
fed17ff6f1 Assembly: Improve Exploded View's radial explosion, and various small fixes. 2024-05-06 18:32:00 +02:00
PaddleStroke
3d13f5353a Assembly: add try/catch blocks in drag step. 2024-05-06 18:32:00 +02:00
PaddleStroke
c8a6f2c55c Assembly: Improve tooltip of CommandCreateJointDistance 2024-05-06 18:32:00 +02:00
PaddleStroke
ce455de2c5 Assembly: Mark new features as experimental. To enable them you need to create a parameter called ExperimentalFeatures and set it to true. 2024-05-06 18:32:00 +02:00
PaddleStroke
3419d27077 Assembly: Make RackPinion and Screw easier to setup. 2024-05-06 18:32:00 +02:00
PaddleStroke
b25f90c694 Assembly: Fix small bugs in AssemblyObject.cpp, JointObject.py and UtilsAssembly.py 2024-05-06 18:32:00 +02:00
PaddleStroke
13c0ba1902 Assembly: Introduce Belt joint. 2024-05-06 18:32:00 +02:00
PaddleStroke
b4168c95ee Assembly: Drag: switch from solver Solve to dragStep. 2024-05-06 18:32:00 +02:00
PaddleStroke
60b902fc7e Assembly: Adds limit and RackPinion/Screw/Gears 2024-05-06 18:32:00 +02:00
PaddleStroke
1a7f62e522 Update OndselSolver submodule. 2024-05-06 18:32:00 +02:00
PaddleStroke
9f240c525c Assembly: Fixes slider special move mode.Fixes #13370 2024-05-06 18:32:00 +02:00
PaddleStroke
083437b5ba Assembly: ViewProviderAssembly: Fix issues raised by @wwmayer 2024-05-06 18:32:00 +02:00
PaddleStroke
4d33659666 Assembly: Add Screw/Pulley/Gears/RackPinion icons. Credits to @maxwxyz 2024-05-06 18:32:00 +02:00