Commit Graph

5732 Commits

Author SHA1 Message Date
bgbsww
4a04a7eb91 Move code for recompute dialog and disable warning 2024-09-16 17:49:35 +02:00
Zheng, Lei
c4d5cc5967 Transfer in LS3 code 2024-09-16 17:49:35 +02:00
qewer33
5cea955d44 Update about dialog thumbnail image 2024-09-16 17:46:27 +02:00
Kacper Donat
33cd969280 Gui: Use FreeCAD Theme only for FreeCAD stuff 2024-09-14 17:38:47 +02:00
Chris Hennes
8e070a7c14 Merge pull request #15262 from Rexbas/fix-alignment-direction
Move getGlobalPlacement() and fix alignment direction for transformed objects
2024-09-13 13:09:23 -06:00
Jiří Pinkava
a9d3a8eb6c GUI: Fix tree visibility click when a tree item gets collapsed
The tree can change shape during handling the mousePressEvent() event,
because some part of the tree can be (un)folded. This might lead to
shift of the three (up or down). The position of items in tree change
relatively to the position of mouse (which stays in place).
If the visibility click is handled after mousePressEvent, the shift in
position can lead to cursor beeing over visibility icon and the click
is handled like if the visibility icon vas clicked, which is unexpected.

Handling the visibility click first fixes this. The setAccepted(true),
was removed, it is left to the subroutine to set it.
2024-09-13 13:24:42 -05:00
wmayer
3d5551c6b8 Port: Include changes of FreeBSD port 2024-09-13 08:31:54 -05:00
Adrián Insaurralde Avalos
f5402a4687 GUI: Fix splashscreen for single image (#16428)
* fix splashscreen for single image
* improve clarity of splashscreen load order logic
* fix splashscreen with no _2x variant
2024-09-12 21:49:35 -05:00
Chris Hennes
7aa9aeb8af Merge pull request #16451 from wwmayer/fix_qt6_warnings
Fix Qt6 warnings
2024-09-12 21:22:37 -05:00
Benjamin Bræstrup Sayoc
acc26b6534 [Gui] Handle unset style preferences in clipboard about info
FIxes #16391
2024-09-12 21:20:02 -05:00
Kacper Donat
60b3bbdf64 Gui: Force OpenGL rendering for main window
This is big hack for Qt6 to force rendering using OpenGL from the
beginning. Since Qt6 OpenGL context is initialized only after creating
first QOpenGLWidget which results in window hiding and showing again
after some delay. This causes various timing issus as the window is not
supposed to do that.
2024-09-12 13:27:44 +02:00
wmayer
dad175cee9 MSVC: Fix several compiler warnings 2024-09-12 11:58:36 +02:00
wmayer
c64ecd1e7b Qt6: QLocale::countryToString and QLocale::country() are deprecated since Qt 6.6 2024-09-11 16:34:59 +02:00
wmayer
77711e6459 Qt6: Several methods of QMouseEvent are deprecated since Qt 6.0 2024-09-11 16:33:19 +02:00
xtemp09
e6e6b1b1e5 [GUI] Make some strings untranslatable in Light Sources dialog 2024-09-11 08:41:07 -05:00
wmayer
3b91fd33e0 Qt6: QColor::setNamedColor is deprecated since Qt 6.6 2024-09-11 15:41:04 +02:00
Pieter Hijma
0894fe0e73 Core: Fix duplicated extensions (see #16299) 2024-09-09 22:11:44 -05:00
xtemp09
f7f8143913 [GUI] Enable sort of zoom in Light Sources dialog 2024-09-09 18:27:51 +02:00
Yorik van Havre
e1823d25e8 Translations (#16389)
* 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-09-09 18:25:52 +02:00
Yorik van Havre
ab0ab9fafa Merge pull request #16220 from wwmayer/placementpy
Core: Expose Placement dialog to Python
2024-09-09 18:24:31 +02:00
Bas Ruigrok
3427e60fe4 Gui: Fix orthographic camera standard views in an empty scene 2024-09-09 17:59:50 +02:00
Bas Ruigrok
db7ee95347 Gui: Use Coin 4.0.3 fix for orthographic camera clipping 2024-09-09 17:58:32 +02:00
MisterMakerNL
1eee14810f changed selection colors 2024-09-09 17:44:21 +02:00
wmayer
9213635c9d Core: Placement dialog
+ replace separate buttons with QDialogButtonBox
+ add convenience method setPlacementAndBindObject
+ use const DocumentObject
2024-09-09 12:28:22 +02:00
Jiří Pinkava
ea6a0943cc OverlayManager: fix unititialized hideTab variable
The hideTab is of type bool, which is primitive type and is thus unitialized if new
instance of the class is created. The exception would be to for static
instance of the class, but that is not the case (only the pointer to the instance is static).

It was originaly initialized, but the initialization was removed in
8cf94c1aba1.
2024-09-08 20:13:21 -05:00
PaddleStroke
fb509154ab App::Link: fix crash with Draft Array (#16240)
* App::Link: fix crash with Draft Array
2024-09-08 17:12:55 -05:00
Chris Hennes
4b77c189eb Merge pull request #16281 from benj5378/aboutStylesheet
[Gui] Add style, theme and qtstyle info to clipboard about info
2024-09-08 17:07:55 -05:00
Bas Ruigrok
2123e53d42 Gui: Fix alignment direction for transformed objects 2024-09-07 13:27:59 +02:00
David Carter
d33c995019 Materials: UI updates for transparency
Add missing UI elements to support per face transparencies:
- Setting per face transparencies
- show transparency information in the appearance inspector
- expose alpha channel in material properties dialog
2024-09-06 14:17:20 -05:00
Benjamin Bræstrup Sayoc
f366227933 [Gui] Add style, theme and QtStyle to clipboard about info
Fixes #16272
2024-09-06 10:34:12 +02:00
Benjamin Bræstrup Sayoc
33ab8fa2e8 [Gui] QtStyle preference consistency
Previously, the some of the code searched for the QtStyle in the wrong location
2024-09-06 10:34:04 +02:00
wmayer
e3fc2f9582 Core: Add option to ignore transactions in placement dialog 2024-09-05 19:18:20 +02:00
wmayer
df67720eac Core: Expose Placement dialog to Python 2024-09-05 18:17:08 +02:00
wmayer
6f245c0103 Core: Change placement dialog to operate on passed selection objects 2024-09-05 17:43:09 +02:00
wmayer
f8648b475a Core: Refactor placement dialog 2024-09-05 17:08:43 +02:00
qewer33
f54600dfdf fixup! Gui: Add new splash images 2024-09-02 12:44:36 -04:00
qewer33
0f510e5790 fixup! Gui: Add new splash images 2024-09-02 12:44:36 -04:00
qewer33
d98b803300 fixup! Gui: Add new splash images 2024-09-02 12:44:36 -04:00
Ladislav Michl
3668194185 Gui: splashscreen: Use std::string as Log parameter 2024-09-02 12:44:36 -04:00
Ladislav Michl
8042f3af12 Gui: Drop showLic AboutDialog parameter
Since a688e766b836 ("Extended About dialog with credits and license tabs")
(8 years ago) the showLic parameter is unused. Drop it.
2024-09-02 12:44:36 -04:00
qewer33
546499a6ba Gui: Make splashscreen use multiple splash images 2024-09-02 12:44:36 -04:00
qewer33
c33ea199a4 Gui: Disable splashscreen messages by default 2024-09-02 12:44:36 -04:00
qewer33
8479764558 Gui: Add new splash images 2024-09-02 12:44:36 -04:00
MisterMaker
6ef51daec1 set QTstyle to fusion for light and dark theme (#16042) 2024-09-02 18:34:09 +02:00
bgbsww
5a1275ad60 Toponaming: Fix ctrl selection issues by looking up element names and setting up detail path 2024-09-02 18:28:11 +02:00
PaddleStroke
844482e45b App::Link Fix subname when selected in 3d. Fix https://github.com/FreeCAD/FreeCAD/issues/15822 2024-09-02 18:20:18 +02:00
Max Wilfinger
248b05e379 removed version "v0.21" from the old backup format warning message 2024-09-02 18:01:51 +02:00
hlorus
979ca3bbd1 [MeasureGui] Use temporary measure object creation (#15122)
* MeasureGui: Store measure type in TaskMeasure

* MeasureGui: Avoid adding measurement to document during command interaction

* [Gui] Add check for document in VPDocumentObject::getActiveView

* MeasureGui: Track the document when adding objects

* MeasureGui: Cleanup python measurement creation

* [Gui] Add isAnnotationViewProvider method

* [Gui] Check if viewprovider is added as an annotation in getActiveView

* [Gui] Add takeAnnotationViewprovider method to Gui::Document

* [Gui] Make addViewProvider public

* [MeasureGui] Add existing view provider to document when storing measurement

* [MeasureGui] Fix invocation of initial label placement

* [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-02 11:54:05 -04:00
wwmayer
7b0a23337c Gui: Prepare for clang-format (#16051)
* Gui: Prepare for clang-format

* [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-02 17:48:55 +02:00
bgbsww
608c80b5a3 Toponaming: Remove remaining FC_USE_TNP_FIX defines 2024-08-31 13:21:10 -05:00