Commit Graph

6067 Commits

Author SHA1 Message Date
Benjamin Bræstrup Sayoc
8d2d0a47f4 Gui: Use QStringLiteral 2025-02-10 18:34:57 +01:00
Chris Hennes
5869fdb95f Merge pull request #19420 from tritao/gui-selection-refactor
Gui: Selection code cleanups
2025-02-10 10:56:23 -06:00
tritao
f7a0cece08 Base: Remove Boost-based filesystem and switch to standard <filesystem> 2025-02-10 10:48:54 -06:00
tritao
359f832dfb Gui: Check if document exists in View3DInventorViewer::setOverrideMode. 2025-02-10 10:33:22 -06:00
Chris Hennes
b18150e048 Merge pull request #19479 from tritao/base-cleanup-xml-generation
Base: Minor cleanups to base XML bindings generation
2025-02-10 09:34:50 -06:00
tritao
2145b742eb Base: Standardize on Py::Long type for Python bindings. 2025-02-08 13:14:22 +00:00
xtemp09
6fa5ec9843 Assembly: Fix the crash described in #18475 2025-02-07 17:39:03 -06:00
Chris Hennes
c8a4d44cf2 Gui: Disable spacemouse init if not legacy 2025-02-06 16:49:18 -05:00
Chris Hennes
d4d74a4464 Merge pull request #19433 from tritao/gui-general-code-cleanups
Gui: General code cleanups
2025-02-06 11:33:44 -06:00
tritao
0d7572ab10 Gui: Use SO_SWITCH_NONE instead of -1. 2025-02-06 10:06:04 +00:00
tritao
1f07fb3a87 Gui: Update MSVC legacy code comments from ViewProviderLink. 2025-02-06 10:06:04 +00:00
tritao
02ab2deac7 Gui: Reorganize the navigation files into a top Navigation folder. 2025-02-05 20:21:00 -06:00
tritao
4260bd6fa4 Gui: Minor cleanups. 2025-02-05 22:13:07 +00:00
tritao
b08cf11624 Gui: Cleanup legacy code. 2025-02-05 19:19:40 +00:00
tritao
ad63fbf204 Gui: Fix single usage of SelectionSingleton::instance(). 2025-02-05 13:14:00 +00:00
tritao
1d789a7972 Gui: Rename SoFCHighlightAction to preselect terminology. 2025-02-05 13:14:00 +00:00
tritao
e79b5ff9e8 Gui: Rename SoFCEnableHighlightAction to preselection terminology. 2025-02-05 13:14:00 +00:00
tritao
4843377790 Gui: Change SoFCSelection from highlight to preselection terminology. 2025-02-05 13:14:00 +00:00
tritao
cb9e166a20 Gui: Some SoFCUnifiedSelection code readability improvements. 2025-02-05 13:13:59 +00:00
tritao
2792a83a19 Gui: Change SoFCUnifiedSelection from highlight to preselection terminology. 2025-02-05 13:13:59 +00:00
tritao
2a2ff6a484 Gui: Document ResolveMode directly. 2025-02-05 13:13:58 +00:00
Furgo
a697a5ba66 Core: add Ifcopenshell version in about info clipboard (#19264)
* Core: return information about ifcopenshell version in About info clipboard

* Core: remove whitespace introduced by mistake

* Core: handle case where ifcopenshell is not installed

* Core: remove colon for consistency with other library versions

* Core: change type of cmd to const char* to avoid allocating memory

* Core: make failure to import ifcopenshell a debug message

* Core: fix non-existing Debug message with DeveloperWarning

* Core: go back to Log() to show info about non-installed ifcopenshell
2025-02-05 10:18:54 +01:00
tritao
988315d768 Gui: Cleanup SoFCUnifiedSelection::handleEvent. 2025-02-05 00:25:56 +00:00
tritao
589ff46a58 Gui: Rename SoFCUnifiedSelection::selectionRole for clarity. 2025-02-05 00:25:56 +00:00
Patryk Skowroński
02d07163d1 Fixed CMake files 2025-02-04 11:04:27 -06:00
xtemp09
f818aa514c Change FocusPolicy of some PrefWidgets to StrongFocus
This commit mollifies the issue #17684 by making the PrefWidgets receive
mouse wheel events only when they have both focus and the mouse pointer
at the widget.
2025-02-03 18:13:35 +01:00
Chris Hennes
5766974067 Merge pull request #16995 from benj5378/axisColors
[Gui] Axis colors changeable
2025-02-03 18:11:46 +01:00
Chris Hennes
d242ac706e Gui: Migrate to using App::Application::getNameWithVersion 2025-02-03 12:05:16 -05:00
Pascal de Bruijn
5ac886fa0e Add proper PDF creator metadata 2025-02-03 12:05:16 -05:00
Chris Hennes
58d64e2442 GUI: Disable legacy spnav code when legacy is false
We don't ever want to connect to both libspnav and NavLib
2025-02-03 12:03:34 -05:00
tritao
ff8e99f385 App: Provide temporary document creation flag to Python App.loadDocument. 2025-02-03 18:01:18 +01:00
tritao
551c2e48fb Gui: Reorganize the selection files into a top Selection folder. 2025-02-03 17:56:57 +01:00
Syres916
e58388a222 [Gui] Fix Close without Saving button size (#19342) 2025-02-02 23:24:27 +01:00
Furgo
a52f2e5081 PrefPacks: reset font size in FreeCAD Classic theme 2025-02-02 09:08:29 +01:00
tritao
2c9c2c9dc7 Gui: Add bounding box data to scene inspector. 2025-01-29 06:49:35 -06:00
Max Wilfinger
9f0f194d7b Adding DPI info to the copied information in the about dialog (#19251)
* Adding DPI info to the copied information in the about dialog.

* Update DlgAbout.cpp

changed screen() to QApplication::primaryScreen()
2025-01-29 12:14:26 +01:00
luzpaz
d982743b70 Fix typos
Found via codespell
2025-01-29 08:31:01 +01:00
Max Wilfinger
5925c7a560 Merge pull request #19097 from hyarion/refactor/template-based-is-derived-from
Simplify code by using BaseClass' isDerivedFrom<> and is<>
2025-01-27 20:40:08 +01:00
Alfredo Monclus
6ce57a58e0 refactor: taskpanel ui on linux 2025-01-27 18:06:22 +01:00
mwganson
2694dc85cf [VectorListEditor] Set precision to 12 digits when copying table data 2025-01-27 18:00:41 +01:00
tritao
28f18ded85 Gui: Fix invalid scene graph mutation in EditableDatumLabel.
`EditableDatumLabel` uses `activate`/`deactivate` methods for showing or
hiding its widgets in the scene.

However, `activate`/`deactivate` methods can end up being called as part
of a scene graph / Coin action (`SoAction`) handler, in the context of
`SoFCUnifiedSelection`, and this ended up in a Coin warning and eventual
crash due to the scene graph being manipulated (nodes being removed),
which Coin has checks for in debug mode:

```
Coin error in SoGroup::removeChild(): tried to remove non-existent child
0x5555579c5290 (Annotation)
```

Fix this issue by using a `SoSwitch` node instead and by controling the
child visibility using it instead.
2025-01-27 17:51:40 +01:00
MisterMaker
f9616e93e7 [stylesheets] Gathering of stylesheet fixes (#18929)
* this is a workaround to remove caps

pelase ignore this hackery

* And now the caps are gone

* a bunch of small tweaks and fixes.

* Update FreeCAD Light.qss

updated menubar color light theme

* updated the buttons a tiny bit

* Fix for to short buttons.

Couldn't test it since my macro window is broken.

Co-Authored-By: Syres916 <46537884+Syres916@users.noreply.github.com>

* qspinbox disabled tweaks.

* Update FreeCAD Dark.qss

Tweaked the buttons a bit so they are more in line with the light theme.

* Update FreeCAD Dark.qss

small tweaks

* reversed the spreadsheet headers gradient for dark

* Update light with undo arrows position

Co-Authored-By: Syres916 <46537884+Syres916@users.noreply.github.com>

* Update undo buttons arrow position dark

Co-Authored-By: Syres916 <46537884+Syres916@users.noreply.github.com>

* added an offset to qcombobox

* removed the fix since it ruined every Qcombobox.

* Tabs update more clean less gradients.

* Update DlgMacroExecuteImp.cpp

fixing conflicts

* Update DlgMacroExecuteImp.cpp

* Delete DlgMacroExecuteImp.cpp

* Create DlgMacroExecuteImp.cpp

* Revert "Create DlgMacroExecuteImp.cpp"

This reverts commit 8de8f7506177d773bb356fd0e22a66466c25b668.

* Revert "Delete DlgMacroExecuteImp.cpp"

This reverts commit 41315f31abdad79afd4b696ee15c603de3e4a6a1.

* Revert "Update DlgMacroExecuteImp.cpp"

This reverts commit aa792291684e2d674f6961c641c8e2f8b9af12c8.

* Revert "Update DlgMacroExecuteImp.cpp"

This reverts commit e8376a8fdf11d7fd014f2c46f189afdca42833ce.

* Delete src/Gui/DlgMacroExecuteImp.cpp

* Update DlgMacroExecuteImp.cpp

finally realized what was going on lol

---------

Co-authored-by: Syres916 <46537884+Syres916@users.noreply.github.com>
2025-01-27 17:49:20 +01:00
dzid26
3a24e87492 Gui: show tooltips when window is not focused 2025-01-27 17:43:57 +01:00
Benjamin Nauck
5410123f0d Simplify logic using freecad_dynamic_cast 2025-01-27 16:08:19 +01:00
Benjamin Nauck
97bf3c5e33 Manual changes to improve isDerivedFrom usage 2025-01-27 16:08:19 +01:00
Benjamin Nauck
6f535f19fb Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
Roy-043
feaf59bb8d PrefPacks: Add spreadsheet colors to classic theme
Fixes #17984.
2025-01-25 21:30:27 +01:00
tritao
4c93a14fea Gui: Reorganize the dialog files into a top Dialogs folder. 2025-01-24 16:28:02 -06:00
Benjamin Bræstrup Sayoc
44e3a94f29 [Gui] Make axis colors of corner axis changeable 2025-01-24 15:45:43 +01:00
Benjamin Bræstrup Sayoc
c6e590ce9d [Gui] Make axis colors of axis kit (world origin axis) changeable 2025-01-24 15:45:42 +01:00