Commit Graph

35107 Commits

Author SHA1 Message Date
Adrián Insaurralde Avalos
7a01a7dc32 Merge pull request #7193 from AjinkyaDahale/pd-more-revol-options
PD: more options for revolution/groove
2023-11-20 13:36:34 -03:00
Pesc0
a8dee2ed90 Allow automatic tests discovery 2023-11-20 16:12:27 +01:00
Chris Hennes
bf6d07c402 Merge pull request #11409 from wwmayer/fix_clangtidy_base
Base: Fix clang-tidy reports
2023-11-20 08:17:27 -06:00
wmayer
5d2308e16f Part: add test for Geom2d.toShape 2023-11-20 13:00:09 +01:00
tomate44
810da3db88 Part : fix edge creation of Geom2d curves 2023-11-20 12:35:09 +01:00
Roy-043
c62552338e Arch: remove global precision variables
To avoid having to restart after changing the Draft precision parameter.
2023-11-20 12:21:28 +01:00
bgbsww
73f662317d Reverse misuse of list comprehension 2023-11-20 11:36:39 +01:00
bgbsww
e5044b05f7 Parse inventor format without commas between points 2023-11-20 11:36:39 +01:00
Adrián Insaurralde Avalos
05c55e3ab5 Revert "add git information"
This reverts commit 5f0c3a630f00af6b7c103b355b48b03e265a3f22.
2023-11-19 15:18:25 -03:00
Adrián Insaurralde Avalos
1d9df8f8a9 Revert "disable git info"
This reverts commit a0f3be8a0feb837c266ebdd9939a704e90c3959d.
2023-11-19 15:15:26 -03:00
Jacob Oursland
81c6e7fbe7 Add Docker configuration for conda. 2023-11-19 02:01:47 -03:00
Roy-043
c6dfc28a33 Draft: store more command modes in prefs
With this PR the following 5 command modes are automatically stored in the preferences:

    "ContinueMode"
    "RelativeMode"
    "GlobalMode"
    "fillmode" (existing preference, removed from the Preferences Editor)
    "SubelementMode"

Additionally:
Three commands (Draft_Ellipse, Draft_Rectangle and Draft_Stretch) call `setRelative` after the 1st point has been specified and would permanently switch on relativeMode. After this PR this switch is temporarily.
2023-11-18 22:30:02 +01:00
Adrián Insaurralde Avalos
29252e6df7 disable git info 2023-11-18 17:44:50 -03:00
ghaction
1218696592 add git information 2023-11-18 17:44:27 -03:00
Roy-043
99d23ee7f4 Draft: store more command modes in prefs
With this PR the following 5 command modes are automatically stored in the preferences:
* "ContinueMode"
* "RelativeMode"
* "GlobalMode"
* "fillmode" (existing preference, removed from the Preferences Editor)
* "SubelementMode"

Additionally:
Three commands (Draft_Ellipse, Draft_Rectangle and Draft_Stretch) call `setRelative` after the 1st point has been specified and would permanently switch on relativeMode. After this PR this switch is temporary.
2023-11-18 21:03:26 +01:00
Roy-043
9511ef6fb7 Merge pull request #11440 from Roy-043/Draft-make-Draft_Edit-prefs-non-global
Draft: make Draft_Edit prefs non-global
2023-11-18 19:45:00 +01:00
Roy-043
06e6ea5d53 Merge pull request #11436 from Roy-043/Draft-constraining-did-not-respect-global-mode
Draft: constraining did not respect global mode
2023-11-18 19:44:40 +01:00
Roy-043
5f6c0951e6 Merge pull request #11428 from Roy-043/Draft-make-in-command-shortcuts-non-global
Draft: make in-command shortcuts non-global
2023-11-18 19:44:17 +01:00
Roy-043
6e6be51bf0 Draft: make Draft_Edit prefs non-global 2023-11-18 19:18:23 +01:00
Roy-043
05f064d35b Draft: constraining did not respect global mode
Fixes #10496.
2023-11-18 13:36:35 +01:00
wmayer
eab181965c Gui: save active palette
If the QLineEdit is disabled the current color group of the cached QPalette is set to 'Inactive'. Now when enabling the QLineEdit the wrong palette is set and the text looks like it's inactive.
2023-11-17 18:52:28 +01:00
Roy-043
6ac062f8fb Draft: make in-command shortcuts non-global
Fixes #8329.
2023-11-17 12:57:56 +01:00
Roy-043
574a964a29 Merge pull request #11426 from Roy-043/Draft-minor-updates-related-to-precision-pref
Draft: minor updates related to precision pref
2023-11-17 10:18:35 +01:00
Roy-043
7a05e9809b Draft: minor updates related to precision pref 2023-11-17 09:49:01 +01:00
Roy-043
b7de4e73dd Merge pull request #11419 from Roy-043/Draft-Draft_Join-should-call-join_wires
Draft: Draft_Join should call join_wires
2023-11-17 09:30:01 +01:00
pavltom
3876f23f4d [TechDraw] Multiselection mode implementation 2023-11-16 20:45:02 -05:00
pavltom
4703c77067 [TechDraw] Remove obsolete getYInClip method 2023-11-16 20:45:02 -05:00
pavltom
095160d438 [TechDraw] Remove nowhere used m_dragState 2023-11-16 20:45:02 -05:00
pavltom
35618ef606 [TechDraw] Refactor QGIView and QGIPrimPath mouse processing 2023-11-16 20:45:02 -05:00
pavltom
e2cc18eb8d [TechDraw] Remove now unused SelectPoint signal relics 2023-11-16 20:45:02 -05:00
pavltom
e2635afe87 [TechDraw] Fix app selection not reflecting Qt selection 2023-11-16 20:45:02 -05:00
pavltom
5a6c3b2606 [TechDraw] Fix DrawView.setPosition signaling changes always 2023-11-16 20:45:02 -05:00
Roy-043
acac040b6e Draft: Draft_Join should call join_wires
Also removed an obsolete comment.
2023-11-16 21:02:19 +01:00
wmayer
18aeb4e812 Tests: add test for QuantitySpinBox::setValue(double) 2023-11-16 19:37:21 +01:00
Abdullah Tahiri
900d3e878e Gui: QuantitySpinBox - keep format on setValue
==============================================

Problem:
When the value set is a double, a new Quantity is created, which does not follow
the previously configured format (setDecimals).

Solution:
To copy the old format to the newly created quantity.
2023-11-16 19:29:46 +01:00
wmayer
7cbae75ade Tools: for generated Python binding use PyTypeObject instead of _typeobject
And name the function arguments of PyMake to handle readability-named-parameter
2023-11-16 17:03:14 +01:00
bgbsww
c44a61bae3 PartDesign: refresh body after pipe creation (#11357) 2023-11-16 12:58:39 -03:00
Pesc0
77b6e29371 Vscode PR - split 1 - add cmakepresets (#11385)
* add CMakePresets.json
2023-11-16 12:49:54 -03:00
Roy-043
49befdc282 Merge pull request #11415 from Roy-043/Draft-prefs-remove-copymode-useSupport-no-longer-via-UI
Draft: prefs: remove copymode, useSupport no longer via UI
2023-11-16 16:13:54 +01:00
mos
66070c662f fix python get value rotation are a Long .
remove old check python >=3.5 -> freecad require python 3.6
2023-11-16 14:05:30 +01:00
Roy-043
65ec16341d Draft: prefs: remove copymode, useSupport no longer via UI
This PR removes the copymode (Global copy mode) preference.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=82679

Additionally useSupport is removed from preferences-draft.ui, turning it into a fine-tuning preference. Use of this feature is rare and may not be supported in the future. No need to present this preference to new users in the UI.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=80689
2023-11-16 11:40:23 +01:00
Roy-043
bd5cdc3bc1 Merge pull request #11405 from Roy-043/Draft-menu-texts-of-snaps-to-sentence-case
Draft: menu texts of snaps to sentence case
2023-11-16 10:09:13 +01:00
wmayer
3ac4dc0686 fix cppcoreguidelines-*
* cppcoreguidelines-init-variables
* cppcoreguidelines-c-copy-assignment-signature
* cppcoreguidelines-macro-usage
* cppcoreguidelines-non-private-member-variables-in-classes
* cppcoreguidelines-pro-type-member-init
* cppcoreguidelines-slicing
* cppcoreguidelines-special-member-functions
* cppcoreguidelines-virtual-class-destructor
2023-11-16 01:22:09 +01:00
wmayer
365e7136cd fix bugprone-*
* bugprone-throw-keyword-missing
* bugprone-unhandled-self-assignment
* bugprone-suspicious-string-compare
* bugprone-reserved-identifier
* bugprone-narrowing-conversions
* bugprone-macro-parentheses
* bugprone-implicit-widening-of-multiplication-result
* bugprone-exception-escape
* bugprone-copy-constructor-init
2023-11-16 01:22:09 +01:00
wmayer
09ed6f125b fix performance-*
* performance-type-promotion-in-math-fn
* performance-trivially-destructible
* performance-noexcept-move-constructor
* performance-faster-string-find
2023-11-16 01:22:09 +01:00
wmayer
a6ea6ff155 fix readability-make-member-function-const 2023-11-16 01:22:09 +01:00
wmayer
a602003747 fix readability-isolate-declarations 2023-11-16 01:22:08 +01:00
wmayer
276bbcad6e fix readability-*:
* readability-uppercase-literal-suffix
* readability-named-parameter
2023-11-16 01:22:08 +01:00
wmayer
bd88162b9d fix readability-*:
* readability-const-return-type
* readability-container-data-pointer
* readability-container-size-empty
* readability-delete-null-pointer
* readability-else-after-return
* readability-inconsistent-declaration-parameter-name
* readability-redundant-member-init
* readability-redundant-smartptr-get
* readability-redundant-string-cstr
* readability-use-anyofallof
* readability-static-definition-in-anonymous-namespace
* readability-static-accessed-through-instance
* readability-simplify-boolean-expr
2023-11-16 01:22:08 +01:00
wmayer
c5f5bfd22a fix readability-braces-around-statements 2023-11-16 01:22:08 +01:00