wmayer
cf337394a1
Gui: in repr() of MDIViewPy write the typeid name
2021-11-21 15:44:06 +01:00
wmayer
8de5d37fba
Web: make BrowserViwePy acting as sub-class of MDIViewPy
2021-11-21 15:34:33 +01:00
Ajinkya Dahale
71e70c876b
[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
2c701c0985
Spreadsheet: [skip ci] return Py::None() instead of Py::Object()
2021-11-20 14:40:12 +01:00
Chris Hennes
d60a0fb760
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
79a0c6b54c
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
wmayer
4fa4446f01
PD: [skip ci] code clean-up in pad and pocket feature
2021-11-20 12:01:55 +01:00
wmayer
ab480df745
PD: move duplicated code to common base class
2021-11-20 11:45:13 +01:00
wmayer
9ee60fd585
PD: Add common base class for Pad/Pocket
2021-11-20 10:34:01 +01:00
wmayer
8eb099d4e1
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
508df64732
Gui: [skip ci] add sub-classes of the MDIView to the type system
2021-11-19 12:51:13 +01:00
sliptonic
7ca80cade0
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
a41d11a299
Merge pull request #5028 from luzpaz/Crowdin-MeshPart
...
Crowdin: Fix and expose Mesh WB translations
2021-11-18 12:27:42 +01:00
wmayer
f0646d8b51
Tux: [skip ci] fix error: NameError: name 'adjustSize' is not defined
...
Caused by commit d7d23d5ef5
2021-11-17 19:18:12 +01:00
wmayer
3dc9acef62
PD: [skip ci] fix warning -Wunused-variable
2021-11-17 19:06:35 +01:00
wmayer
055068a255
TD: [skip ci] fix deprecation warning with Qt5.15
2021-11-17 17:20:57 +01:00
Yorik van Havre
a26fb4db1a
Merged crowdin translations
2021-11-16 17:30:39 +01:00
Yorik van Havre
aca390ac88
Updated ts files
2021-11-16 17:25:03 +01:00
Yorik van Havre
e953dc1c2a
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
75846b340b
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
sliptonic
4c129c7526
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
cd2955f3d3
PD: simplify Pad/Pocket commands
2021-11-16 00:58:55 +01:00
wmayer
a8cb5ed419
PD: [skip ci] for pockets use opposite direction of reference axis
2021-11-16 00:35:57 +01:00
sliptonic
7e5e0fe2fe
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
838bdf93bc
[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
61481dc9c5
[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
Zheng, Lei
14dfae0597
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
Roy-043
359955a51e
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
0c933ac70a
Part: use of factory method of Vector2dPy
2021-11-14 18:19:34 +01:00
Uwe
414f4d706e
[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
39c162f938
Addon Manager: Added VendorParts workbench icon
2021-11-13 19:08:10 -06:00
wmayer
5eb97d0028
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
63e1f95a97
Spreadsheet: get access to the sheet view from the view provider via Python
2021-11-13 21:43:58 +01:00
wmayer
1e3b97f619
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
00846945d5
SpreadSheet: fix -Wunused-parameter
2021-11-13 20:45:06 +01:00
wmayer
b308645654
SpreadSheet: fix -Winconsistent-missing-override
2021-11-13 20:41:06 +01:00
wmayer
5f7b8214e5
Spreadsheet: implement SheetViewPy that acts as sub-class of MDIViewPy
2021-11-13 20:40:32 +01:00
Chris Hennes
093f15dce5
Spreadsheet: Expose currentIndex to Python
2021-11-12 22:54:24 -06:00
Uwe
4a4db353a5
[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
37dbcf7f66
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
640ecca830
[PD] fix typos
2021-11-13 00:29:33 +01:00
Chris Hennes
179c6b540e
Spreadsheet: Minor code cleanup
2021-11-12 13:31:05 -06:00
Jose Luis Cercos-Pita
16bbe12336
Expose the selected cells to Python
2021-11-12 13:19:03 -06:00
wmayer
96512c1e01
PD: [skip ci] add PartDesignGlobal.h with export/import macros
2021-11-12 18:25:41 +01:00
Ajinkya Dahale
5aaf6e68b4
[PD] Allow body faces when making loft by pre-selection
2021-11-12 01:33:46 +01:00
Uwe
51cc91da84
Update src/Mod/Sketcher/Gui/TaskSketcherValidation.ui
...
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org >
2021-11-12 00:45:46 +01:00
luz paz
bad413b0f7
Sketcher: fix typo in Gui/TaskSketcherValidation.ui
2021-11-12 00:45:46 +01:00
Uwe
0b3839f0f6
[PD] TaskDlgPipeParameters - refactor comments
...
update/refactor comments after today's changes
2021-11-12 00:44:35 +01:00
Uwe
0995c81240
[PD] add feature to set direction for pockets
...
This PR adds the functionality of pads to pad along either a custom direction or along an edge to pockets.
So with this PR Pad and Pocket are on the same level of functionality.
2021-11-11 15:55:42 -06:00
wmayer
126fadd2d6
PD: make sure to switch off Profile and Section highlighting when closing sweep dialog
2021-11-11 20:33:27 +01:00