Commit Graph

5815 Commits

Author SHA1 Message Date
Yorik van Havre
a9b4cb5611 Translations (#17725)
* Translations: updated ts files

* Translations: 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-11-11 17:01:52 +01:00
Yorik van Havre
0995c04c80 Merge pull request #17609 from wwmayer/issue_17576
Core: Don't freeze application if lock file already exists
2024-11-04 18:08:51 +01:00
Bas Ruigrok
513103718b Gui: Fix camera behavior when rotation center is far from object
Also fixes a regression in turntable navigation speed
2024-11-04 17:59:19 +01:00
wmayer
4143c551bb DAG: Add method hasRecord() and use it in Model::slotChangeObject
to avoid a possible failing assert().

Fixes #17572
2024-11-04 17:56:57 +01:00
wmayer
4c6de459dc Core: Write a log message instead of warning when locking a file fails 2024-11-01 16:10:51 +01:00
wmayer
c6f083b3e7 Core: Add wrapper function Application::applicationPid() 2024-11-01 15:48:01 +01:00
wmayer
7820ca7f73 Core: Don't freeze application if lock file already exists 2024-11-01 15:02:22 +01:00
PaddleStroke
4f323f9580 Core: Enable TaskDialogs to associate view (#17373)
* Core: Add possibility for task dialogs to associate a view and be able to close when associated view is closed.

* TaskImage: Use task dialog view association.

* Sketcher: Use task dialog view association. Preventing crash (https://github.com/FreeCAD/FreeCAD/issues/16702)

* EditableDatumLabel: Use QPointer to prevent crash
2024-10-29 09:58:11 -05:00
David Carter
37d0cc7cc5 Materials: Selectively apply appearances
Change the appearance only if the appearance hasn't been set explicitly.
A cached material appearance is used to see if the current appearance
matches the last material. It is also compared against an empty
material to see if the saved material value has been initialized.

This solves the problem of material changes overwriting appearance
changes
2024-10-28 21:49:45 -05:00
Adrian Insaurralde Avalos
9ab3bef651 Gui: show cpu architecture in version info instead of word size
Fix #15833
2024-10-28 21:48:28 -05:00
wmayer
a65d05c6e4 Core: Fix compiler warning 2024-10-28 19:06:31 +01:00
Adrian Insaurralde Avalos
763fab69b1 Gui: use wildcard for some warnings filters. Fix #16687 2024-10-28 17:39:18 +01:00
Pieter Hijma
d215ff1844 Gui: Make VarSet dialog modal
Also tracks its own transactions to prevent interfering with other
transactions.
2024-10-28 17:33:14 +01:00
mwganson
8163ac159e [Macros Dialog] Fix broken toolbar walkthrough 2024-10-28 17:10:12 +01:00
Benjamin Bræstrup Sayoc
954bae725e [Gui] Make styles update on paint (#17376)
* [Gui] Make styles update on paint

Fixes #15756. Similar implementation to that already in FileCardDelegate.cpp

* [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-10-28 16:48:47 +01:00
Bas Ruigrok
1cf5b23927 Gui: Correct spin sensitivity 2024-10-28 09:54:28 -05:00
wmayer
c5c64a9c70 Core: Refactor Document::setEdit 2024-10-27 13:13:11 -05:00
wmayer
499d192393 Core: Handle possible nested calls of TreeWidget::onUpdateStatus()
Fixes #17460
2024-10-24 23:11:37 -05:00
Pieter Hijma
f4fe481344 Gui: Fix tooltip/documentation in VarSet dialog 2024-10-24 23:01:12 -05:00
Jiří Pinkava
9ba6bc1b9e Disable Qt bug 129596 workeround for QT >= 6.8.1
The fix is also in 6.5.8+, but honestly I would not bother ...
2024-10-24 22:30:38 -05:00
Michael Fuchs
ecf005e23b Remove unused LibraryInfo class 2024-10-24 21:50:13 -05:00
Michael Fuchs
d2411dfe13 Replace About/Libraries with ThirdPartyLibraries.html
Use system browser to open external links
2024-10-24 21:50:13 -05:00
mwganson
a6006fc11a [Python Console] prevent crash on autocomplete if python module is invalid, fixes issue #17299 2024-10-24 21:22:50 -05:00
Adrián Insaurralde Avalos
5979ebd6f8 Gui: extend warning filters
filter out:
-qt.qpa.wayland
-kf.config.core
-kf.kio.widgets
-kf.service.sycoca
-kf.solid.backends.udisks2
2024-10-21 18:33:25 +02:00
PaddleStroke
44c3e6658c Core: Fix Ctrl-deselection issue 2024-10-21 18:31:06 +02:00
wmayer
5435b3e4db Core: Set unit scheme when switching between unsaved documents
Fixes #17297
2024-10-21 18:17:30 +02:00
Yorik van Havre
1576df5937 Merge pull request #17367 from hyarion/fix-open-with-file-crash
Workaround for macOS crash when loading FreeCAD by opening a `.FCStd` file from Finder
2024-10-21 18:16:36 +02:00
Michael Fuchs
6f87fc090e Switch back to default filename for exports after the active document changes. Fixes #16839 2024-10-21 18:10:42 +02:00
Benjamin Nauck
4eb7d5d09c Add "Safe mode" which temporarily disables configs and addons (#16858)
* Add safe-mode which starts freecad in a clean environment

* Integrate safe-mode

* Show "(Safe Mode)" in main window title

* Show safe mode info when safe mode is started

* Created Safe Mode Icon

* Use new icon

* Add PreCompiled.h

* Add exports for windows

---------

Co-authored-by: Gabriel <gaz082@gmail.com>
2024-10-21 18:08:52 +02:00
Bas Ruigrok
66002908c7 Gui: Set spin projector sphere depending on rotation center 2024-10-21 18:04:38 +02:00
Yorik van Havre
416489e07c Merge pull request #17265 from wwmayer/issue_17250
Core: Add convenience class ModuleIO to open files
2024-10-21 17:40:10 +02:00
Adrian Insaurralde Avalos
d15722863c Gui: try calling graphviz binaries from PATH by default [fix #15224] 2024-10-21 17:32:47 +02:00
Benjamin Nauck
d569098cb6 Repost QFileOpenEvent event to avoid an undefined state 2024-10-20 19:04:02 +02:00
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
wmayer
0b13ed3722 Core: Use ModuleIO in MainWindow::loadUrls 2024-10-15 14:06:36 +02:00
wmayer
a4b555ea29 Core: Use ModuleIO in RecentFilesAction & RecentMacrosAction 2024-10-15 14:06:09 +02:00
wmayer
e6a2af100a Core: Add convenience class ModuleIO to open files 2024-10-15 14:04:46 +02: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