Commit Graph

35343 Commits

Author SHA1 Message Date
Rohan Mishra
cf3f2dcda0 Update ShapeFix_WirePy.xml
Fix the issue and Update ShapeFix_WirePy.xml.
2023-12-11 17:43:46 +01:00
Rohan Mishra
94b7c48dbe Update ShapeFix_WirePy.xml
Issues #11184

Updated the docs of ShapeFix_WirePy.xml
2023-12-11 17:43:46 +01:00
André Caldas
89dbab9b0e 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
7bee0fbde6 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
ea59cce36e 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
4d00c0f43c 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
135fe61d7d 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
f7fa76b975 Draft: minor improvement to prefs layouts 2023-12-10 15:22:43 +01:00
Roy-043
f1f3530f44 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
79eaa01032 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
56377cd09e NotificationArea: Fix Lints 2023-12-09 11:06:04 +01:00
Abdullah Tahiri
a63540e845 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
b52d05b11a 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
af68c8c1dc [Sketcher] Fix crash described in #10975 2023-12-09 11:05:16 +01:00
Roy-043
6e4caafc4f 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
6e86e9efa2 Draft: use MarkerSize for snap and tracker markers 2023-12-08 21:17:34 +01:00
Roy-043
f85d5e691a 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
770eb5e64a Draft: remove maxSnap parameter
It is superfluous. The maxSnapEdges parameter can be set to zero.
2023-12-08 12:06:36 +01:00
Syres916
e0494febb4 [TechDraw] Add missing quotation marks 2023-12-07 19:55:01 -05:00
Syres916
207f2c7714 [TechDraw] Fix Lint Warning 2023-12-07 19:55:01 -05:00
Syres916
d7ee7c7c03 [TechDraw] Fix Lint Warnings 2023-12-07 19:55:01 -05:00
Syres916
94b201309e [TechDraw] Collect doc info to fill template fields 2023-12-07 19:55:01 -05:00
pavltom
10f4cd8cc5 [TechDraw] Use OCC to split intersecting edges 2023-12-07 10:14:30 -05:00
edi271
111bcc1b0c [TD] Improve AxoLengthDimension tool 2023-12-07 09:24:09 -05:00
edi271
cfc1cf2f91 [TD] Extend utils by two more functions 2023-12-07 09:24:09 -05:00
luzpaz
d584643a05 Fix typos 2023-12-06 14:53:48 -05:00
wandererfan
efd3407dd8 [TD]fix line standard drop downs 2023-12-06 14:52:54 -05:00
wandererfan
fb128a3f4d [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
David Carter
3dd6a67804 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
703561f7bc [TD] Connect to TechDraw 2023-12-06 08:50:59 -05:00
edi271
db7639c186 [TD] New command and task panel 2023-12-06 08:50:59 -05:00
edi271
55f8e45d02 [TD] Extended utility tools 2023-12-06 08:50:59 -05:00
edi271
1c8affd0f4 [TD] Icon and dialog file 2023-12-06 08:50:59 -05:00
Roy-043
cd958b7a54 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
26adc417a9 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
5d64833d5c [Techdraw] Add missing Line Styles to CMakeLists.txt 2023-12-05 09:37:03 -05:00
Roy-043
83fbcf4239 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
c2bab7a2fa 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
sliptonic
0aa328622d 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
Kacper Donat
5f97079a33 Gui: Cap starting height of Preferences dialog
This commit ensures that preference windows does not start taller than available geometry.
2023-12-04 11:03:35 -06:00
wmayer
f8c3e5505a Gui: fix several lint warnings 2023-12-04 10:53:51 -06:00
wmayer
e8d6955908 Gui: refactor FCSphereSheetProjector 2023-12-04 10:53:51 -06:00
mosfet80
f9f1f88426 casts clean (#11548)
* remove unecessary casts

clean unused code

revert  example py code

* [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>
2023-12-04 10:51:36 -06:00
Bas Ruigrok
ea8b5b4b39 Gui: Add a separate checkbox for enabling spinning animations (#11534)
* Gui: Create group box for animation preferences

* Gui: Add spinning animation checkbox

* Gui: Implement isAnimating() for NavigationAnimator

* Gui: No need to enable animations in DemoMode

The spin animation is played regardless of the user preference and does not need to be enabled before starting the spin animation

* Gui: Change comment
2023-12-04 10:50:29 -06:00
Chris Hennes
b70eb6a173 Merge pull request #11507 from Ondsel-Development/constr_primitives
[Sketcher] Improve angle & radius constraint rendering
2023-12-04 10:48:20 -06:00
Chris Hennes
bd9a210b65 Merge pull request #11494 from Ondsel-Development/Coincident
[Sketcher] Introduce an optional unified version of coincident and pointOnObject
2023-12-04 10:46:21 -06:00
Max Wilfinger
d491ac0865 Renaming FEM mesh region to mesh refinement (only Users POV / tooltips) (#11489)
* project to document on information, merge, util

* rename MehRegion to MeshRefinement (tooltip/user PoV only)
2023-12-04 10:41:04 -06:00
Ajinkya Dahale
518b48ffaf [PD] Set up-to-face when opening revolution/grove task box 2023-12-04 13:40:31 -03:00
Ajinkya Dahale
48a1db8a76 [PD] Fix wrong mode options when opening existing revolution
Only the "Dimension" options showed regardless of what mode was selected.
2023-12-04 13:40:31 -03:00
Abdullah Tahiri
c34bc88d66 Sketcher: Solver - Remove outdated request for reporting 2023-12-04 16:32:23 +01:00