Commit Graph

35365 Commits

Author SHA1 Message Date
sliptonic
249bca2ef4 Merge pull request #11673 from bgbsww/bgbsww-patch-20
Tweak section tolerance to make base layer of paths work again
2023-12-11 11:12:31 -06:00
IMO
256820ac97 bugfix: exit() is not async-signal-safe! 2023-12-11 18:10:41 +01:00
sliptonic
4064afdb8d Merge pull request #11670 from mwganson/macroexecute
[Core][MacroExecuteDialog]File chooser should be folder chooser for s…
2023-12-11 11:10:28 -06:00
bgbsww
851e78753b Add missing initialization of MirrorPlane on non sketch objects (#11638) 2023-12-11 11:07:03 -06:00
sliptonic
3f33cec4ee Merge pull request #11633 from mwganson/partmirroring
[Part::Mirror] fix bug where selection gate was not getting removed o…
2023-12-11 11:05:56 -06:00
Adrián Insaurralde Avalos
b0fdc497ad Merge pull request #11599 from oursland/ci-update
CI: Add CMake Presets, Ubuntu-conda, Windows-conda, and macOS-conda.
2023-12-11 14:01:04 -03:00
Rohan Mishra
e3bb0afd34 Update ShapeFix_WirePy.xml
Fix the issue and Update ShapeFix_WirePy.xml.
2023-12-11 17:43:46 +01:00
Rohan Mishra
21e992932d Update ShapeFix_WirePy.xml
Issues #11184

Updated the docs of ShapeFix_WirePy.xml
2023-12-11 17:43:46 +01:00
André Caldas
560898907b Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.

The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).

Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".

The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Roy-043
1b53610b8e Merge pull request #11702 from Roy-043/Draft-increase-DXF-Python-library-version-to-1.42
Draft: increase DXF Python library version to 1.42
2023-12-11 13:02:10 +01:00
Roy-043
4ed43a2458 Draft: increase DXF Python library version to 1.42
See: https://github.com/yorikvanhavre/Draft-dxf-importer/pull/28
2023-12-11 12:40:47 +01:00
Roy-043
4262da5fc1 Draft: new get_param function with defaults
This PR introduces a new get_param function. For its default values it checks a dictionary largely filled by reading the preferences UI files. The goal is to have all defaults in one place to avoid inconsistencies. The dictionary is created once and then stored in a global variable.

Once merged this function will be implemented in Draft and Arch. The get_param function in utils.py will become obsolete.

Related issue: #10176
2023-12-11 10:18:50 +01:00
Roy-043
ac7a409d1d Merge pull request #11696 from Roy-043/Draft-minor-improvement-to-prefs-layouts
Draft: minor improvement to prefs layouts
2023-12-10 15:44:22 +01:00
Roy-043
839bf41f1a Draft: minor improvement to prefs layouts 2023-12-10 15:22:43 +01:00
Roy-043
0e5d2c46f0 Merge pull request #11694 from Roy-043/Draft-Introduce-DefaultAnnoScaleMultiplier-parameter
Draft: Introduce DefaultAnnoScaleMultiplier parameter
2023-12-09 19:40:53 +01:00
Roy-043
56b8f76cfb Draft: Introduce DefaultAnnoScaleMultiplier parameter
This parameter replaces DraftAnnotationScale.

The parameter can be changed in the preferences and with the Draft_SetStyle command.
2023-12-09 19:17:36 +01:00
Abdullah Tahiri
05585a6e73 NotificationArea: Fix Lints 2023-12-09 11:06:04 +01:00
Abdullah Tahiri
719986c62a Notification Area: Group same message under a single line
=========================================================

issue #11183

Feature request.

Instead of repeating over and over again the same message, indicate the number of consecutive repetitions in a single message.
2023-12-09 11:06:04 +01:00
Abdullah Tahiri
14393bf20f App: PropertyStandard - make developer warning only for the developer
=====================================================================

Issue #11183

- The message is not useful for the user in terms of content.
- The user can do nothing about it, but move on.
2023-12-09 11:06:04 +01:00
xtemp09
ee7f0911ef [Sketcher] Fix crash described in #10975 2023-12-09 11:05:16 +01:00
Roy-043
dc7fe42733 Merge pull request #11688 from Roy-043/Draft-use-MarkerSize-for-snap-and-tracker-markers
Draft: use MarkerSize for snap and tracker markers
2023-12-08 21:39:21 +01:00
Roy-043
a6cd89f746 Draft: use MarkerSize for snap and tracker markers 2023-12-08 21:17:34 +01:00
Roy-043
32a0e0c6ae Merge pull request #11685 from Roy-043/Draft-remove-maxSnap-parameter
Draft: remove maxSnap parameter
2023-12-08 13:49:37 +01:00
Roy-043
c0e774f15c Draft: remove maxSnap parameter
It is superfluous. The maxSnapEdges parameter can be set to zero.
2023-12-08 12:06:36 +01:00
Syres916
5c2eedbd14 [TechDraw] Add missing quotation marks 2023-12-07 19:55:01 -05:00
Syres916
b0e43fe759 [TechDraw] Fix Lint Warning 2023-12-07 19:55:01 -05:00
Syres916
60066382fc [TechDraw] Fix Lint Warnings 2023-12-07 19:55:01 -05:00
Syres916
c81435c615 [TechDraw] Collect doc info to fill template fields 2023-12-07 19:55:01 -05:00
pavltom
ba236d0b94 [TechDraw] Use OCC to split intersecting edges 2023-12-07 10:14:30 -05:00
edi271
0c0c3d0e86 [TD] Improve AxoLengthDimension tool 2023-12-07 09:24:09 -05:00
edi271
4efa774f12 [TD] Extend utils by two more functions 2023-12-07 09:24:09 -05:00
bgbsww
b32f089bff Tweak section tolerance to make base layer of paths work again 2023-12-06 19:32:26 -05:00
luzpaz
855aa453a0 Fix typos 2023-12-06 14:53:48 -05:00
wandererfan
1593fe5247 [TD]fix line standard drop downs 2023-12-06 14:52:54 -05:00
wandererfan
b450a62ef5 [TD]fix section scale
- scale field in ui was QuantitySpinBox which is wrong for
  dimensionless number.
- section view scale was being set at only GlobalDecimals
  precision.
2023-12-06 14:52:54 -05:00
mwganson
795613e6cc [Core][MacroExecuteDialog]File chooser should be folder chooser for selecting user macro directory 2023-12-06 12:34:13 -06:00
David Carter
09f67f2f6b Material: Material editor enhancements
Continues the work of the material subsystem improvements.

This merge covers the continued development of the material editor. The
primary improvements are the addition of new data types, a new
appearance preview UI, and changes in the array data types.

New data types were added to support more advanced workflows, such as
the Render Workbench.The Image datatype allows the material to embed
the image in the card instead of pointing to an image in an external
file. Multi-buyte strings span multiple lines as the name implies.
It preserves formatting accross those lines. Also several list types
are now supported, with the primary difference being the editors.
List is a list of strings, FileList is a list of file path names, and
ImageList is a list of embedded images.

For the appearance preview, the UI now uses the same Coin library as
is used in the documents, meaning the preview will look exactly the
same as the material will be shown in the documents.

The array data types are now more complete. The default value wasn't
being used as originially envisioned and was tehrefore removed. For
3D arrays, the Python API was implemented.

There were a lot of code clean ups. This involved removing logging
statements used for debugging during development, reduction of lint
warnings, and code refactoring.

The editor can automatically convert from previous format files to the
current format. This has been extended to material files generated by
the Render WB. Old format files are displayed in the editor with a
warning icon. Selecting one will require saving the file in the new
format before it can be used.
2023-12-06 08:48:34 -06:00
edi271
008fc3297a [TD] Connect to TechDraw 2023-12-06 08:50:59 -05:00
edi271
ec6e0de662 [TD] New command and task panel 2023-12-06 08:50:59 -05:00
edi271
7f17eaaec9 [TD] Extended utility tools 2023-12-06 08:50:59 -05:00
edi271
d75e7fbcf3 [TD] Icon and dialog file 2023-12-06 08:50:59 -05:00
Roy-043
cbdb8b6aeb Merge pull request #11663 from Roy-043/Draft-remove-the-Draft_ToggleContinueMode-command
Draft: remove the Draft_ToggleContinueMode command
2023-12-05 23:30:48 +01:00
Roy-043
640bd5cf26 Draft: remove the Draft_ToggleContinueMode command
Rarely used as Continue mode can also be checked in the task panel of Draft commands.
2023-12-05 22:31:44 +01:00
Syres916
3eed1107c8 [Techdraw] Add missing Line Styles to CMakeLists.txt 2023-12-05 09:37:03 -05:00
Roy-043
09f7446ec4 Sketcher: Sketcher_Offset: menu text and shortcut
* Menu text "Offset geometry" (singular).
* Shortcut "Z, O" was already in use. Changed to "Z, T".
2023-12-05 15:25:52 +01:00
bgbsww
a1c08dbf43 Move the unit schema into Project Information and remove all Project Unit System code (#11266)
* Add unit system to Project Information and store with document.

* Remove the project unit system

* Restore correct document activation signalling to fix test fail

* Remove commented out dead lines

* Restore ignore option for project unit schemas

* Whitespace fix

* Refresh after changing units

* Remove field label

* Property editor changes applied to unit system
2023-12-04 13:04:53 -06:00
mwganson
4dddfa79fb [Part::Mirror] fix bug where selection gate was not getting removed on cancel button clicked 2023-12-04 12:40:10 -06:00
sliptonic
2214819b86 Merge pull request #11499 from Syres916/Sanity_CycleTime_Fix
[Path] Sanity, change default zero CycleTime from float to string
2023-12-04 12:00:15 -06:00
Jacob Oursland
f6465f5c1f CMake: permit ccache with conda. 2023-12-04 10:15:08 -07:00
Jacob Oursland
1304f48fd6 CI: Use Ninja build on Ubuntu 20.04. 2023-12-04 10:15:08 -07:00