Commit Graph

5779 Commits

Author SHA1 Message Date
Benjamin Nauck
a85d03d807 Revert "Make sure splasher is stopped before showing dialog"
This reverts commit 104a3b90b0.
2024-10-20 18:40:40 +02:00
Yorik van Havre
9c6bd61fd6 GUI: Added dedication to @bgbsww in about dialog/credits 2024-10-17 20:17:39 -05:00
Pieter Hijma
bc6376c3a9 Core: Fix VarSet add property dialog Esc segfault (#17215)
* Core: Fix VarSet add property dialog Esc segfault

* Core: Improve the way disconnect is handled

* Core: Add a check for a non-existing property
2024-10-17 20:14:50 -05:00
Kris Wilk
9806a46324 Use Qt built-in to determine the system's preferred fixed-width font 2024-10-16 08:50:00 -05:00
Benjamin Bræstrup Sayoc
d4173be130 [Gui] Fix isBad asserts, by removing old monkey patch
Multiple places in code, asserts for bad types would trigger SIGABRT. This is not just limited to #16316 with SoZoomTranslation, but multiple more places, not described in issue, but I experienced myself. Fixes #16316
2024-10-14 18:16:23 +02:00
wmayer
013d99dd65 Core: Directly store text changes made in text object
Store changes made in TextDocumentEditorView immediately to TextDocument. This fixes the issue reported in
https://forum.freecad.org/viewtopic.php?p=786175#p786175
2024-10-14 18:04:45 +02:00
Yorik van Havre
e8fc9cf45f crowdin translations 2024-10-14 17:56:08 +02:00
Yorik van Havre
6c08b5a63c updated ts files 2024-10-14 17:56:08 +02:00
Furgo
06bc18fb0f Properly scale link overlays 2024-10-14 17:50:35 +02:00
Jiří Pinkava
37e021edd4 Gui: add Qt Platform name to splashscreen information dump
There is several bugs in FreeCAD which are related to platform (mostly wayland),
the hope is this will make it easier to identify the dependence of bug on the platform
2024-10-14 17:44:53 +02:00
Kris Wilk
cc19644922 Fix tab order in Add Property Dialog (VarSets) 2024-10-14 17:41:55 +02:00
Jiří Pinkava
cdb1a4f8ef Gui: Workaround for crash on close of MDI window
The Qt6 (up to Qt 6.7.3 now) contains bug, which can lead, under
specific circumstances, to crash of the application, when the
MDI window is closed. The circumstances are:

* at least 2 MDI windows needs to be open
* stylesheet muset set different size (border, margin) for activated and un-activated tabBar tab
* the closed window must be inactive, but created before the window now active and open
* race condition must occur betwee the closing and resize event handlers for the tabBar
  (see qt bug for details)

So this bug only occures with Qt6 with the Dark or Light styles selected (no classic) and only if
specific sequence of steps is followed during opening and closing the MDI windows.

The bug is in Qt code path executed when QMdiArea::ActivationHistoryOrder is set.

The other possible workaround might be to change all the affected stylesheets, but this seems to me
impractical and also fragile, because the affected code path will be still active.

https://bugreports.qt.io/browse/QTBUG-129596
2024-10-14 10:32:53 -05:00
MisterMakerNL
14068183b7 fixing the checked toolbutton issue in Qsint
https://github.com/FreeCAD/FreeCAD/issues/17230
2024-10-14 08:14:09 -05:00
Pieter Hijma
e478192aa5 Gui: Fix showing multiple dialogs VarSet add prop 2024-10-11 08:55:15 -05:00
wmayer
9bfa461520 Core: Check returned pointer of convertSWIGPointerObj 2024-10-10 20:36:03 -05:00
Syres916
8b53daf263 [Gui] Disable the ability to change themes and preference packs... 2024-10-10 20:25:30 -05:00
Benjamin Nauck
104a3b90b0 Make sure splasher is stopped before showing dialog 2024-10-10 16:14:12 -05:00
Bas Ruigrok
d20cb9e6ee Gui: Fix Touchpad navigation style panning in edit mode 2024-10-07 12:40:35 -05:00
Benjamin Bræstrup Sayoc
13d00f9884 [Gui] TextEdit, zoom on Ctrl + wheel
Fixes #13861
2024-10-07 18:02:53 +02:00
mwganson
98f57c9ecc [Step Import] fix issue with non-latin characters in import path 2024-10-07 17:43:14 +02:00
Jiří Pinkava
9008373919 Gui: fix warning with duplicate name in DlgSettingsLightSources 2024-10-03 13:22:48 -05:00
Kris Wilk
7e81287914 Placement Dialog: Use default tab order (Fix #16944) 2024-10-03 11:43:42 -05:00
Kris Wilk
ffa1189634 Prevent using reserved names for properties or aliases (Fix #16846) (#16902)
* Prevent naming properties with reserved words (Fix #16846)

* Prevent using reserved constant names for properties or aliases

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* App: Add unit test for isTokenAConstant

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-10-03 10:03:10 -05:00
wmayer
08ff1e5eeb Core: Fix macro recording when using module_io 2024-10-02 21:13:19 -06:00
wmayer
6c0659711b Core: Do not save changes of a text object if the GUI document is about to be closed
This fixes #16873: Text document breaks some Analysis container objects
2024-10-02 20:42:00 -06:00
Pieter Hijma
eab82038ba Gui: Fix segfault in Expression Editor/VarSet 2024-10-02 20:31:20 -06:00
Benjamin Nauck
de294dabca Include a warning to devs for unhandled exceptions
The same situation will cause a crash on at least macOS.
2024-09-30 18:15:14 +02:00
Frank Martinez
7220a77742 Revert 9b409da due to a regression in some platforms 2024-09-30 18:06:50 +02:00
wmayer
112f4a2d29 Core: Do not set to XY plane by default if the rotation of the image doesn't match 2024-09-28 19:05:52 +02:00
wmayer
09e140cf19 Core: Fix resetting placement of transformed image
The restored Euler angles of a rotation may significantly differ from the input Euler angles so that determining the plane isn't very reliable.
To get the plane reliably multiply (0,0,1) with the rotation and use this as reference normal of the plane.
2024-09-28 18:46:35 +02:00
Syres916
6e2cd4e733 [Gui] Qt6 OpenGLWidget - move black rectangle off screen (#16863) 2024-09-27 22:50:59 -04:00
Frank Martinez
9b409da59c Splash Screen minimal show time. Issue #16264 2024-09-23 16:06:59 -05:00
bgbsww
a715a4d161 Support macros and console logs in Assembly 2024-09-23 14:10:55 -05:00
Yorik van Havre
abd5c3ca31 Translations (#16754)
* 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>
2024-09-23 14:09:56 -04:00
3x380V
1207715849 TechDraw: Buggy Wayland custom cursors workaround (#16740)
* Gui: Minor polishing of cursor regression fix

* TD: Buggy Wayland custom cursors workaround

Until Qt v6.6 displaying custom cursors on Wayland is broken,
so add a workaround. See also QTBUG-95434.

Fix is the same as d3bb2068 ("Gui: Buggy Wayland custom cursors workaround")
plus subsequent fixes.
2024-09-23 17:43:10 +02:00
Benjamin Nauck
86fa65ba48 Use backspace as default to delete on mac
Only full size mac keyboards has a specific delete key, most doesn't.
2024-09-21 10:37:30 -05:00
Jiří Pinkava
a47800d9cc Gui: Fix path to QRC file in PreferencePages UI file
QtCreator, when the file is opened, reports reference to .qrc filewhich
does not exists. It looks like a missing piece from ccb9d7faeb.
2024-09-20 08:43:13 -05:00
supermixed
f763425b4f Core: Import STEP: Cancel button does not cancel (#16499)
* Fix importing .step file when user cancelled import settings dialog
* Refactor object loading python code, fix not using settings when STEP options dialog not shown
* Use custom exception type for user cancelling import instead of `RuntimeError`
* Pull python code out to external file
2024-09-20 08:25:23 -05:00
xtemp09
c9452e2c0f [GUI] Move the Push In and Pull Out buttons to the left side
Closes #16587.
2024-09-20 08:19:46 -05:00
Frank Martinez
6afc6c7757 Change fixed selection colors to style based palette. Issue #16454 2024-09-20 08:10:21 -05:00
Frank Martinez
075d30c12c Issue 16454 workaround: PropertyEditor selection colors 2024-09-20 08:10:21 -05:00
Bas Ruigrok
2043da62f2 Gui: Fix segfault in align to selection tool 2024-09-20 08:06:31 -05:00
bgbsww
f82bfd5ddc Move the recompute dialog to after Gui opens instead of per document signal. 2024-09-19 08:49:13 -05:00
Yorik van Havre
56dbb6532a Translations (#16582)
* 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>
2024-09-19 09:36:54 +02:00
bgbsww
914a7616f7 Gui: fix python syntax in C++ code that broke some compilers (#16614) 2024-09-18 09:06:20 -04:00
Jiří Pinkava
60b8c89fc4 Gui: fix size of ComboBox in Preferences/Navigation
Fixes visual artifact in the Preferences/Navigation dialog. The
default value for this field is 0 (at least for some Qt versions),
which does not make sense, because the element would be invisible.

Also the element is actually invisible when editing the UI file in
QtCreator.

Using the default "max" value set for other fields.
2024-09-16 18:07:14 +02:00
bgbsww
0f53f2195d Add override flag for recomputes; set it in relevant tests with old files. 2024-09-16 17:49:35 +02:00
bgbsww
a54f03f666 Move code for recompute dialog and disable warning 2024-09-16 17:49:35 +02:00
Zheng, Lei
445a884682 Transfer in LS3 code 2024-09-16 17:49:35 +02:00
qewer33
aa81b03bee Update about dialog thumbnail image 2024-09-16 17:46:27 +02:00