Commit Graph

26424 Commits

Author SHA1 Message Date
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
sliptonic
4f1116af03 Merge pull request #5154 from sliptonic/feature/drill-generator
[PATH] Drilling refactor part 1 - Generator and testing
2021-11-15 09:05:28 -06:00
Uwe
cf9e5a3f33 [PD] fix issue 0004785
- then the profile of a pad/pocket was a face, the direction handling was completely broken
2021-11-15 15:44:28 +01:00
Uwe
8b8b04cfde [PD] uniform pad and pocket handling
- since pockets now can have a certain direction, also handle the reference axis like for pad
- uniforms initial length to 10.0
2021-11-15 15:32:56 +01:00
wmayer
d6b17b2dbb App: add PropertyLinkSubList::addValue() to extend the list 2021-11-15 13:05:19 +01:00
wmayer
744290467d App: add PropertyLinkSubList::verifyObject() to reduce code duplication 2021-11-15 08:42:32 +01:00
mwganson
46b0d6ebd5 [Print Preview] Save paper size and orientation to user parameters 2021-11-14 21:21:17 -06:00
Chris Hennes
32790d1351 App: Add colCount and rowCount to Range 2021-11-14 20:45:09 -06:00
Chris Hennes
2ecd720de8 App: Add missing use for boost placeholders 2021-11-14 20:45:09 -06:00
Chris Hennes
7687582d53 App: fix compilation of PropertyStandard.cpp during cherry-pick 2021-11-14 20:45:09 -06:00
Zheng, Lei
fdae470c1b App: add hiddenref() expression built-in function
Any object reference inside this function is treated as hidden to
exclude it from dependency calculation. This function allows some form
of cyclic depdenency.

Merger note: renamed from "HREF" to "HIDDENREF" to avoid confusion with
the standard "hypertext reference" use of HREF.
2021-11-14 20:45:09 -06:00
Zheng, Lei
7e272d00f8 App/Gui: allow change dynamic property group and documentation
Exposed as PropertyContainerPy.setGroup/DocumentationOfProperty.

Added a menu action to property view for rename dynamic property group.
2021-11-14 20:45:09 -06:00
Zheng, Lei
26ba872aa6 App/Gui: improve expression binding of PropertyEnumeration
The enumeration items are exposed through sub path '.Enum'. When
'ShowAll' is enabled in property view, this sub path is exposed as a
sub property item named 'Enum', and can be either manually edited or
bound with an expression.
2021-11-14 20:45:09 -06:00
Zheng, Lei
796b4c0b2d App: fix crash on copy of Enumeration 2021-11-14 20:45:09 -06:00
wmayer
09c91738cc Base: add methods to Vector2dPy 2021-11-14 20:05:22 +01:00
wmayer
0c0e34b203 Base: implement number protocol for Vector2dPy 2021-11-14 19:25:29 +01:00
Roy-043
6e1874eede Draft: revise findMidpoint function
The findMidpoint function (used by Draft_Snap_Midpoint) only worked for straight and circular edges. With this revision the midpoint of all edges can be found.
2021-11-14 11:34:06 -06:00
wmayer
69fd6d35ec Part: use of factory method of Vector2dPy 2021-11-14 18:19:34 +01:00
wmayer
53db547270 Base: add factory method to Vector2dPy 2021-11-14 18:18:38 +01:00
Uwe
c138b75af0 [PD] uniform Pad/pocket UI
now that pockets have the same functionality as pads, the UIs can be unified:

- the position of the Offset widget in the UI is better in pocket, thus use it for pad too
- add missing tabstops for pad
- add missing tooltip for pocket
- update tabstops for pocket
2021-11-14 03:58:21 +01:00
alexneufeld
4068876f83 Addon Manager: Added VendorParts workbench icon 2021-11-13 19:08:10 -06:00
wmayer
90630795b8 Spreadsheet: several improvements
* do not simply return with Py_None from Python handler without incrementing the ref. counter as otherwise the interpreter steals a reference and the program will crash after a while
* avoid using the plain Python C API and instead use the PyCXX API
2021-11-13 21:56:15 +01:00
wmayer
7431bddea7 Spreadsheet: get access to the sheet view from the view provider via Python 2021-11-13 21:43:58 +01:00
wmayer
43b3bfcb04 Spreadsheet: in ViewProviderSheet do not add a second member to store the Python wrapper because the base class already has it
and it invalidates the wrapper in case the it is destroyed
2021-11-13 21:34:43 +01:00
wmayer
54688e7267 SpreadSheet: fix -Wunused-parameter 2021-11-13 20:45:06 +01:00
wmayer
aea7e60bf3 SpreadSheet: fix -Winconsistent-missing-override 2021-11-13 20:41:06 +01:00
wmayer
d398ee7f50 Spreadsheet: implement SheetViewPy that acts as sub-class of MDIViewPy 2021-11-13 20:40:32 +01:00
Chris Hennes
48f4277477 Spreadsheet: Expose currentIndex to Python 2021-11-12 22:54:24 -06:00
Uwe
e27270e615 [PD] fix pad/pocket direction issue
- the info if a custom direction is used, was incorrectly determined by checking a checkbox that only displays the vector value, no matter if it is a custom vector or not
2021-11-13 04:03:04 +01:00
Chris Hennes
170e515f15 Spreadsheet: Add programmatic selection of cells
Implement modifying the current selection programmatically via the
ViewProvider object in both C++ and Python. This enables unit testing of
GUI tasks that require a selection, and improves scriptability of
Spreadsheet.
2021-11-12 17:33:39 -06:00
Uwe
c6f48531cc [PD] fix typos 2021-11-13 00:29:33 +01:00
Chris Hennes
23370d3ba1 Spreadsheet: Minor code cleanup 2021-11-12 13:31:05 -06:00
Jose Luis Cercos-Pita
6c63bc3acf Expose the selected cells to Python 2021-11-12 13:19:03 -06:00