Commit Graph

26456 Commits

Author SHA1 Message Date
wmayer
dd0afb0b0d PD: If pad/pocket is directly used on several faces then determine the normal of the first face 2021-11-22 11:52:17 +01:00
Zheng, Lei
32e3eaa01b App: fix subname encoding when saving property links 2021-11-21 23:35:40 -06:00
Ajinkya Dahale
31bbabe817 [PD] Change some strings and comments in loft code
Suggestions by @donovaly.
2021-11-22 04:16:02 +01:00
Ajinkya Dahale
4d006a5098 [PD] Allow sketch point profile in selection-based loft workflow 2021-11-22 04:16:02 +01:00
Ajinkya Dahale
d99bc1e9df [PD] Refactor Loft::execute() and support points for sections
This is a combination of 4 commits. Original commit messages follow.

[PD] Initial support for point sections in loft

This commit allows the last section in a loft to be a single vertex of a solid.
Currently single vertices of sketches or datum points are NOT supported.

[PD] Allow loft "profiles" to be points

Most reliably done in dialog-based workflow.

[PD] Allow loft last section to be sketch point

[PD] Refactor `Loft::execute`

Makes it easier to support adding a single-vertex sketch in profile or sections
field when selecting the sketch in tree (i.e. without selecting subelements).

[PD] Refactoring after PR #5176 is merged
2021-11-22 04:16:02 +01:00
0penBrain
4116a59813 [Sheet][Bugfix] Reject alignment change for merged cell except top-left one 2021-11-21 20:57:33 -06:00
0penBrain
28d10fc6e6 [Sheet] Assert non-null pointer before using it 2021-11-21 20:57:33 -06:00
0penBrain
0e13882a65 [Sheet] Prevent duplicate call to 'nonNullCellAt' 2021-11-21 20:57:33 -06:00
Zheng, Lei
61ec1192f3 App: change PropertyContainer::Restore()
Changes the way PropertyContainer handles existing property while
restoring. Previously it will first ask DynamicProperty to restore
if possible, then fallback to static property if else.

This patch looks up existing property first, and only fallback to
DynamicProperty if not found. This handles situation when an object
changes an originally dynamic property into a static one. With the
original code, it will add an auto renamed dynamic property that no
one knows its existence.
2021-11-21 19:03:53 -06:00
Zheng, Lei
27f24c069d Test: fix test case
Adding dynamic property with an invalid name or existing name is now an
error, because there is no easy way for Python code to find out the name
of a property if it is auto renamed.
2021-11-21 19:03:53 -06:00
Zheng, Lei
55d64d71c2 App: do not auto rename new dynamic property
Instead, throw exception in case of duplicate name. Use boolean
parameter 'Preferences/Document/AutoNameDynamicProperty' to get back
the old behavior.
2021-11-21 19:03:53 -06:00
wmayer
049a34645b Mod: change error text of Python wrapper when trying to access deleted view 2021-11-21 19:57:21 +01:00
wmayer
5746a486df Gui: make View3DInventorPy acting as sub-class of MDIViewPy 2021-11-21 19:44:38 +01:00
wmayer
4893801d81 Gui: make AbstractSplitViewPy acting as sub-class of MDIViewPy 2021-11-21 18:59:28 +01:00
wmayer
7a58b7cfb0 TD: make MDIViewPagePy acting as sub-class of MDIViewPy 2021-11-21 17:33:19 +01:00
wmayer
e0bc8de4b4 Gui: in repr() of MDIViewPy write the typeid name 2021-11-21 15:44:06 +01:00
wmayer
d247b5b1e7 Web: make BrowserViwePy acting as sub-class of MDIViewPy 2021-11-21 15:34:33 +01:00
wmayer
ac05ae3637 Gui: expose some more methods of MDIView to Python 2021-11-21 14:32:36 +01:00
wmayer
bd530b9070 Gui: make sure the calltips show the added methods of MainWindowPy 2021-11-20 22:49:51 +01:00
Ajinkya Dahale
6f5159180b [PD] Use PropertyLinkSubList for loft and sweep sections
This change is necessary since we restrict part-design features to only use
other features from the same body.
2021-11-20 21:37:14 +01:00
wmayer
25afe523c4 Spreadsheet: [skip ci] return Py::None() instead of Py::Object() 2021-11-20 14:40:12 +01:00
Chris Hennes
a9ee8d4ffb Spreadsheet: Remove unnecessary functions & files
Remove functions from they Python code for ViewProviderSpreadsheet that
are now in SheetView, and eliminate the unneded files for SheetView now
that it's being generated by hand to facilitate pseudo-inheritance.
2021-11-20 14:40:12 +01:00
Chris Hennes
0da3bc7332 Spreadsheet: Implement Python SheetView functions
Add the following functions to the Python interface of SheetView:
* selectedRanges()
* selectedCells()
* select(cell, flags)
* select(upperLeft, lowerRight, flags)
* currentIndex()
* setCurrentIndex(cell)
2021-11-20 14:40:12 +01:00
luz paz
bd210c9ee0 App: remove superfluous whitespace in ObjectIdentifier.h 2021-11-20 14:03:40 +01:00
luz paz
05c5e0a6d9 App: fix doc typo in ObjectIdentifier.h 2021-11-20 14:03:40 +01:00
wmayer
84b7185a28 PD: [skip ci] code clean-up in pad and pocket feature 2021-11-20 12:01:55 +01:00
luz paz
cdbae97d52 Gui: Remove superfluous whitespace from string that is translated 2021-11-20 11:48:45 +01:00
wmayer
998abc8d4d PD: move duplicated code to common base class 2021-11-20 11:45:13 +01:00
wmayer
877e8d14e5 PD: Add common base class for Pad/Pocket 2021-11-20 10:34:01 +01:00
wmayer
85ae25ba68 Gui: extend MainWindowPy
* implement MainWindowPy::getWindows
* implement MainWindowPy::getWindowsOfType
2021-11-19 16:21:40 +01:00
wmayer
c8fcb9405e Gui: extend PySide2 wrapper of MainWindow with extra functions 2021-11-19 15:45:56 +01:00
wmayer
67cc5c9047 Gui: add MDIViewPy.cast_to_base and implement in Python wrappers for sub-classes of MDIView 2021-11-19 15:44:23 +01:00
wmayer
3bd3f20e32 Gui: [skip ci] add sub-classes of the MDIView to the type system 2021-11-19 12:51:13 +01:00
sliptonic
740d71b638 Merge pull request #5177 from sliptonic/bug/profilebug
[Path] face outerwires aren't always the first wire in the Wires list.
2021-11-18 08:44:09 -06:00
Yorik van Havre
5f822a2b5b Merge pull request #5028 from luzpaz/Crowdin-MeshPart
Crowdin: Fix and expose Mesh WB translations
2021-11-18 12:27:42 +01:00
wmayer
c410ba4f7d Tux: [skip ci] fix error: NameError: name 'adjustSize' is not defined
Caused by commit a318878be48
2021-11-17 19:18:12 +01:00
wmayer
039422572a PD: [skip ci] fix warning -Wunused-variable 2021-11-17 19:06:35 +01:00
wmayer
895ff340af TD: [skip ci] fix deprecation warning with Qt5.15 2021-11-17 17:20:57 +01:00
wmayer
15ce4955b3 MingGW: [skip ci] fix build failure 2021-11-17 17:14:27 +01:00
Yorik van Havre
c4d4575eb3 Merged crowdin translations 2021-11-16 17:30:39 +01:00
Yorik van Havre
7dc8f59369 Updated ts files 2021-11-16 17:25:03 +01:00
wmayer
867870e113 Gui: allow to configure the checks of the cache directory 2021-11-16 15:37:04 +01:00
Yorik van Havre
35d0603b3c Merge pull request #5156 from donovaly/TUX-navibar-fixes
[Tux] fix navigation status bar width
2021-11-16 11:33:28 +01:00
Yorik van Havre
6725ca7489 Merge pull request #5153 from Roy-043/Draft-fix-importDXF-should-use-make_layer
Draft housekeeping: importDXF.py should use make_layer
2021-11-16 11:30:17 +01:00
Chris Hennes
287680f726 Gui: Add missing Windows QPrinterInfo include 2021-11-15 20:59:13 -06:00
sliptonic
54d593e116 face outerwires aren't always the first wire in the Wires list.
Added logic to compare hashCodes()

https://forum.freecadweb.org/viewtopic.php?f=13&t=50567
2021-11-15 18:40:28 -06:00
wmayer
84e382a5a6 PD: simplify Pad/Pocket commands 2021-11-16 00:58:55 +01:00
wmayer
408e8a40ef PD: [skip ci] for pockets use opposite direction of reference axis 2021-11-16 00:35:57 +01:00
wmayer
54b139cb29 Gui: periodically check cache directory and offer a way to clean it up if it exceeds the limit 2021-11-15 22:53:41 +01:00
wmayer
387661360c App: standard path handling
* distinguish between temp and cache location
* document's transident directory is created in the cache location
* add functions to access temp and cache location via Python
2021-11-15 16:26:25 +01:00