nahshon wrote: ↑Sun Aug 27, 2017 3:08 am
There is redundancy in these files. Which ones are relevant?
Code: Select all
-rw-rw-r--. 1 itai itai 41696 Aug 5 19:49 PathDressupHoldingTags.py
-rw-rw-r--. 1 itai itai 25947 Aug 5 19:49 PathDressupTagGui.py
-rw-rw-r--. 1 itai itai 4759 Aug 5 19:49 PathDressupTagPreferences.py
-rw-rw-r--. 1 itai itai 10421 Aug 22 21:06 PathDressupTag.py
PathDressupTag.py was an start to rewrite holding tags - I probably should have removed it, it's not active right now. I factored the tag preferences into PathDressupTagPreferences.py and the Gui (for both implementations) is in PathDressupTagGui.py. The actual implementation is still the original - quite fragile - in PathDressupHoldingTags.py.
In case you want to experiment that is the currently active code. If you would like to take over the re-implementation I would recommend looking at PathDressupTag.py.
Some problems:
When I add tags to a path, the path appears twice in the tree view (under the job and under "TagDressup"). The unmodified original path is still active and visible.
This should not happen. Is there a chance you get an error? Could you share a file where this happens?
When I delete the TagDressup the orig path is still there but it is not in the tree view.
Again, this shouldn't happen. When you delete a dressup the base path should be moved back into the Job. A test file where this happens would be great.
Deleting a job moves its children to the parent document. I do not expect to see tool controllers and paths directly under the document (even when a gcode file is opened/imported, create a job for it!).
Agreed, this has been annoying me as well. I started implementing this in a branch I currently work on, when a job is deleted it will also delete all its dependent children. There is no point in keeping any of them around, the only thing one can do with them is delete them anyway.