Commit Graph

29520 Commits

Author SHA1 Message Date
WandererFan
8b45901c5e [TD]handle short&wide hatch area (#17630)
* [TD]handle short&wide hatch area

* [TD]sync .h and .cpp parameter names
2024-11-04 18:01:33 +01:00
Benjamin Nauck
4790cabca5 macOS+win+qt6.4+: Hide classic and auto choose light or dark mode depending on os setting (#17410)
* mac, win, qt6.4+: Hide classic and auto choose light or dark mode

* Add dark mode qt6.5 check

* Start: Add QStyleHints to PreCompiled.h

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-11-04 17:55:27 +01:00
David Carter
5e1f1ff257 Materials: Disable editor right click menu
The right click context menu in the materials editor was implemented
as a place holder but is currently non-functional. It should be
disabled for 1.0. This will be revisited post 1.0 as all editor
functionality is reviewed and improved.

Fixes #17110
2024-11-04 17:50:54 +01:00
Yorik van Havre
617d730c9f Merge pull request #17567 from wwmayer/issue_17523
Mat: Tmp. block signals of material widget
2024-11-04 17:43:54 +01:00
Adrian Insaurralde Avalos
06ba57b7ae CAM: rename "Tests" to "CAMTests" to avoid python name conflicts 2024-11-04 17:36:21 +01:00
Yorik van Havre
e93bd03595 BIM: Fixed case bug in library tool 2024-11-04 14:48:14 +01:00
hoshengwei
4a7d96af0c Fix Ifc Spatial Element Default Composition Type should be 'Element' 2024-11-04 14:41:30 +01:00
Chris Mayo
5ee2d1df71 BIM: IFC explorer Qt 6 compatibility and other fixes (#17649)
* BIM: IFC - Fixes for Qt 6 due to QtGui.QFont.setWeight()

PySide6 replaced:
  PySide6.QtGui.QFont.setWeight(int)

with:
  PySide6.QtGui.QFont.setWeight(PySide6.QtGui.QFont.Weight)

* BIM: Fix IFC explorer addEntity() and addProperties() on Qt 6

Qt 6 removed QTreeWidget.setFirstItemColumnSpanned()

https://doc.qt.io/qt-5/qtreewidget-obsolete.html#setFirstItemColumnSpanned

Running the Python command 'BIM_IfcExplorer' failed:
Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/BIM/bimcommands/BimIfcExplorer.py", line 170, in Activated
    self.open()
  File "/usr/lib64/freecad/Mod/BIM/bimcommands/BimIfcExplorer.py", line 223, in open
    self.addEntity(eid, children, self.tree)
  File "/usr/lib64/freecad/Mod/BIM/bimcommands/BimIfcExplorer.py", line 455, in addEntity
    self.tree.setFirstItemColumnSpanned(item, True)

* BIM: Fix IFC explorer exception on toggle mesh

Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/BIM/bimcommands/BimIfcExplorer.py", line 278, in toggleMesh
    import importIFCHelper
ModuleNotFoundError: No module named 'importIFCHelper'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/BIM/bimcommands/BimIfcExplorer.py", line 282, in toggleMesh
    import importIFC
ModuleNotFoundError: No module named 'importIFC'

* BIM: Fix IFC explorer layout warnings

QLayout: Attempting to add QLayout "" to QDialog "IfcExplorer", which already has a layout
QLayout: Attempting to add QLayout "" to QDialog "IfcExplorer", which already has a layout

https://doc.qt.io/qt-6/qtwidgets-tutorials-widgets-nestedlayouts-example.html

* BIM: Output an error if IFC explorer can't explore a file

---------

Co-authored-by: Roy-043 <info@b-k-g.nl>
2024-11-04 14:02:07 +01:00
wandererfan
ea528ecdb9 [TD]fix scaling of large hatch tiles 2024-11-03 10:00:50 -05:00
marioalexis
e27ce22c59 Fem: fix Gmsh analysis mesh groups - fixes #17427 2024-10-31 15:28:44 -05:00
Eric Price
50c67ce2f6 fix #17578 - RIP bgbsww , don't worry, we got this. 2024-10-30 18:11:43 -05:00
James
39cf3c330f Changes to Addon First Run Dialog (#17518)
* Changes to Addon First Run Dialog

Updated Addon Manager first run dialog as per issue no. #17317

* Incorporated review comments

* Update src/Mod/AddonManager/addonmanager_preferences_defaults.json

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/AddonManager/addonmanager_preferences_defaults.json

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Removed default assigns as requested

* Defaults updated

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-10-30 18:10:22 -05:00
Ulices
d4828cc632 Help: Fix function return to avoid error when clicking URL on built-in browser (#17498)
* Help: Fix function return to avoid error when clicking URL on built-in browser

* fixup! Help: Fix function return to avoid error when clicking URL on built-in browser

Co-authored-by: Yorik van Havre <yorik.vanhavre@gmail.com>

---------

Co-authored-by: Yorik van Havre <yorik.vanhavre@gmail.com>
2024-10-30 12:51:45 +01:00
wmayer
0de167c29a Mat: Clean-up code in DlgDisplayPropertiesImp 2024-10-30 02:07:23 +01:00
wmayer
d54599bd9b Mat: Tmp. block signals of material widget
Fixes #17523
2024-10-30 01:06:12 +01:00
PaddleStroke
3bc7f1e85e Core: Enable TaskDialogs to associate view (#17373)
* Core: Add possibility for task dialogs to associate a view and be able to close when associated view is closed.

* TaskImage: Use task dialog view association.

* Sketcher: Use task dialog view association. Preventing crash (https://github.com/FreeCAD/FreeCAD/issues/16702)

* EditableDatumLabel: Use QPointer to prevent crash
2024-10-29 09:58:11 -05:00
hoshengwei
96d0bcbc04 Fix IFC export elevation with wrong unit 2024-10-29 15:14:00 +01:00
Adrian Insaurralde Avalos
6700c05857 Fix OpenSCAD test failing when using pipe transfer mechanism 2024-10-28 17:34:25 +01:00
Yorik van Havre
8691140d4d Merge pull request #17538 from wwmayer/doc_obj_py
Core: Extend DocumentObjectPy
2024-10-28 17:31:23 +01:00
PaddleStroke
6cf06383c6 Sketcher: Dimension: Handle case of vertical/horizontal lines 2024-10-28 17:29:40 +01:00
wmayer
1a14b9020b Sketch: Make sure that variable 'ActiveSketch' is defined in macro
Fixes #17502
2024-10-28 17:23:50 +01:00
Eric Price
948b5ff81a Updated Tolerance feature to optionally restrict maximum tolerance and repair shapes (#17421)
* Updated Tolerance feature to optionally restrict maximum tolerance and repair shapes (With Refine=True)

* implement suggestion by wwmayer
2024-10-28 17:18:15 +01:00
Yorik van Havre
218842102d Draft: Warn user if using trimex on unsupported curve type - fixes #17346 2024-10-28 17:12:06 +01:00
marioalexis
e6950e3e11 Fem: Remove unnecessary system name check 2024-10-28 17:11:05 +01:00
Yorik van Havre
7e12ce34e7 Merge pull request #15629 from Ondsel-Development/asm_assembly_link
Assembly: Flexible sub-assemblies.
2024-10-28 17:07:26 +01:00
Yorik van Havre
0591b1373f Merge pull request #17448 from Ondsel-Development/sk_rotate_arc_issue
Sketcher: Rotate : Fix exploding sketches when rotating.
2024-10-28 17:05:46 +01:00
Yorik van Havre
287079a4f1 BIM: Fixed export of boolean IFC properties - fixes #17425 2024-10-28 16:58:28 +01:00
Yorik van Havre
583f80633f Draft: Fixed trimex bug when snapping to itself - fixes #17345 2024-10-28 16:57:50 +01:00
Yorik van Havre
881d84b679 BIM: Fixed online search mode - fixes #17353 2024-10-28 16:50:09 +01:00
Benjamin Bræstrup Sayoc
ff28df61f1 [Gui] Make styles update on paint (#17376)
* [Gui] Make styles update on paint

Fixes #15756. Similar implementation to that already in FileCardDelegate.cpp

* [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>
2024-10-28 16:48:47 +01:00
wandererfan
02ae2bdd3f [TD]remove spurious mouseReleaseEvent (fix #17519) 2024-10-28 09:47:40 -05:00
wandererfan
cc2ba4c67d [TD]fix line style regression from #17331 2024-10-28 09:47:14 -05:00
wandererfan
c01146555d [TD]handle cut profiles with only a single edge 2024-10-28 09:46:41 -05:00
wandererfan
06500011f2 [TD]do not mark document as changed after print 2024-10-28 09:46:10 -05:00
wmayer
e3265701e6 Draft: Fixes #17461 2024-10-28 14:13:50 +01:00
mwganson
4fd0e2c89d [PartDesign Groove/Revolution] minor dialog improvements, addresses issue #13298 2024-10-27 12:12:36 +01:00
Chris Mayo
9831b28764 Tux: Remove Qt 4 translate function 2024-10-26 20:59:04 +02:00
wmayer
de647c5324 Fix compiler warnings 2024-10-26 00:48:04 +02:00
marioalexis
8451354fdb Fem: Do not try to set EndStep property for legacy Netgen 2024-10-25 12:11:12 -05:00
PaddleStroke
2558df6ee8 Fix circle tangent issue 2024-10-25 10:03:47 -05:00
mwganson
ab4e812277 [Part RuledSurface] fix issue where ruled surface is failing if both edges are from same object and the object is not at the identity placement, addresses issue #17235 2024-10-25 09:58:47 -05:00
PaddleStroke
5ab2f3ea7e Assembly: CommandInsertLink: Hide hidden objects 2024-10-24 23:07:54 -05:00
PaddleStroke
bfdd4806f3 Sketcher: Symmetric: Do not copy names of constraints (#17433)
* Sketcher: Symmetric: Do not copy names of constraints

* Sketcher: Symmetric : Fix https://github.com/FreeCAD/FreeCAD/issues/17442
2024-10-24 22:58:51 -05:00
Chris Hennes
277c0215e7 Merge pull request #17435 from kadet1090/remove-midplane-twolengths
PD: Fix TwoLengths and Midplane both enabled
2024-10-24 22:29:17 -05:00
Chris Hennes
766bff54c7 Merge pull request #17416 from wwmayer/measure_circle_circle
Measure: When measuring the distance between circles then use the cen…
2024-10-24 21:55:56 -05:00
PaddleStroke
66d50e9b6e Update Workbench.cpp 2024-10-24 21:52:38 -05:00
PaddleStroke
b1d5d4c105 Part Design: Remove legacy/modern workflow checks. 2024-10-24 21:52:38 -05:00
Roy-043
a4bfafe7ad Updated 2 file paths to make the code work with AppImage
As advised in this forum post:
https://forum.freecad.org/viewtopic.php?p=788556#p788556
2024-10-24 14:08:17 +02:00
Roy-043
bb49d78e24 Draft: fix errors in draft_test_objects.py
* Label property TextSize should be FontSize.
* Added missing recomputes.
2024-10-24 14:08:17 +02:00
PaddleStroke
6d22e3def6 Sketcher: DrawSketchHandlerRotate : Fix unwanted copy of DistanceX/Y constraints 2024-10-24 11:33:28 +02:00