Commit Graph

35226 Commits

Author SHA1 Message Date
wmayer
79b21080e6 Gui: fix drag and drop of ViewProvider
* ViewProvider::canDragAndDropObject should only return true if an extension handles drag and drop
  Currently it returns true if no extension is available
* ViewProvider::dropObject shouldn't throw an exception if no extension handles drag and drop

As an example consider https://forum.freecad.org/viewtopic.php?t=82957
When selecting two objects then ViewProvider::dropObject is called twice. But for the first call both objects are moved to the destination
and for the second call no extension handles drag and drop any more. This incorrectly leads to a thrown exception.
2023-11-27 11:07:29 -06:00
Yorik van Havre
bf37ec32ec Start: Allow dynamic translation of start page (#11513)
* Allow dynamic translation of start page - fixes #9996
* [pre-commit.ci] auto fixes from pre-commit.com hooks
2023-11-27 11:06:27 -06:00
Paddle
ad3e832576 Sketcher : remove deleteAllConstraints from toolbar. 2023-11-27 11:00:50 -06:00
bgbsww
d6c3faac58 Add readonly length properties to part helix and spiral (#11406)
* Add readonly length properties to part helix and spiral

* Comment to explain non obvious Mass as Length
2023-11-27 10:52:23 -06:00
bgbsww
a9bf3e86f3 Correct PartDesign Helix feature negative angles (#11399)
* Correct PartDesign Helix feature negative angles

* Whitespace
2023-11-27 10:51:12 -06:00
bgbsww
e10a62ae82 Use placement only on new objects 2023-11-27 17:46:45 +01:00
bgbsww
156c506f19 Fix variable name, clean 2023-11-27 17:46:45 +01:00
bgbsww
2230850e3d Take Placement into account when applying boolean 2023-11-27 17:46:45 +01:00
Chris Hennes
cfd41683a5 Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive-

* App: Fixes for MSVC permissive-

* Gui: Fixes for MSVC permissive-

* Main: Fixes for MSVC permissive-

* Fem: Fixes for MSVC permissive-

* Material: Fixes for MSVC permissive-

* Part: Fixes for MSVC permissive-

* Mesh: Fixes for MSVC permissive-

* Points: Fixes for MSVC permissive-

* Robot: Fixes for MSVC permissive-

* TechDraw: Fixes for MSVC permissive-

* Path: Fixes for MSVC permissive-

* Core; Changes per review comments

* TD: Revision from wandererfan

* [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-11-27 17:37:29 +01:00
Roy-043
a462e8e616 Draft: improve handling of anno DisplayMode and LineSpacing
* DisplayMode controlled by new pref DefaultAnnoDisplayMode. This replaces the old dimstyle pref.
* LineSpacing pref is now used when creating annotations. Will be added to prefs ui later.
* format_object no longer changes FontSize as this conflicted with the height parameter in the make_text function.
* make_text function updated.
2023-11-27 15:45:56 +01:00
Paddle
466395194c hor/ver tool, remove unused variables 2023-11-27 10:44:25 +01:00
wmayer
04477b7bf3 Material: add QRegularExpression to PCH 2023-11-27 00:34:43 +01:00
wandererfan
7301610a5f [TD]fix wrong include 2023-11-26 16:42:06 -05:00
wandererfan
b8bea76481 [TD]spelling in comments 2023-11-26 16:42:06 -05:00
wandererfan
2954cfa2b6 [TD]trap null 2d shape in ShapeExtractor 2023-11-26 16:42:06 -05:00
pavltom
b8278718e9 [TechDraw] Implement arc length calculation for arbitrary edge 2023-11-26 08:53:39 -05:00
pavltom
2e45b3f856 [TechDraw] Fix area balloon placement for scale != 1 2023-11-26 08:53:39 -05:00
Paddle
b3fc34d61b Sketcher : Replace toggle icons. 2023-11-25 20:55:50 -03:00
Pesc0
83fb17e042 get rid of the windows debugger for now 2023-11-25 20:46:35 -03:00
Pesc0
d2ffabc3c8 Update .vscode, untrack and move to /contrib 2023-11-25 20:46:35 -03:00
Roy-043
67990f7013 MeshPart: menu texts to sentence case 2023-11-25 20:42:30 +01:00
Roy-043
b750635208 Merge pull request #11531 from Roy-043/Draft-use-clearer-snap-marker-names
Draft: use clearer snap marker names
2023-11-25 20:03:01 +01:00
Roy-043
9f235c281e Draft: use clearer snap marker names 2023-11-25 19:29:12 +01:00
wmayer
ec02ef0126 Gui: use MarkerBitmaps::getSupportedSizes to get available sizes 2023-11-25 18:37:26 +01:00
Roy-043
98ff140ace Merge pull request #11526 from Roy-043/Draft-use-consistent-is-number-string-in-DraftGui.py
Draft: use consistent is-number string in DraftGui.py
2023-11-25 16:22:19 +01:00
Roy-043
3aa08c96ea Draft: use consistent is-number string in DraftGui.py 2023-11-25 15:59:29 +01:00
wandererfan
c022aea274 [TD]fix disappearing balloon cursor 2023-11-25 08:05:50 -05:00
wandererfan
402fb2fe77 [TD]fix Balloon location 2023-11-25 08:05:50 -05:00
wandererfan
9d3d7aba22 [TD]fix dimension location 2023-11-25 08:05:50 -05:00
Syres916
a6031001fe [Techdraw] Hole & Shaft Fit Error Enhancement 2023-11-25 08:05:23 -05:00
Syres916
0046e625f0 [Gui] Add 20, 25 and 30px marker sizes 2023-11-25 12:36:33 +01:00
wmayer
021e0a192f Gui: fix SelectionSingleton::sHasSelection 2023-11-24 15:06:00 +01:00
wmayer
7c11ad0fb6 Part: fix TopoShapePy::optimalBoundingBox 2023-11-24 15:06:00 +01:00
wmayer
6d11e2206d Part: fix BSplineCurve2dPy::insertKnot 2023-11-24 15:06:00 +01:00
Roy-043
a3f285cb46 Draft: improve Snap bar show-hide preference
This PR replaces the showSnapBar and hideSnapBar preferences with a single new preference: SnapBarShowOnlyDuringCommands.

Additonally:
Improved some param observer callbacks.
2023-11-24 13:30:03 +01:00
Roy-043
8298396350 Merge pull request #11509 from Roy-043/Draft-getActiveObject-has-changed
Draft: Gui.ActiveDocument.ActiveView.getActiveObject has changed
2023-11-24 12:46:07 +01:00
Roy-043
fe1beadf9e Merge pull request #11510 from Roy-043/Draft-gui_selectplane-can-rely-on-ParamObserver-for-grid-changes
Draft: gui_selectplane can rely on ParamObserver for grid changes
2023-11-24 12:45:19 +01:00
Roy-043
0973eb6b6f Draft: gui_selectplane can rely on ParamObserver for grid changes 2023-11-24 12:18:57 +01:00
Roy-043
9bcb7cbc7e Draft: Gui.ActiveDocument.ActiveView.getActiveObject has changed
See #10405.
2023-11-24 12:08:28 +01:00
Roy-043
e94bbe1ca4 Merge pull request #11503 from yorikvanhavre/draft-toolmessages
Draft: Added a preference to turn on/off tool messages
2023-11-24 10:59:54 +01:00
pavltom
e021696b31 [TechDraw] Set Calculate Area icon units to pixels 2023-11-23 19:47:04 -05:00
pavltom
f04bac3838 [TechDraw] Fixes #7317 - Calculate Area of Arbitrary Faces 2023-11-23 19:47:04 -05:00
Adrian Insaurralde Avalos
72055480d4 3rdPart/salomesmesh - fix for vtk 9.3 compatibility
minimum required version is 7.1
2023-11-24 00:27:36 +01:00
wmayer
ba208c9dd6 Base: cppcoreguidelines 2023-11-24 00:11:32 +01:00
Yorik van Havre
b54642bf93 Draft: Added a preference to turn on/off tool messages (off by default) - fixes #7078 2023-11-23 16:27:36 +01:00
Roy-043
8944c79ebe Draft: make default anno style non-global
Additionally:
* Added the DimShowLine preference. Layout of the tab will be updated later.
* Improved handling of DraftAnnotationScale preference: catch division by zero and use it for the default anno style.
2023-11-23 09:45:12 +01:00
Roy-043
f683681e92 Remove 2 unused variables 2023-11-23 09:43:48 +01:00
Roy-043
842eedbf4b Draft: param observer: improve handling of statusbar widgets
The Draft statusbar widgets should not be displayed in the Arch and BIM workbenches.

Also updated the copyright header to the current standard.
2023-11-23 09:43:48 +01:00
Roy-043
8038fb64d3 Draft interface tab was missing 2023-11-23 09:21:55 +01:00
Roy-043
4e2ba04eb1 Arch: start Draft param observer
See #11481.
2023-11-23 09:21:55 +01:00