Commit Graph

47 Commits

Author SHA1 Message Date
Russell Johnson
fd6298d542 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
261c06a052 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
224f49af28 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
9fa93de188 Path: Correct GUI visualization of circular-face visualizations
Path: Fix internal circular extension visualization
2021-04-10 14:09:22 -05:00
Russell Johnson
b1ffa159a2 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
eae6c32ce8 Load PathGui in all modules which require gui resources to be loaded 2021-01-26 18:14:09 -08:00
luz paz
fe547195bf 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
b75cd3dd52 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
4bfa602368 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
8ab962ad85 handle offset error in PathPocketShapeGui 2020-07-15 21:31:34 -05:00
Eric Trombly
cf95a6ee91 fix attributeError if edge can't be flipped 2020-07-14 18:53:54 -05:00
Eric Trombly
2e251ee967 cleaner fix 2020-07-10 15:42:00 -05:00
Eric Trombly
b4c2082b9e fix deleted object error 2020-07-10 15:42:00 -05:00
Eric Trombly
7fe094ac02 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
b8e92ba958 Fixed segfault if some extensions end up being not valid. 2020-01-03 19:00:15 -08:00
Daniel Wood
2996b815ae Handle selecting the coolant mode in the forms 2019-08-28 19:40:08 +01:00
Markus Lampert
f34ac89266 switched to pylint3 and fixed additional warnings 2019-07-01 15:32:54 -07:00
Markus Lampert
7abb496144 addressed pylint warnings for PathPocket family 2019-07-01 15:32:54 -07:00
Markus Lampert
68939608ea Properly deal with deleted objects when cleaning up the extension visualisation. 2019-06-29 19:16:33 -07:00
Markus Lampert
4fb0b04a39 Fixed extensions for round holes. 2019-06-29 18:16:56 -07:00
Markus Lampert
9c5fa124c3 Fixed extension selection 2019-06-29 18:16:56 -07:00
sliptonic
b55c210f39 remove unnecessary imports. normalize debug log levels 2019-06-21 13:01:01 -05:00
markus
fb62e3940e Moved FreeCADGui dependency from PathUtils into PathUtilsGui 2019-06-02 11:03:14 -07:00
markus
a19170ba6a Python3 fix for iterating over dictionary keys 2019-04-07 12:20:45 +02:00
Markus Lampert
01b3f57084 Fixed colour for visibility and changed selection model to extended. 2019-04-07 12:20:45 +02:00
Markus Lampert
ae7ffd2be3 Persiste ExtensionCorners state for consistent UI 2019-04-07 12:20:45 +02:00
Markus Lampert
b583439b27 Added Show All pocket extension checkbox for better UX. 2019-04-07 12:20:44 +02:00
Markus Lampert
2fb4196630 Use colour to indicate pocket extension enablement 2019-04-07 12:20:44 +02:00
Markus Lampert
06bafa372f Encapsulating swtich in _Extension class 2019-04-07 12:20:44 +02:00
Markus Lampert
0367c28fbc Added support for global extend corners 2019-04-07 12:20:44 +02:00
Markus Lampert
dcbe97144b Maintain tree collapse state over extension refreshs 2019-04-07 12:20:44 +02:00
Markus Lampert
6df14de1e9 Maintain extension selection over update. 2019-04-07 12:20:43 +02:00
Markus Lampert
6fb98ed5c2 Fixed update of extensions when length changes 2019-04-07 12:20:43 +02:00
Markus Lampert
b01d10055b Switched extension UI to tree view dependent on the base objects. 2019-04-07 12:20:43 +02:00
markus
10428fd3cb Using offset2D for properly creating the extension 2019-04-07 12:20:42 +02:00
markus
58f5cfa5ae Disabling length and direction columns for now. 2019-04-07 12:20:42 +02:00
markus
fbdc3dad54 Fixed UI to update dirty state correctly 2019-04-07 12:20:42 +02:00
markus
1b214515d9 Cleanup so artifacts on task panel close. 2019-04-07 12:20:42 +02:00
markus
1c74eee9df Simple visualisation of removal shape extensions. 2019-04-07 12:20:42 +02:00
markus
c8dc0e344d Added extracting the wire of an extension 2019-04-07 12:20:41 +02:00
markus
159f5ae931 Basic UI to add extension features. 2019-04-07 12:20:41 +02:00
markus
068c0724e8 Basic UI for editing pocket shape extensions. 2019-04-07 12:20:41 +02:00
markus
79def8b235 Added UI page pocket extension; changed selection agent. 2019-04-07 12:20:41 +02:00
Markus Lampert
ee49b9874d 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
04807fddd7 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
57c0463583 Basic pocket generation from horizontal faces. 2017-09-28 11:27:46 -07:00
Markus Lampert
5c7a17cf8b Added copy of pocket op back into the UI. 2017-09-28 11:27:46 -07:00