Commit Graph

26387 Commits

Author SHA1 Message Date
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
wmayer
1a969368cb PD: [skip ci] add PartDesignGlobal.h with export/import macros 2021-11-12 18:25:41 +01:00
0penBrain
3de481058d [Core] Improve decimal point substitution mechanism 2021-11-12 17:01:12 +01:00
wmayer
fde9663c24 App: do not raise an exception if application data directory doesn't exist because this breaks the CI tests
Instead try to create the directories and throw an exception if this fails.
2021-11-12 10:17:35 +01:00
wmayer
8dc4c857f0 App: add upgrade() method to PropertyLinkSubList 2021-11-12 07:49:44 +01:00
Ajinkya Dahale
15225b3b09 [PD] Allow body faces when making loft by pre-selection 2021-11-12 01:33:46 +01:00
Uwe
8d868c4df6 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
71504f2e1e Sketcher: fix typo in Gui/TaskSketcherValidation.ui 2021-11-12 00:45:46 +01:00
Uwe
5a2f962b05 [PD] TaskDlgPipeParameters - refactor comments
update/refactor comments after today's changes
2021-11-12 00:44:35 +01:00
Uwe
3eed892880 [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
b109927f1c Gui: [skip ci] fix -Winconsistent-missing-override 2021-11-11 20:36:30 +01:00
wmayer
e6fcfc47fb PD: make sure to switch off Profile and Section highlighting when closing sweep dialog 2021-11-11 20:33:27 +01:00
wmayer
308a5e4c63 PD: change visibility handling of sweep to support undo/redo 2021-11-11 20:21:47 +01:00
wmayer
873d79d3b5 App: [skip ci] add program option --keep-deprecated-paths to keep old path names 2021-11-11 14:04:40 +01:00
wmayer
e32f841264 App: fix issue 0002956 2021-11-11 13:51:14 +01:00
Chris Hennes
8d1735741b Merge pull request #4626 from pavltom/GUI_TreeView_Item_Ordering
[Gui] Issue #3923 - Add arbitrary Tree View item ordering
2021-11-10 23:35:05 -06:00
Chris Hennes
e3cdb7f875 Merge pull request #5163 from donovaly/PD-sweep-section-visibility2
[PD] fix sweep visibility bug
2021-11-10 22:43:49 -06:00
Uwe
7353ec0096 [PD] code improvement for FeaturePad
as noted by @chennes in PR #5164, we should follow the C++ style guidelines:
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-if
2021-11-11 02:26:42 +01:00
Uwe
aa0f0cd3bb [PD] code improvements for TaskPadParameters
as requested by @chennes in PR #5164, the code can be simplified:

- remove a redundant type cast, a redundant qualifier and an inconsistent and unnecessary check
2021-11-11 02:08:57 +01:00
Uwe
6db3337cd2 [PD] handle changed property for loft and pipe
- this was missing in PR #5155
2021-11-11 01:24:53 +01:00
Ajinkya Dahale
0f7f7136ce [PD] Check if property is named before strcmp 2021-11-11 01:13:17 +01:00
Uwe
7bea9e5bc5 [PD] fix sweep visibility bug
Currently:

    only sweep path is toggled correctly in its visibility, the profile is never shown
    the sections are always shown

This PR fixes this inconsistency reported here: https://forum.freecadweb.org/viewtopic.php?f=19&t=63544
2021-11-11 00:00:58 +01:00
wmayer
0b75d53676 App: code cleanup 2021-11-10 18:33:26 +01:00
Ajinkya Dahale
99bafa24e8 [PD] Clear other taskbox buttons in loft and pipe when one pressed 2021-11-10 17:59:45 +01:00
Bernd Hahnebach
aa33cdc186 Arch: export IFC, make compatible with ifcopenshell 0.7 2021-11-10 15:59:30 +01:00
Chris Hennes
990e23bb24 Merge pull request #5152 from Roy-043/Draft-fix-getTeighaConverter
Draft: fix getTeighaConverter
2021-11-09 23:05:03 -06:00
Uwe
e6837f8ef2 [PD] fix a typo
- also some sorting
2021-11-10 03:26:23 +01:00