Commit Graph

6592 Commits

Author SHA1 Message Date
wmayer
5d3f9cac3f Measure: Implement quick measure as command and make it toggable
The quick measure can considerably slow down the system when selecting
part elements. With this change the user is able to turn off this
bottleneck.
2025-08-25 09:21:33 +02:00
Max Wilfinger
04e9baf533 Fix UI strings reported on Crowdin (#23297)
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-08-25 06:10:53 +00:00
mosfet80
475dd13052 Clean SoDatumLabel.cpp (#23217)
* Clean SoDatumLabel.cpp

removed unused variables

* Update SoDatumLabel.cpp
2025-08-24 23:00:29 -05:00
Kacper Donat
9e0badc8a5 Gui: Fix Document Recovery screen 2025-08-24 22:32:24 -05:00
wmayer
ecd7a47b4a Gui: Hold the GIL when clearing the form attribute
Inside TaskDialogPython::clearForm() the interpreter may execute a lot of things where at the some point the GIL must be hold.

This very likely fixes https://github.com/FreeCAD/FreeCAD/issues/22863

@thyssentishman
Please check this branch
2025-08-24 22:17:10 -05:00
Max Wilfinger
9fe682e2cf Gui: Change default WB list in preferences 2025-08-24 21:23:41 -05:00
Max Wilfinger
9fc40b33de Fix source string mistakes reported on Crowdin (#23157)
* Fix source string mistakes reported on Crowdin

* Update src/Mod/Draft/Resources/ui/TaskPanel_CircularArray.ui

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/Resources/ui/TaskPanel_CircularArray.ui

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/draftfunctions/upgrade.py

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/draftfunctions/upgrade.py

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/draftguitools/gui_downgrade.py

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/Resources/ui/TaskPanel_SetStyle.ui

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

---------

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
2025-08-24 20:51:32 -05:00
Bas Ruigrok
21d0e8af5f Gui: Perspective camera set focal distance to rotation center depth to fix zooming at new rotation center 2025-08-24 20:49:42 -05:00
Roy-043
78f4d60dab Core: 2 Report View context menu items to Title Case 2025-08-24 13:06:39 +02:00
Roy-043
4680127a84 Update DlgSettingsGeneral.ui 2025-08-21 20:47:55 +02:00
tetektoza
564e79b890 Gui: Don't use this pointer after valueChanged in EditableDatumLabel
Simple fix for such a simple error I didn't see. Basically,
`valueChanged` signal can result in EditableDatumLabel being deleted
(for example, when we are on the last OVP and all of the OVPs have been
accepted). This could result in crashes as reported in previous issues,
because just after emitting this signal we were trying to use `this` pointer,
which wasn't available anymore as we deleted EditableDatumLabel obj that
was attached to it, so in essence we were dereferencing some random
address.

Fix for that is simple - move the check for `hasFinishedEditing` flag to
check locked appearance in `validateAndFinish` lambda, as it already
does validation and this way we will avoid referencing internals (which
could be deallocated) after emitting this signal.
2025-08-19 19:33:20 -05:00
Chris Hennes
3e1cc8302a Update translations 2025-08-18 17:55:24 +02:00
captain0xff
ed770bf849 Sketcher: fix cropping of some icons on hidpi screens 2025-08-18 01:02:13 +02:00
luzpaz
a55366e86e GUI: start cleaning up Parameter Editor
Begins to address a few issues brought up in #17351
2025-08-17 19:25:48 +02:00
Kacper Donat
8185d01771 Gui: Add GuiExport to SoToggleSwitch 2025-08-14 06:11:28 +02:00
Kacper Donat
5fabb1372d Sketcher: Fix dimension extension overshoot length 2025-08-13 22:43:58 +02:00
Kacper Donat
2f1d96bf44 Gui: Add ParameterDefinition to Style Parameters
This adds a way to define parameters within code, that allows developers
to easily encapsulate the parameters and their default values.
2025-08-12 22:04:23 +02:00
Kacper Donat
0cce9c1261 Gui: Make StyleParameterManager::resolve return optional result
This changes the resolve method of style parameter manager to return
optional intead of definitive result. In reality tokens may not be
defioned correctly and optionals provide a good way to nicely handle
defaults.
2025-08-12 22:04:23 +02:00
Kacper Donat
322ed2c7bc Gui: Rename StyleParameters::Length to StyleParameters::Numeric
This change gives a better name to the parameter type that is used to
store numeric values. Before it was called length, but it can store
other quantities as well so the name is no longer fitting.
2025-08-12 21:25:41 +02:00
Kacper Donat
cf55183ece Gui: StyleParameters - use Base::Color instead of QColor
If possible we should prefer using our own classess instead of ones
coming from frameworks. This changes Style Parameters to use Base::Color
class instead of QColor. Calculations are still done using QColor but
the data is always exposed as Base::Color.
2025-08-12 21:25:41 +02:00
theo-vt
44a8ec2b65 Core: Add setting to hide the TaskWatcher (#22857)
* Core: Add setting to hide the TaskWatcher

* Move setting to Display/UI

* Clarify option description

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

* Use sentence case for section title

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

---------

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2025-08-11 21:38:58 +02:00
Kacper Donat
5361532de7 Gui: Restore proper object names for panels 2025-08-11 18:40:25 +02:00
PaddleStroke
53f1f112e0 Core: Fit all : Do not process SoSkipBoundingGroup 2025-08-11 10:38:26 -05:00
paddle
35f151d99e Sketcher: Refactor TaskSketcherMessages to move most of the logic into Core to be reused by Assembly 2025-08-10 15:17:35 +02:00
paddle
ccb28af4a1 Sketcher: Rename "Solver messages" to "Sketch edit". Add setting button to the solver message box. In which there're grid, snap and ordering widgets. 2025-08-10 15:15:53 +02:00
Pieter Hijma
5a842e93f5 Gui: Add support for renaming properties 2025-08-10 11:37:11 +02:00
Syres916
32ddaff649 [Gui] add carriage return to warnings 2025-08-08 06:51:18 -05:00
Max Wilfinger
70f4221993 Fix missed strings for UI consistency
Fix ellipsis rendering
2025-08-08 06:37:59 -05:00
Krzysztof
ec2bf69135 Core: Fix 'Expression' and 'Vector' editor outhanging the screen (#22426)
* Core: Fix Expression dialog outhanging main window

Expression dialog is now fully shown inside main window, even if opened from model panel positioned on right side. If Model panel is outside main window, dialog is opened over this panel.

* Core: Fix Vectors dialog outhanging main window

Vectors dialog is now fully shown inside main window, even if opened from model panel positioned on right side. If Model panel is outside main window, dialog is opened over this panel.

* Core: Simplify 'adjustDialogPosition()'

Change suggested and authored by @hyarion
2025-08-07 19:22:28 +02:00
Benjamin Nauck
78e5dc9e21 Gui: Fix null check issue in navlib 2025-08-07 16:51:23 +02:00
Max Wilfinger
321cc5ced5 Gui: Fix crash with navlib
Co-authored-by: @hyarion
2025-08-07 12:11:14 +02:00
Ladislav Michl
f1032b47d4 Gui: Fix about image path
Merge of a4d4a8e7d6 accidentally didn't drop change to DlgAbout path.
Nothing sets AboutImageDev congfig key, so partially revert said commit.

Fixes: a4d4a8e7d6 ("Gui: Add about image for dev version")
2025-08-06 08:22:45 -05:00
qewer33
a4d4a8e7d6 Gui: Add about image for dev version
Co-authored-by: ein-shved <yury.shvedov@kaspersky.com>
Co-authored-by: Ladislav Michl <ladis@triops.cz>
Co-authored-by: qewer33 <qewer33@proton.me>
Co-authored-by: 3x380V <i58604845+3x380V@users.noreply.github.com>
2025-08-05 17:33:05 -05:00
Matthias Danner
377ccbdf54 Fix drawing of angle constraints beyond the centerpoint and for negative angles 2025-08-05 23:41:30 +02:00
Kacper Donat
b311137b74 Merge pull request #22916 from kadet1090/all-string-changes
All: Update UI strings for consistency
2025-08-05 01:20:35 +02:00
Benjamin Nauck
a10a52e36b Merge pull request #21723 from B0cho/CORE_Skip_recompute_command
CORE: 'Skip recompute' command added
2025-08-04 22:48:18 +02:00
Max Wilfinger
ecf02b7878 Gui: Update UI strings for consistency
Closes: #22135
2025-08-04 20:14:45 +02:00
Max Wilfinger
b7a65220a3 DAGView: Update UI strings for consistency
Closes: #22771
2025-08-04 20:12:54 +02:00
Benjamin Nauck
37a653ef33 Gui: Remove toggleskiprecomputes todos 2025-08-04 19:17:15 +02:00
tetektoza
44b3686459 Sketcher: Make ArcLength constraint more interactable 2025-08-02 19:54:00 +02:00
tetektoza
ba0e9ac5a8 Sketcher: Make symmetric constraint more interactable 2025-08-02 19:54:00 +02:00
tetektoza
36e6808d34 Sketcher: Make angle constraint more interactable 2025-08-02 19:54:00 +02:00
tetektoza
c7e96a2168 Sketcher: Make radius/diameter constraint more interactable 2025-08-02 19:53:48 +02:00
tetektoza
e2b8ebab41 Sketcher: Make distance constraint more interactable
As the title says, this patch aligns selectability to what we actually
draw, so from now on extension lines and arrowheads will be also
selectable.
2025-08-02 19:52:33 +02:00
MisterMaker
7ded6608c6 Stylesheet: Update QComboBox and QListView styles for varset dialog (#22861)
* Update QComboBox and QListView styles

Fixed issue with Varset dialog which was using the same object as the workbench combobox. So I directed the general version to the workbench combobox and changed the general setting to more normal version.

* Update selected item background in QListView

Changed the background color for selected QListView items from @AccentBackgroundHoverColor to @GeneralBackgroundHoverColor for improved visual consistency.

* Unify selection and hover styles in views

Updated QListView, QTableView, QTreeView, and QColumnView item selection to use @AccentBackgroundColor for consistency. Changed hover states for these views to use @AccentHoverColor, improving visual coherence across the UI.

* shouldn't be in there yellow
2025-08-02 14:56:31 +02:00
Pieter Hijma
d4303f19ca Core: Support enum editor in VarSet dialog 2025-07-31 13:43:31 +02:00
Yorik van Havre
7766b215d4 Merge pull request #22251 from furgo16/dxf-new-import-ui-and-more
Redesign DXF import UI, add Part primitives and Draft object import modes
2025-07-28 17:49:25 +02:00
Lee Matos
fcd1b923b3 Gui: Fix #12199 missing font family Courier on MacOS 2025-07-28 10:17:18 +02:00
Furgo
f2e9a7f62e Gui: add 'Select group contents' context menu item (#22082)
* Gui: add 'Select group contents' context menu item

* Gui: remove dependency from Draft icon
2025-07-28 00:44:12 +02:00
paddle
013bbf1937 Core: TaskView: add updateWatcher when an object is set in edit. And add a timer when active document changes. 2025-07-27 21:17:28 +02:00