Commit Graph

13 Commits

Author SHA1 Message Date
vocx-fc
ee11678a58 Draft: migrate Layer object and function to the new structure
Move `make_layer` to `draftmake`; `Layer` and `LayerContainer`
to `draftobjects`; `ViewProviderLayer` and `ViewProviderLayerContainer`
to `draftviewproviders`.

The make function and the classes are imported in `Draft.py`
to support the usage of the older `VisGroup`.
2020-07-20 14:21:15 +02:00
vocx-fc
fc469186e7 Draft: migrate individual properties
Since we know how the old class looks like,
we can write code to save the value of the older properties,
and then remove them.

Then we can assign the new class, which will create new properties,
and then we can assign the old values to these.

This can be done for both the proxy object and
for the viewprovider.
2020-05-13 11:37:56 +02:00
vocx-fc
1779b261bf Draft: use onDocumentRestored to migrate the Fillet
Identify the previous object as `DraftFillet.Fillet`
and then use the new proxy class `draftobjects.fillet.Fillet`
and new viewprovider `view_fillet.ViewProviderFillet` on it.
2020-05-13 11:37:56 +02:00
vocx-fc
7ff41b51a9 Draft: remove old DraftFillet class, and make it a redirect
Remove the make function that creates the old object,
its corresponding Gui Command, and the old `DraftFillet.Fillet`
proxy class, which now is a redirection to the new `Fillet`
class defined in `draftobjects.fillet`.

Also change the unit test, and the `draft_test_object` script
to run `Draft.make_fillet`.
2020-05-13 11:37:56 +02:00
vocx-fc
478510d20e Draft: Snapper class with new gui_trackers module
Also change the imports in `DraftFillet.py`
and `DraftEdit.py` so the trackers are found.
2020-03-23 12:14:33 +01:00
vocx-fc
ee2b8c8f52 Draft: DraftFillet clarified comment 2019-09-04 23:14:55 -03:00
vocx-fc
212a5b3291 Draft: DraftFillet, added option for turning the fillet into a chamfer, as the DraftGeomUtil.fillet() function supports it 2019-09-04 23:14:55 -03:00
vocx-fc
1c69298dff Draft: DraftFillet, provide module docstring and Doxygen documentation marks 2019-09-04 23:14:55 -03:00
vocx-fc
eddbfc1e7d Draft: DraftFillet, improved the tool, now the radius of the tool can be selected when launched; the tool should work without needing to import DraftFillet manually 2019-09-04 23:14:55 -03:00
Zheng, Lei
eb24c84468 Draft/Arch: maintain Python 2 compatibility
In order to pass test under Python 2
2019-08-30 14:56:18 +02:00
vocx-fc
271929016a Draft: DraftFillet, changed some things about the implementation. 2019-08-22 10:54:41 -03:00
vocx-fc
12746d6148 Draft: added Draft_Fillet.svg as an icon, as a variation of the Sketcher fillet icon. Add it to Draft.qrc. 2019-08-22 10:54:41 -03:00
vocx-fc
4c5e719e45 Draft: added DraftFillet.py to the sources, also InitGui.py, Draft.py, DraftTools.py, and CMakeLists.txt 2019-08-22 10:54:41 -03:00