Commit Graph

6244 Commits

Author SHA1 Message Date
Chris Hennes
9c99e73d65 Navlib: Eliminate compiler warnings
A few unused variables, and a few cases where clang would prefer it be made clear that an initializer is initializing two separate sub-objects, rather than using a flat list.
2025-03-31 17:47:23 +02:00
Alfredo Monclus
487c62a663 Gui: fix Inputfield valid/invalid icon placement and size (#20466)
* Gui: fix inputfield icon size placement

* chore:Update inputfield comment to be more clear

Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com>

---------

Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com>
2025-03-31 00:14:19 +02:00
Chris Hennes
e7156aa326 Merge pull request #20496 from hyarion/refactor/cppify-constants 2025-03-29 18:43:40 -05:00
Kacper Donat
caab5fba78 Gui: Fix saving light sources 2025-03-29 14:14:04 -05:00
Benjamin Nauck
34bc1d45ea Gui: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
Andrea
2f5f8f32e7 Remove old Coin code <=3
ubuntu 22.04 use libcoin v 4. https://launchpad.net/ubuntu/jammy/+package/libcoin-dev
2025-03-29 12:16:09 +01:00
João Martins
83c1c76b04 Assembly: Allow more than one assembly deactivation (#20461)
Fixes #18631.
2025-03-26 19:25:53 +01:00
Syres916
06b0cbc59f [Gui] Fix Seg Fault when deleting a Link Array 2025-03-26 17:44:49 +01:00
xtemp09
9d9ee7d9c3 Disconnect signals in destructor to avoid the assert
Closes #20272.
2025-03-26 17:42:34 +01:00
Ladislav Michl
56bcc0fc55 Gui: Language: Sort mapLanguageTopLevelDomain 2025-03-25 18:29:11 +01:00
Furgo
4bb372ef87 Start: set specific zoom level for new BIM projects (#20271)
* Gui: allow viewDefaultOrientation function to accept the None value, as per the docstring

* Start, BIM: set specific zoom level for new BIM projects
2025-03-25 09:36:43 +01:00
Chris Hennes
50bc99c3eb Merge pull request #20428 from pieterhijma/fix-doxygen-structural-warnings
Fix doxygen structural warnings
2025-03-24 21:07:53 -05:00
Joao Matos
74493358da Gui: Remove XML binding files. 2025-03-24 22:47:33 +01:00
Joao Matos
0206ff59cd CMake: Fix build dependency tracking for Python bindings generation.
This caused a rebuild to always happen due to incorrect dependency
tracking.

Fixes https://github.com/FreeCAD/FreeCAD/issues/20402.
2025-03-24 21:43:31 +01:00
j-hap
aa725c6866 TechDraw: Replace annotation edit dialog with QPlainTextEdit (#20092)
* TechDraw: Replace annotation edit dialog with QPlainTextEdit

* Remove useless include introduced in previous commit

* Remove trailing _ for members to conform with rest of the codebase

* Add const & to string vectors that don't need copying

* Fix IWYU linter warnings

* Forward all annotation double clicks to the StringList property editor

* Remove unused dialog

* Fix Qt 5 build error

* Fix missing exports with MSVC
2025-03-24 13:27:55 -04:00
Kacper Donat
4c5c88bcf4 Gui: Remove -1 min-width from dialog buttons
This ensures that minimum width from QStyle is still applied while buttons still respect minimum size hint
2025-03-24 12:25:56 -05:00
tritao
7cbbe403cc Gui: Convert XML bindings to Python API bindings model.
This converts the existing XML binding files to the new Python bindings
generator model.
2025-03-24 11:56:53 -05:00
Pieter Hijma
00428ff014 [Doc] Fix multiple use section label 2025-03-24 16:33:54 +01:00
Chris Hennes
97638e0c82 Gui: Check return value from getDetail()
Coverity issue 251377. Every other use of this method follows this idiom, update the last call to match.
2025-03-23 22:47:30 +01:00
Chris Hennes
90432f967f Gui: Eliminate implicit capture of this via =
Per clang: "implicit capture of 'this' with a capture default of '=' is deprecated"
2025-03-23 18:23:37 +01:00
Chris Hennes
a546517588 Gui: Check return value
Coverity issue 513113
2025-03-23 08:51:38 +01:00
Bas Ruigrok
ffc12e2892 Gui: Align to selection using a smaller rotation 2025-03-22 11:35:46 -05:00
xtemp09
b3008feaa1 [Spreadsheet] Fix input in expression editor (#19934)
* [Spreadsheet] Fix input in expression editor

Closes #19804

* [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>
2025-03-22 11:25:17 -05:00
Chris Hennes
28e07eeda5 Gui: Don't allow manipulator to delete the menubar
Same for the toolbar or context menu.
2025-03-22 07:15:15 +01:00
Alfredo Monclus
02f37bf598 Gui: spinbox use getmargin 2025-03-20 14:23:36 +01:00
Alfredo Monclus
ad95704832 Gui: spinbox add patch for qt<6.3 2025-03-20 14:23:36 +01:00
Alfredo Monclus
1012b66f4f Gui: fix spinbox numbers should not go under the icon 2025-03-20 14:23:36 +01:00
Alfredo Monclus
6693947ca1 Gui: correct the size and position of the expression (fx) icon 2025-03-20 14:23:36 +01:00
Guillaume Roguez
e127f2c884 fix dialogs button size in case of long text
Let the layout engine computes the size of all QPushButton by unset
the minimalSize value set by "min-width" QSS property in themes.

Fix #18019.
2025-03-19 13:37:47 +01:00
Chris Hennes
64d658e38a FreeCAD: Compiler warning fixes 2025-03-19 10:13:34 +01:00
Chris Hennes
c1ada6bc40 App: Coverity fixes 2025-03-18 15:59:22 +01:00
Chris Hennes
e574fa1efc Merge pull request #19899 from tritao/cmake-cleanup-targets
CMake: Cleanup targets with transitive dependencies
2025-03-17 13:15:37 -05:00
Benjamin Bræstrup Sayoc
d80795b2e4 Gui: fix centering in color button 2025-03-17 15:19:00 +01:00
tritao
6c2c6847eb CMake: Cleanup targets with transitive dependencies 2025-03-17 12:12:06 +00:00
Chris Hennes
5f623390fb Merge pull request #20142 from bofdahof/ranges
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
Chris Hennes
42cc0d93be Merge pull request #20160 from karliss/popup-parent
Add missing parent for messagbox and other popups.
2025-03-17 00:16:49 -05:00
Chris Hennes
4fcdac28fb Merge pull request #19583 from hyarion/refactor/base-type
Refactor Base::Type
2025-03-17 00:03:22 -05:00
Chris Hennes
ca4f99103b Merge pull request #20172 from PaddleStroke/patch-17
Sketcher: Fix negative angle rendering negative bug
2025-03-17 00:02:37 -05:00
Chris Hennes
8d29aabe4d Merge pull request #19924 from benj5378/codeDupEditor
Gui: avoid code duplication in PythonEditor
2025-03-17 00:02:03 -05:00
Chris Hennes
fd4fd6ccf7 Merge pull request #19890 from Shkolik/sketcher_defining_color
Sketcher: Preference color added for External defining geometry
2025-03-17 00:00:02 -05:00
Chris Hennes
b89ad30bc0 Merge pull request #19917 from tritao/refactor-document-recompute
Core: Refactor code around document and feature recompute
2025-03-16 23:59:12 -05:00
Chris Hennes
8d3c98c6b3 Merge pull request #20191 from mosfet80/patch-12
clean  Gui/CMakeLists.txt
2025-03-16 23:57:01 -05:00
bofdahof
e5b06ae736 Gui: apply std::ranges 2025-03-16 17:15:14 -05:00
Karliss
fa61131590 Add missing parent for messagebox and other popups
Unparented popups can easily get lost in backround, but they still block top level event loop when run with ::exec() thus preventing interactions with main window.  This mainly happens on wayland. Setting the parent ensures they are always kept on top and reasonably positioned.
2025-03-16 16:02:36 -05:00
Luz Paz
17102251e5 Fix various typos 2025-03-14 12:37:12 -04:00
mosfet80
3d674ed27e clean Gui/CMakeLists.txt
clean code
2025-03-14 09:20:02 +01:00
Chris Hennes
dced463dc6 Merge pull request #19428 from tritao/base-tracy-profiler
Base: Add Tracy frame profiling support.
2025-03-14 04:12:05 +00:00
Joao Matos
7ae14d6bd5 Base: Add build support and instrumentation for the Tracy profiler. 2025-03-14 03:41:30 +00:00
PaddleStroke
0900baaf10 Sketcher: Fix negative angle rendering negative bug 2025-03-13 15:28:23 +01:00
Benjamin Bræstrup Sayoc
e397c73a45 Gui: avoid code duplication in PythonEditor 2025-03-13 14:23:05 +01:00