Commit Graph

5196 Commits

Author SHA1 Message Date
LemonBoy
395797d018 Avoid overriding ImagePlane size during import
When copying&pasting an ImagePlane whose ImageFile property is a
PropertyFile we'd get two updateData notifications, one when the
property value is restored (which doesn't do much as the file doesn't
exist yet) and another when the RestoreDocFile method is invoked.

The solution is simple, do not set Xsize and Ysize when importing the
object as we expect the properties to already have the correct values.

Closes #11036
2024-02-12 11:38:18 -06:00
André
4fb4288905 Resolve #12248: Remove redundant and non-functional selection checkbox preference (#12263)
Remove the selection checkbox preference from Display->UI.
The same preference exists under General->Selection.

When changing the preference and then applying the settings, it reverts
back to the value under General->Selection and thus is not usable.
2024-02-12 14:34:28 -03:00
mos
561803455e removed unused example 2024-02-12 11:12:25 -06:00
LemonBoy
8fc02829f1 Dim the Navigation Cube when not active
Implement the InactiveOpacity option, allowing the user to dim the
navigation cube when not focused by making it transparent.
2024-02-12 18:10:12 +01:00
Kacper Donat
bb52790710 Gui: Add ability to set coordinate system axis letter color
Fixes: #12172
2024-02-12 18:07:02 +01:00
Chris Hennes
516a7dd2af Merge pull request #12104 from Rexbas/navigation-fixes
Gui: Mouse navigation fixes
2024-02-12 10:56:35 -06:00
Adrian Insaurralde Avalos
ffb3fabd21 Fix warning in DlgMacroExecute.ui 2024-02-12 10:48:08 -06:00
Adrian Insaurralde Avalos
44f8772c89 Avoid sending unescaped quotes to python console 2024-02-04 16:44:25 -06:00
PaddleStroke
718a287447 SoDatumLabel: Add arrowheads to angles. And improve arrowhead rendering. 2024-02-01 14:27:07 +01:00
Roy-043
f3db28e2c4 Gui: "Default unit system" in title case in prefs 2024-01-30 17:27:24 +01:00
LemonBoy
ec26037aa9 Make the random color assignment undo-able
Create a transaction in the currently selected document to allow the
user to roll-back the color assignment.

Closes #11689
2024-01-30 17:15:32 +01:00
Rexbas
7fbd53f003 Gui: Prohibit interrupting a rubber-band selection in sketcher 2024-01-24 21:02:25 +01:00
Rexbas
eac036105e Gui: Prevent rubber-band selection when selection button is pressed after other buttons are pressed 2024-01-24 21:02:25 +01:00
Rexbas
a01818a0c5 Gui: Prevent showing the context menu after dragging, panning or zooming 2024-01-24 21:02:25 +01:00
Chris Hennes
63a6592f03 Merge pull request #12064 from bdieterm/fixPlaneTransparency
Gui: add explicit transparency specification
2024-01-23 21:33:20 -06:00
Chris Hennes
da0efefd83 Merge pull request #12054 from kadet1090/styling-elements-and-constraints-ui
Sketcher: Apply styling to elements and constraints UI
2024-01-23 08:40:48 -06:00
xtemp09
f1fe2bb3a8 Correction of #11775 2024-01-23 07:39:51 -06:00
Chris Hennes
05f425eab9 Gui: Add missing override 2024-01-22 12:26:50 -05:00
Chris Hennes
1ebcb6c99b Merge pull request #12012 from Ondsel-Development/radius_render_fix
[Sketcher] Improve rendering of arc-angle, line-angle, arc-distances and fix radius
2024-01-22 11:21:53 -06:00
Vincenzo Calligaro
1bd3b531aa [Core] [Preferences] Modernize for loop in DlgSettingsEditor.cpp (#12011)
* Preferences: modernize for loop in DlgSettingsEditor.cpp

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>

* Preferences: modernize for loop in DlgSettingsEditor.cpp
added textType and textColor variables to unpack range-for loops iterators

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>

* Update src/Gui/PreferencePages/DlgSettingsEditor.cpp

Minor linter updates, as suggested

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Gui/PreferencePages/DlgSettingsEditor.cpp

Minor linter updates, as suggested

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

---------

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-22 11:19:46 -06:00
Paddle
8889cc1163 Core: tree: prevent object replacement when dragging 2024-01-22 10:53:47 -06:00
xtemp09
fbb114c47c Fix occasional segmentation fault when exiting
Fixes #11521.
2024-01-22 10:49:52 -06:00
André Caldas
e6b5fd0a21 Does not rely on the pointervalue returned by getNameInDocument() to use as a DAG key.
In order to make getNameInDocument() always return a valid string,
we implement a getDagKey() method that shall be used instead of getNameInDocument()
when we want to use the pointer value as a "key" to identify the DocumentObject.
2024-01-22 10:40:24 -06:00
Ladislav Michl
d03a0dfcd7 Gui: Consolidate Python -> Qt class conversion 2024-01-22 06:58:17 +01:00
Ladislav Michl
3dd2fc8f0f Gui: Consolidate module error message in PythonWrapper 2024-01-22 06:58:17 +01:00
Kacper Donat
993248b4db Sketcher: Disable visibility checkbox for external geometry 2024-01-21 20:33:49 +01:00
bdieterm
abfe38e0e7 Gui: add explicit transparency specification 2024-01-21 17:41:31 +01:00
Chris Hennes
f2fbac8e5e Merge pull request #12024 from Ondsel-Development/property_rightclick
Core : Tree: Add 'Properties' action in contextual menu. Opens a prop…
2024-01-19 08:58:54 -06:00
Kacper Donat
1a4639f71f Gui: Fix scroll behaviour in preference pages selector
This fixes problem with scroll jumping after selecting page on bottom of
the pages tree view. It was caused by collapsing group of the current
item and then re-expanding it few lines after.

Fixes: #12000
2024-01-19 08:27:05 -06:00
Paddle
3b9a1f7949 SoDatumLabel : introduce distance arc helpers. 2024-01-19 11:13:09 +01:00
Paddle
f7798327cf Core: PropertyEditor : save properly the size of the first column. 2024-01-19 10:49:33 +01:00
Paddle
21905c0d62 Core: add property command, that shows property view. 2024-01-19 10:26:00 +01:00
Paddle
56bf4e7ebd Core : Tree: Add 'Properties' action in contextual menu. Opens a property dialog. 2024-01-17 17:00:55 +01:00
CalligaroV
adb1fcfed8 Preferences: reset preference pages parameters set without using "PrefWidgets" objects
Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-15 11:28:12 -06:00
Kacper Donat
cde5e00045 Gui: Reset scroll position after preference page change
As every page is contained in the same QScrollArea we must ensure that
after page is changed the scrolled area is scrolled back to top-left
corner.

Fixes: #11981
2024-01-14 20:19:48 -06:00
Syres916
8956452577 [Gui] Fix Status Bar Tooltip Visibility 2024-01-13 09:15:18 -06:00
Paddle
fe3437d8c4 Property editor: Hide headers and enable resizing on all cells. 2024-01-09 19:50:20 -06:00
Rexbas
317e8388ea Gui: Prohibit dragging using LMB in sketch mode for OpenSCAD style 2024-01-08 12:31:00 -05:00
sliptonic
4e22766a26 Merge pull request #11840 from maxwxyz/precise-toggle-command-description
Change the description of the default 'Toggle active object' command
2024-01-08 11:29:01 -06:00
sliptonic
b67b15fb21 Merge pull request #11750 from realthunder/FixActiveBody
Fix object path in active object when creating new body in App::Part
2024-01-08 10:47:45 -06:00
Max Wilfinger
44dfb959dc add placement command to context menu 2024-01-05 19:14:02 -06:00
Chris Hennes
74cdb9cae3 Merge pull request #11841 from Rexbas/navigation-context-menu-fixes
Right click context menu fixes
2024-01-05 10:03:57 -06:00
Kacper Donat
537d153173 Gui: Allow narrower preferences dialog
This commit introduces optional horizontal scrollbar, looses up the minimum size applied to dialog and narrows a dialog a little bit by default.
2024-01-05 09:46:16 -06:00
bdieterm
ddcf247489 Gui: fix ignored default shape color 2024-01-05 09:27:28 -06:00
Chris Hennes
fce7dea6f7 Update translations (#11886)
* Update 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-01-03 09:27:18 -06:00
Max Wilfinger
0652666321 use checkbox in menu item to display current object state and refactor the code 2023-12-28 11:30:49 +01:00
Rexbas
eafa1e519f Gui: Set processed true when right mouse released and hasDragged in TinkerCAD style 2023-12-27 15:30:10 +01:00
Rexbas
e7dbe221c1 Gui: Set processed true when right mouse released and hasPanned in OpenSCAD style 2023-12-27 15:29:57 +01:00
Max Wilfinger
a32d3b1046 Change the description of the default 'Toggle active object' command in the right click menu based on the current state of the selected object. 2023-12-27 09:10:30 +01:00
Rexbas
3e21fb9626 Gui: Only show context menu if not dragged in TinkerCAD navigation style 2023-12-26 22:03:02 +01:00