Commit Graph

5111 Commits

Author SHA1 Message Date
wmayer
19dfea4783 MSYS: fix broken Qt6 build using MinGW & clang 2023-11-28 19:11:58 +01:00
wmayer
9fb08b887d fixes #11533: TypeError in: FreeCADGui.getMainWindow().windowStateChanged 2023-11-27 11:30:41 -06:00
Yorik van Havre
fac94ba932 Translations (#11551)
* Updated ts files

* merged crowdin translations

* [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-11-27 11:29:38 -06:00
Chris Hennes
5746b059c0 Merge pull request #11540 from kadet1090/rework-preferences-navigation
Gui: Add ScrollArea to Preferences and auto expand groups
2023-11-27 11:20:48 -06:00
Chris Hennes
3ebf841300 Merge pull request #11519 from Rexbas/rotation-center-zoom
Gui: Update rotation center indicator after zoom
2023-11-27 11:08:42 -06:00
wmayer
79b21080e6 Gui: fix drag and drop of ViewProvider
* ViewProvider::canDragAndDropObject should only return true if an extension handles drag and drop
  Currently it returns true if no extension is available
* ViewProvider::dropObject shouldn't throw an exception if no extension handles drag and drop

As an example consider https://forum.freecad.org/viewtopic.php?t=82957
When selecting two objects then ViewProvider::dropObject is called twice. But for the first call both objects are moved to the destination
and for the second call no extension handles drag and drop any more. This incorrectly leads to a thrown exception.
2023-11-27 11:07:29 -06:00
Chris Hennes
cfd41683a5 Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive-

* App: Fixes for MSVC permissive-

* Gui: Fixes for MSVC permissive-

* Main: Fixes for MSVC permissive-

* Fem: Fixes for MSVC permissive-

* Material: Fixes for MSVC permissive-

* Part: Fixes for MSVC permissive-

* Mesh: Fixes for MSVC permissive-

* Points: Fixes for MSVC permissive-

* Robot: Fixes for MSVC permissive-

* TechDraw: Fixes for MSVC permissive-

* Path: Fixes for MSVC permissive-

* Core; Changes per review comments

* TD: Revision from wandererfan

* [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-11-27 17:37:29 +01:00
Kacper Donat
593f1a2386 Gui: Expand group after selection
This commit ensures that after selecting item the group is automatically
expanded. User can force expansion by explcitly clicking expand button,
groups expanded that way will stay expanded unless user collapses them.
Otherwise non-active group will be collapsed automatically.
2023-11-26 20:25:06 +01:00
Kacper Donat
42aebdfa97 Gui: Add ScrollArea to Preferences
This adds QScrollArea widget to DlgPreferences which in turn allows
preference pages to be scrollable. Stacked widget sizes are forced to
selected widget so scroll area should appear when it is needed.

Fixes #11511
2023-11-26 16:01:22 +01:00
pavltom
b8278718e9 [TechDraw] Implement arc length calculation for arbitrary edge 2023-11-26 08:53:39 -05:00
wmayer
ec02ef0126 Gui: use MarkerBitmaps::getSupportedSizes to get available sizes 2023-11-25 18:37:26 +01:00
Syres916
0046e625f0 [Gui] Add 20, 25 and 30px marker sizes 2023-11-25 12:36:33 +01:00
Rexbas
21f10dd36b Gui: Find scene bounding sphere after zoom 2023-11-25 09:40:49 +01:00
Rexbas
affc49049e Gui: Update rotation center indicator after zoom 2023-11-24 22:43:48 +01:00
wmayer
021e0a192f Gui: fix SelectionSingleton::sHasSelection 2023-11-24 15:06:00 +01:00
wmayer
0c21c6298c Base: fix google-explicit-constructor 2023-11-22 23:47:29 +01:00
wmayer
451c094f39 MSVC: fix warnings about conversion between float and double 2023-11-21 23:10:03 +01:00
wmayer
fb770778d3 Qt: fix duplicate widget names 2023-11-21 23:10:03 +01:00
wmayer
6132d8ee63 Gui: remove code duplication of printing preselection 2023-11-20 21:44:05 -06:00
Chris Hennes
1372070452 Update translations 2023-11-20 13:46:22 -06:00
Chris Hennes
4546f6aadd Merge pull request #11421 from Pesc0/vscode-split-4--upgrade-python-debugger
Vscode split 4  upgrade python debugger
2023-11-20 11:18:36 -06:00
Max Wilfinger
2fb91c5a93 Fixes "Project Information" is Misleading #11296 - replace project with document (#11367)
* project to document on information, merge, util

* change project to document in unit system dialog

---------

Co-authored-by: WandererFan <WandererFan@gmail.com>
2023-11-20 10:03:22 -07:00
Paddle
ec305a93e0 Status bar message : reduce number of decimals to use system preference. 2023-11-20 11:02:00 -06:00
Adrián Insaurralde Avalos
e614619b26 Merge pull request #11279 from Rexbas/orthographic-view-clipping
Gui: Fix window center rotation mode and orthographic view clipping
2023-11-20 13:54:51 -03:00
Chris Hennes
638f004de0 Merge pull request #11018 from kadet1090/rework-preferences-navigation
[Gui] Rework preferences navigation as TreeView - Part 1
2023-11-20 10:44:47 -06:00
wmayer
eab181965c Gui: save active palette
If the QLineEdit is disabled the current color group of the cached QPalette is set to 'Inactive'. Now when enabling the QLineEdit the wrong palette is set and the text looks like it's inactive.
2023-11-17 18:52:28 +01:00
Pesc0
a719d80eff Upgrade debugger to debugpy 2023-11-17 02:00:32 +01:00
Pesc0
eeb5a34d54 create utils file with get_python_exe 2023-11-17 02:00:12 +01:00
Abdullah Tahiri
900d3e878e Gui: QuantitySpinBox - keep format on setValue
==============================================

Problem:
When the value set is a double, a new Quantity is created, which does not follow
the previously configured format (setDecimals).

Solution:
To copy the old format to the newly created quantity.
2023-11-16 19:29:46 +01:00
sliptonic
79e642aed2 Merge pull request #11356 from mwganson/pythoneditor
[Python editor] match current indentation for next line when  pressin…
2023-11-13 11:06:49 -06:00
Abdullah Tahiri
4e7aa94b32 Gui: ReportView - include notifier string
=========================================

Console error, warnings, ... allow for a notifiername. This appears separately in the notification area. However, the report view ignores it.

This commit prepends the notifier string separated by a semicolon, if not empty.

It solves the problem that, if the message did not include the notifier, this was not indicated in the Report View.

If the message included the notifier, then it was duplicated in the notification area.
2023-11-13 12:04:53 -05:00
tmksw
a9a25eae69 Gui: Do not add non-existing files to open recent menu 2023-11-13 14:03:36 -03:00
wmayer
0617568a49 Gui: restore old behaviour to set up main window 2023-11-13 13:55:44 -03:00
wmayer
6d5807ddce Gui: only use primary screen to restore main windows settings 2023-11-13 13:55:44 -03:00
wmayer
d9cc1dab5b Gui: getter Gui::MainWindow::isRestoringWindowState possibly mismarked as a slot [-Wclazy-const-signal-or-slot] 2023-11-13 14:36:56 +01:00
Rexbas
b7cb40a414 Gui: Find bounding sphere after showing rotation center 2023-11-12 14:42:45 +01:00
wmayer
a439844206 Gui: Fixes #11341: Adjusting Light Sources in Preferences 2023-11-12 13:41:13 +01:00
mwganson
a5bf47e5b3 [Python editor] match current indentation for next line when pressing enter key, addresses issue 5551 2023-11-11 10:25:50 -06:00
Rexbas
0309be88d1 Gui: Find bounding sphere before drag or animation 2023-11-10 22:33:41 +01:00
Rexbas
93468a5e0b Gui: Fix window center rotation mode and orthographic view clipping 2023-11-10 19:43:36 +01:00
Chris Hennes
f25af97811 Update translations 2023-11-09 12:23:56 -06:00
Abdullah Tahiri
f56eebea64 Sketcher: Fix lints 2023-11-08 17:46:34 +01:00
Abdullah Tahiri
dca052bd9d Fix Compiler warnings of previous merged PRs 2023-11-08 15:20:13 +01:00
Abdullah Tahiri
5a4267a58e EditableDatumLabel: Extend with function to differentiate positioning from dimensioning OVPs 2023-11-08 15:20:13 +01:00
Paddle
95e6699a3e EditableDatumLabel : Fix issue where the spinbox would get in the way of the cursor for angle. For example line angle. 2023-11-07 15:36:21 +01:00
Paddle
4e20c25839 EditableDatumLabel : make sure the spinbox that has the focus is on top. 2023-11-07 15:36:21 +01:00
Paddle
5e9edfea73 EditableDatumLabel : prevent spinbox from going out of the view. 2023-11-07 15:36:21 +01:00
Kacper Donat
fe5a1c6da1 Gui: Move reset logic to PreferencePage 2023-11-06 19:43:19 +01:00
PaddleStroke
a296c10491 Std_Transparency : Toggle transparency of objects. (#10805)
* Std_Transparency : Toggle transparency of objects.
* Remove "Std_ToggleTransparency" from toolbar

---------

Co-authored-by: Paddle <PaddleStroke@users.noreply.github.com>
2023-11-06 12:41:27 -06:00
Kacper Donat
12630551b5 Gui: Rework preferences navigation as TreeView
This recreates current ListBox + TabView navigation model into
navigation based on TreeView.
2023-11-06 19:27:36 +01:00