Commit Graph

6100 Commits

Author SHA1 Message Date
tritao
4ace865b91 Gui: Some SoFCUnifiedSelection code readability improvements. 2025-02-05 13:13:59 +00:00
tritao
b4e5614bff Gui: Change SoFCUnifiedSelection from highlight to preselection terminology. 2025-02-05 13:13:59 +00:00
tritao
ee078645d7 Gui: Document ResolveMode directly. 2025-02-05 13:13:58 +00:00
Furgo
81040d684d 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
20276324c0 Gui: Cleanup SoFCUnifiedSelection::handleEvent. 2025-02-05 00:25:56 +00:00
tritao
763fc0159b Gui: Rename SoFCUnifiedSelection::selectionRole for clarity. 2025-02-05 00:25:56 +00:00
Patryk Skowroński
af2ad11115 Fixed CMake files 2025-02-04 11:04:27 -06:00
xtemp09
ea9190bac4 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
e10d34ada5 Merge pull request #16995 from benj5378/axisColors
[Gui] Axis colors changeable
2025-02-03 18:11:46 +01:00
Chris Hennes
0f7b758b1e Gui: Migrate to using App::Application::getNameWithVersion 2025-02-03 12:05:16 -05:00
Pascal de Bruijn
f980fdaede Add proper PDF creator metadata 2025-02-03 12:05:16 -05:00
Chris Hennes
7c32d9780b 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
123569823e App: Provide temporary document creation flag to Python App.loadDocument. 2025-02-03 18:01:18 +01:00
tritao
65466d580b Gui: Reorganize the selection files into a top Selection folder. 2025-02-03 17:56:57 +01:00
Syres916
34d9ac0050 [Gui] Fix Close without Saving button size (#19342) 2025-02-02 23:24:27 +01:00
Furgo
04aea5e9f3 PrefPacks: reset font size in FreeCAD Classic theme 2025-02-02 09:08:29 +01:00
tritao
767150102d Gui: Add bounding box data to scene inspector. 2025-01-29 06:49:35 -06:00
Max Wilfinger
6246c9ee22 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
67c772553b Fix typos
Found via codespell
2025-01-29 08:31:01 +01:00
Max Wilfinger
45897379e6 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
11125be89d refactor: taskpanel ui on linux 2025-01-27 18:06:22 +01:00
mwganson
d3ffef0df7 [VectorListEditor] Set precision to 12 digits when copying table data 2025-01-27 18:00:41 +01:00
tritao
18d8c181a3 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
a593893ccc [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
2eca0a0367 Gui: show tooltips when window is not focused 2025-01-27 17:43:57 +01:00
Benjamin Nauck
cb4ee4737d Simplify logic using freecad_dynamic_cast 2025-01-27 16:08:19 +01:00
Benjamin Nauck
45c997f40a Manual changes to improve isDerivedFrom usage 2025-01-27 16:08:19 +01:00
Benjamin Nauck
dd6aa9f3c7 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
Joona
268f672d90 Added set shortcut to group command's Setup function
Implemented set shortcut in the group command's Setup function.
This change allows the group command icon to display the tool's shortcut,
but the shortcut appears only after the tool is selected once.
2025-01-26 15:45:14 +02:00
Roy-043
bad2b8b046 PrefPacks: Add spreadsheet colors to classic theme
Fixes #17984.
2025-01-25 21:30:27 +01:00
tritao
8aa50c4380 Gui: Reorganize the dialog files into a top Dialogs folder. 2025-01-24 16:28:02 -06:00
Benjamin Bræstrup Sayoc
15157ad48c [Gui] Make axis colors of corner axis changeable 2025-01-24 15:45:43 +01:00
Benjamin Bræstrup Sayoc
ce35c95e18 [Gui] Make axis colors of axis kit (world origin axis) changeable 2025-01-24 15:45:42 +01:00
Benjamin Bræstrup Sayoc
084e43c160 [Gui] Make NaviCube axis colors changeable 2025-01-24 15:45:42 +01:00
Benjamin Bræstrup Sayoc
2acd412f10 [Gui] Add ability to change axis colors 2025-01-24 15:45:42 +01:00
Chris Hennes
836ad91f3d Merge pull request #17000 from pskowronskiTDx/tdx-mac
Enabling 3Dconnexion NavLib integration for MacOS
2025-01-24 08:09:29 -06:00
xtemp09
c7620fd916 Fix arrow navigation in TreeWidget
Closes #10488. This commit removes the code fragment that "swallowed"
the key press events.
2025-01-24 06:51:52 -06:00
Ulices
ee2f327a96 Add units to some spinboxes on preferences pages (#19143)
* Add units to some spinboxes on preferences pages
* Ensure units have a space, ex: " px"
* FEM: Don't mark units for translation
2025-01-22 09:05:49 -06:00
Benjamin Bræstrup Sayoc
81a27a9252 [Gui] Make autocompletion global
Now auto complete is in all TextEdit objects. Fixes #12850
2025-01-22 06:12:43 -06:00
wmayer
4521f8a740 Gui: Fix warning about unused variable 2025-01-21 09:34:30 -06:00
Syres916
32f7d08602 [Gui] Allow power users to set their own max toggle transparency 2025-01-20 11:43:18 -05:00
Kacper Donat
83807826cf Gui: Fix render order of datum planes 2025-01-20 11:38:57 -05:00
Kacper Donat
7a39746fa3 Gui: Fix crash on scrolling workbench tab bar in Qt 5.15.3 2025-01-20 11:34:17 -05:00
xtemp09
2fcbe6ee19 Fix the crash in the interface for managing preference packs (#18726)
* Fix the crash in the interface for managing preference packs

Closes #18725

* Modernize the code by removal of redundant void
2025-01-20 10:32:47 -06:00
Mark Ganson TheMarkster
49b304ae55 [Python console] add Execute in console context menu item (#18716)
* [Python console] add Execute in console context menu item

* Update src/Gui/PythonEditor.cpp

Co-authored-by: Kacper Donat <kadet1090@gmail.com>

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
Co-authored-by: Kacper Donat <kadet1090@gmail.com>
2025-01-19 15:36:33 -06:00
Chris Hennes
d1c860e735 Merge pull request #18809 from wwmayer/datum_fixes
Datum fixes
2025-01-19 16:01:18 -05:00
xtemp09
37c47ef972 Prevent selection of an item in TreeWidget when user presses an eye icon
Closes #18922
2025-01-19 14:35:32 -05:00
Bas Ruigrok
fb85c92dd0 Gui: Fix camera position shift when starting rotation 2025-01-19 14:34:31 -05:00
Chris Hennes
be2a45e767 Merge pull request #18783 from tritao/cmake-coin-target
CMake: Coin3D build fixes
2025-01-18 12:50:57 -05:00
tritao
08c1275ec4 Gui: Introduce Gui::Document::createView to Python. 2025-01-17 12:35:14 -06:00