Commit Graph

48 Commits

Author SHA1 Message Date
Russell Johnson
52c156a7e1 Path: Remove unused imports per LGTM 2021-08-17 21:47:22 -05:00
Russell Johnson
1aeb28cf67 Path: Refactor and upgradeExtensions feature, and apply to Adaptive op
Path: Refactor `Extensions` Gui code into independent module. Move the `Extensions` Gui code to independent module so access to other operations will be easier.
Path: Add `Extensions` feature to Adaptive operation
Path: Isolate Adaptive GUI elements in preparation of Adaptive unit tests
Path: Implement `PathLog` debug module
Path: Implement `translate()` for multi-language message support
Path: Fix `StockType`check bug
Path: Relocate `getCutRegionWires()` to `FeatureExtensions` module
Path: Add `Extensions` property checks on document restored
Path: Improve `Extend Outline` feature implementation
Path: Initialize a waterline type extension
Path: Add enable/disable extensions feature. It is quite possible that many complex faces exist that have large quantities of both simple and complex edges.  For this reason, a manual push button to enable Extensions is useful so the users machine is not bogged down with extra or unnecessary computing time.  Extensions are not necessary at all times. This commit also includes an edge count threshold that will disable the Extensions feature temporarily upon initial loading of the Task Panel.  The manual enable button will do just that.
Path: Add enable extensions warning label
Path: Shorten enable/disable Extensions button message
Path: Remove run-time added Task Panel elements - this QButton and QLabel were moved to UI panel directly.
Path: Add include/ignore Edges button
Path: Improve extension preview rendering
Path: Fixes for `useOutline` modification and updates
Path: Add internal feature to cache calculated extensions for reuse
Path: Add `SetupProperties()` function and connect to GUI command
Path: Add `Avoid Face` extension to ignore base face. This feature allows for some simple access to the exterior of a selected face without clearing the face itself.  This will allow for an exterior clearing operation in a simple manner.
Path: Fix bug restricting extensions on internal closed-wires
2021-06-04 09:48:50 -05:00
luz paz
016989e992 Fix misc. typos
Found via 
```codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu```
2021-06-03 14:36:21 -04:00
sliptonic
bcbcf36052 Merge pull request #4617 from Russ4262/fix_pocketshape_circular_extension
[Path] Fix outside `Extensions` of circular faces with inner holes
2021-05-24 12:45:13 -05:00
Russell Johnson
d08aef58a9 Path: Correct GUI visualization of circular-face visualizations
Path: Fix internal circular extension visualization
2021-04-10 14:09:22 -05:00
Russell Johnson
55453bd69d Path: Fix update of Extensions Default Length GUI spin box
Fix the bug hindering update of the Default Length spin box in the Extensions tab after editing and change of focus. 
With the fix, the spin box updates after change of focus, as do other spin boxes in the Path workbench.
Used method found in PathDrillingGui module.
2021-04-08 22:27:02 -05:00
Markus Lampert
61929d8778 Load PathGui in all modules which require gui resources to be loaded 2021-01-26 18:14:09 -08:00
luz paz
aeafcec125 Path: Change filenames in the rest of the Path code
Reflects changes in 
* PathOpGui.SetupOperation()
* GetResources()
* sPIxmap
* pixmap
* *.UI files

Also contains minor translation context renames (these were edits made near to original intent of this commit)
2020-12-02 06:57:28 -05:00
luz paz
60c055e62d Path: Fix header uniformity and remove trailing whitespace
This PR fixes header uniformity across all Path files. It also removes all trailing whitespace.
2020-11-05 19:57:21 +01:00
sliptonic
d95527ca50 Merge pull request #3700 from etrombly/deletedFaces
[Path] handle makeOffset2D exception in path pocket operation
2020-07-28 11:50:27 -05:00
Eric Trombly
e630e3786f handle offset error in PathPocketShapeGui 2020-07-15 21:31:34 -05:00
Eric Trombly
29e842d4e0 fix attributeError if edge can't be flipped 2020-07-14 18:53:54 -05:00
Eric Trombly
547c6fa26e cleaner fix 2020-07-10 15:42:00 -05:00
Eric Trombly
6a1c68a647 fix deleted object error 2020-07-10 15:42:00 -05:00
Eric Trombly
24e681c63b add lazyloader support
lazy_loader is copied to Ext now, modified external imports to lazy_load

add a few more imports to be lazy loaded, think the install path is correct now

[TD]"<" symbol embedded in html

revert changes to path modules for testing

use lazyloader in PathAreaOp.py

add back in deferred loading

temp change to print error message in tests

temp change to print error message in tests

add _init__.py to lazy_loader

make install in CMakeLists.txt one line
2020-04-13 21:14:34 -05:00
Markus Lampert
2091ffd170 Fixed segfault if some extensions end up being not valid. 2020-01-03 19:00:15 -08:00
Daniel Wood
765cbfd9e2 Handle selecting the coolant mode in the forms 2019-08-28 19:40:08 +01:00
Markus Lampert
6410393092 switched to pylint3 and fixed additional warnings 2019-07-01 15:32:54 -07:00
Markus Lampert
1a3877ffbe addressed pylint warnings for PathPocket family 2019-07-01 15:32:54 -07:00
Markus Lampert
cd2de45af3 Properly deal with deleted objects when cleaning up the extension visualisation. 2019-06-29 19:16:33 -07:00
Markus Lampert
a162afc95a Fixed extensions for round holes. 2019-06-29 18:16:56 -07:00
Markus Lampert
d50ce02c7d Fixed extension selection 2019-06-29 18:16:56 -07:00
sliptonic
617c619d2f remove unnecessary imports. normalize debug log levels 2019-06-21 13:01:01 -05:00
markus
30f0a861e2 Moved FreeCADGui dependency from PathUtils into PathUtilsGui 2019-06-02 11:03:14 -07:00
markus
7fd9d4da75 Python3 fix for iterating over dictionary keys 2019-04-07 12:20:45 +02:00
Markus Lampert
53995670f4 Fixed colour for visibility and changed selection model to extended. 2019-04-07 12:20:45 +02:00
Markus Lampert
737fc7a4ec Persiste ExtensionCorners state for consistent UI 2019-04-07 12:20:45 +02:00
Markus Lampert
f812d31b5d Added Show All pocket extension checkbox for better UX. 2019-04-07 12:20:44 +02:00
Markus Lampert
0cd26f0e07 Use colour to indicate pocket extension enablement 2019-04-07 12:20:44 +02:00
Markus Lampert
a6489ee7eb Encapsulating swtich in _Extension class 2019-04-07 12:20:44 +02:00
Markus Lampert
dfff9a6c33 Added support for global extend corners 2019-04-07 12:20:44 +02:00
Markus Lampert
60afad2ca2 Maintain tree collapse state over extension refreshs 2019-04-07 12:20:44 +02:00
Markus Lampert
d2488b20bd Maintain extension selection over update. 2019-04-07 12:20:43 +02:00
Markus Lampert
e9ca7cbfb2 Fixed update of extensions when length changes 2019-04-07 12:20:43 +02:00
Markus Lampert
6dfe0b2d2c Switched extension UI to tree view dependent on the base objects. 2019-04-07 12:20:43 +02:00
markus
0581e71b6d Using offset2D for properly creating the extension 2019-04-07 12:20:42 +02:00
markus
433e8d0514 Disabling length and direction columns for now. 2019-04-07 12:20:42 +02:00
markus
700c9ab2e7 Fixed UI to update dirty state correctly 2019-04-07 12:20:42 +02:00
markus
2abb948954 Cleanup so artifacts on task panel close. 2019-04-07 12:20:42 +02:00
markus
61392a54dc Simple visualisation of removal shape extensions. 2019-04-07 12:20:42 +02:00
markus
b44e7572be Added extracting the wire of an extension 2019-04-07 12:20:41 +02:00
markus
ff65795c24 Basic UI to add extension features. 2019-04-07 12:20:41 +02:00
markus
c4e3209e44 Basic UI for editing pocket shape extensions. 2019-04-07 12:20:41 +02:00
markus
756f316831 Added UI page pocket extension; changed selection agent. 2019-04-07 12:20:41 +02:00
Markus Lampert
1beaceb289 Prototype objects for operations and the ability to create them through the regular proxy instantiation. 2018-09-02 00:32:22 -07:00
Markus Lampert
e0cae49c49 Add UseOutline property to PocketShape in order to mill full pockets and not have to add all sub-shapes. 2018-08-18 21:55:26 +02:00
Markus Lampert
969de51e51 Basic pocket generation from horizontal faces. 2017-09-28 11:27:46 -07:00
Markus Lampert
b8030be95f Added copy of pocket op back into the UI. 2017-09-28 11:27:46 -07:00