Commit Graph

35322 Commits

Author SHA1 Message Date
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
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
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
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
Kacper Donat
cc45f48912 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
d9f680f901 Gui: fix several lint warnings 2023-12-04 10:53:51 -06:00
wmayer
0d079c885c Gui: refactor FCSphereSheetProjector 2023-12-04 10:53:51 -06:00
mosfet80
eda7e134ea 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
9e2577bce7 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
6c3e002be5 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
fe0f96ca44 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
a1f0674020 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
f66261b598 [PD] Set up-to-face when opening revolution/grove task box 2023-12-04 13:40:31 -03:00
Ajinkya Dahale
8023c0595d [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
779af0aa2f Sketcher: Solver - Remove outdated request for reporting 2023-12-04 16:32:23 +01:00
MisterMaker
650521fb53 [Stylesheets] Fix for new settings menu (#11609)
It can probably use some more tweaks but this way it is bug free.
2023-12-04 11:44:05 -03:00
Roy-043
12211aacbb Draft: menu texts to sentence case 2023-12-04 10:44:59 +01:00
Syres916
fc38f35220 [Start] Fix regression from d565796f96
for runtime error see https://github.com/FreeCAD/FreeCAD/pull/11513#issuecomment-1837300296
2023-12-04 10:43:37 +01:00
Jacob Oursland
b1f2aae6fa VSCode: Change setup conda environment task type to process. (#11556) 2023-12-04 01:07:32 -03:00
Jacob Oursland
9bf922e116 conda: Remove conda-build and conda-smithy. Add git. (#11597)
* conda: Remove conda-build and conda-smithy.

* conda: Add git.
2023-12-03 18:26:35 -03:00
wmayer
8f3fcd540a MSYS: fix CMake configure and build for MinGW 2023-12-03 18:02:07 +01:00
wandererfan
9cb4745f38 [TD]handle loose geometry via HLR 2023-12-03 08:55:59 -05:00
Rexbas
a3aeed8c03 Part: Use vector.data() to get data pointer 2023-12-03 12:35:15 +01:00
Rexbas
2d4409f710 Part: Use materialIndex.setValuesPointer() only if the new values are different 2023-12-03 12:35:15 +01:00
Roy-043
6ea942afc1 Merge pull request #11610 from Roy-043/Draft-update-Draft_ApplyStyle
Draft: update Draft_ApplyStyle
2023-12-03 11:25:27 +01:00
wandererfan
dc063eabec [TD]fix fix hidden line style 2023-12-02 13:55:08 -05:00
wandererfan
9e7f21fcb2 [TD]fix line numbering in preferences
- resolve conflict between comboBox currentIndex [0,n] and
  line numbering [1, n]
2023-12-02 13:55:08 -05:00
pavltom
4ea5c2b611 [TechDraw] Use OCC to compute intersections - drop limits from hint 2023-12-02 13:54:37 -05:00
pavltom
b26b83dfee [TechDraw] Use OCC to compute intersections of any types of curves 2023-12-02 13:54:37 -05:00
wmayer
1245c3f3b2 Python: deprecated aliases have been removed in Py 3.12 2023-12-02 14:45:55 +01:00
Roy-043
b4c3a0d963 Draft: update Draft_ApplyStyle
The command now applies all style properties from `utils.get_default_annotation_style()` and `utils.get_default_shape_style()`.

Additionally: minor improvements to gui_setstyle.py.
2023-12-02 13:11:08 +01:00
wandererfan
8f17842974 [TD]fix errors in MS CI
- apparently the "or" alternative to "||" is not supported
  by MS but is part of the c++ specification:
  https://en.cppreference.com/w/cpp/language/operator_alternative

- also missing TechDrawExport
2023-12-01 11:27:29 -05:00
wandererfan
762e1b53ff [TD]Standard Line Styles - Gui components 2023-12-01 11:27:29 -05:00
wandererfan
b64fd9ac03 [TD]Standard Line Styles - data files 2023-12-01 11:27:29 -05:00
wandererfan
8a7e8effb3 [TD]Standard Line Styles - App components 2023-12-01 11:27:29 -05:00
bgbsww
a4db18af56 Default freenet to true for sweep to fix rendering bug 2023-12-01 14:02:49 +01:00