Commit Graph

1814 Commits

Author SHA1 Message Date
vocx-fc
584f97b7db Draft: DraftLayer, provide Draft_Layer.svg icon, and use it instead of Draft_VisGroup.svg, even if it's the same to be consistent in the naming 2019-09-06 12:08:11 -03:00
Yorik van Havre
6cb7ddc74f Draft: Allow to set a default camera height 2019-09-05 20:50:29 -03:00
vocx-fc
e9f60b9191 Draft: importDXF, improved coding style, so it is closer to PEP8; spaces around commas and operators, and shorter lines (80 characters max) 2019-09-05 11:29:36 -03:00
vocx-fc
c3b07a9715 Draft: DraftFillet clarified comment 2019-09-04 23:14:55 -03:00
vocx-fc
343397504b 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
f54000a6b0 Draft: DraftFillet, provide module docstring and Doxygen documentation marks 2019-09-04 23:14:55 -03:00
vocx-fc
a2f65493a0 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
vocx-fc
7969979686 Draft: importDXF, added docstrings to every function 2019-09-04 11:30:48 -03:00
Yorik van Havre
b8de57d38e Draft: Show info message if an object cannot be scaled 2019-09-03 11:55:07 -03:00
luz.paz
f22ae848ea Fix misc. typos, whitespace, and http:// to https:// issues 2019-09-03 11:11:43 -03:00
Yorik van Havre
864619fcec Draft: Moved SelectPlane stuff from DraftGui to its own ui file 2019-09-02 22:15:58 -03:00
Yorik van Havre
9fb6aec313 Split Draft_SelectPlane and DraftSetWorkingPlaneProxy to a separate file 2019-09-02 17:23:57 -03:00
carlopav
b08dc749fe [Draft] Edit by default one object at once
Small optimization and set max number of edited objects to 1
2019-09-02 16:13:08 -03:00
carlopav
0dbd1201f5 [Draft] Edit: Allow multi object editing
Modified to accept multiple object (max 5). The tool set EditTrackers for every selected object. Then edited object is identified using clicked EditTracker.
2019-09-02 16:13:08 -03:00
carlopav
76bac3099e Allow for multiple object trackers + 1 line sketch edit
self.trakers is changed from list to dictionary. It now stores EditTrackers with {'object':[pointlist]}. Initial implementation is to allow editing wall height and wall base object.
2019-09-02 16:13:08 -03:00
carlopav
365e93c598 [Draft] Edit: Refactored object selection + bug on wall editing
Draft edit now get the editing object from data stored inside the EditTracker. This is the first step towards implementation of multi object editing.
2019-09-02 16:13:08 -03:00
carlopav
daa035870a [Draft] Edit: fixed bug with dimensions
Update function always receive global vector as target of the transformation.
2019-09-02 16:13:08 -03:00
carlopav
954a8d3aca [Draft] Edit: use lineui instead of pointui
use lineui for editing instead of pointUi and minor documentation changes
2019-09-02 16:13:08 -03:00
carlopav
e06fb52bd0 [Draft] Edit: separate selectstate functions
Separated functions that save, restore and set the select state of edited object from main functions.
2019-09-02 16:13:08 -03:00
Dion Moult
3c52a3c2d1 Fix UI labels and unit type to be angle instead of length when doing draft rotate 2019-09-02 16:05:36 -03:00
Yorik van Havre
679f7e91c7 Draft: Added shortcut to toggle near snap during drawing 2019-09-01 13:00:57 -03:00
Zheng, Lei
2c2aadaa5d Draft/Arch: maintain Python 2 compatibility
In order to pass test under Python 2
2019-08-30 14:56:18 +02:00
Zheng, Lei
24b1467a55 Draft: disable implicit property linking in LinkArray 2019-08-30 13:35:25 +02:00
Yorik van Havre
6fb468a1fe Draft: Export DXF objects with BYLAYER color if applicable 2019-08-28 22:48:57 -03:00
Yorik van Havre
66a3cd2248 Draft: further fixes to svg generation code 2019-08-28 21:21:05 -03:00
Yorik van Havre
ed26fc5418 Draft: Fixed text color and faces with holes in SVG rendering 2019-08-28 20:09:25 -03:00
Yorik van Havre
3e323fee14 Draft/TechDraw: Allow TD Draft views to not override individual colors and line type of rendered objects 2019-08-28 16:50:06 -03:00
Yorik van Havre
60a54207ac Draft: Support for layer colors and linestyles in DXF import/export (legacy) 2019-08-27 22:59:35 -03:00
Yorik van Havre
5b2e74c3bd Draft: misc small fixes 2019-08-27 21:29:20 -03:00
Yorik van Havre
e9cbbb38ff Draft: Fixed tooltips 2019-08-26 14:16:19 -03:00
Yorik van Havre
92895f7940 Draft: Fixed regression in snapping 2019-08-26 14:01:15 -03:00
Yorik van Havre
59ac90897b Draft: fixed color buttons dialogs not starting with the right color 2019-08-24 19:41:26 -03:00
vocx-fc
d3ade5520e Draft: DraftFillet, changed some things about the implementation. 2019-08-22 10:54:41 -03:00
vocx-fc
0f686edf89 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
d5ca09c77b 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
vocx-fc
18727135d8 Draft: _PointArray, removed the tabs, and replaced with four spaces; mixing spaces and tabs may cause a syntax error in Python 3 2019-08-20 10:31:01 -03:00
carlopav
d9e60c0471 Draft Edit: enable Part::Line editing
Implemented editing part lines. Preview still to come.
2019-08-20 10:29:50 -03:00
carlopav
a1e6019f82 Draft Edit: enable editing Part::Box
Added code to handle editing of part objects, ATM only for Part::Box
2019-08-20 10:29:50 -03:00
carlopav
5d75d68f64 Draft Edit: bugfix when Draft is activated without document
Fixed bug when Draft is activated but no document is active
2019-08-20 10:29:50 -03:00
carlopav
ec3a6ba0d9 [Draft] Small bugfix in bezcurve editing
Solved bug when clicking on empty space while editing continuity.
2019-08-20 10:29:50 -03:00
carlopav
9aac2df1a7 [Draft] Draft Edit: completed subcommand key event
Completed subcommand key edit
2019-08-20 10:29:50 -03:00
carlopav
13e605912c [Draft] Draft Edit - various fixes (fixes #3537)
https://forum.freecadweb.org/viewtopic.php?f=3&t=29743&start=70
To solve issue with Hidpi display  (fixes #3537), but also to improve node selection, I used some of @looo code from pivy graphics into the tool. 
So:
- i got rid of the action function
- i separated selection and editing callbacks
- i got the mouse position from the callback event and not from FreeCADGui.ActiveDocument.ActiveView.getCursorPos()
- i rewrote the node selection mechanism using soraypickaction instead of getObjectInfo() and getObjectsInfo()
- i tried to put a bit of order in all the mess i made and try to document it.
- also fixed some of the preview code.
- i'm really really sorry for not being able to split the commit in multiple one, but the changes are huge and i was just able to separate minor things...
2019-08-20 10:29:50 -03:00
Yorik van Havre
89961a33d4 Draft: removed degub message 2019-08-19 13:42:29 -03:00
Zheng, Lei
8162c9b67e Draft: fix PathLinkArray 2019-08-17 15:32:51 +02:00
Zheng, Lei
5509a9b438 Draft: fix Link(Path)Array 2019-08-17 15:32:51 +02:00
Zheng, Lei
4ba326fae0 Draft: fix for python2 2019-08-17 15:32:50 +02:00
Zheng, Lei
de66e563e0 Draft/Arch related changes
* Add Draft_LinkArray and Draft_PathLinkArray that uses link for both
  data and visualization, which supports linking external objects

* Add link group support for draft snap

* Fix ArchWindows expression ambiguity
2019-08-17 15:32:47 +02:00
Yorik van Havre
c168a7d14b Arch/TD: Support for Arch BuildingParts in TD ArchView 2019-08-16 19:03:49 -03:00
Yorik van Havre
33cb9ce0ba Draft: Shape2Dview now supports buildingparts 2019-08-16 16:40:50 -03:00
vocx-fc
a66c8a3136 Draft: importSVG, commit 2a139a89 accidentally introduced blady merged code that produced syntax errors; then 537a011a tried to fix it by removing the syntax errors; however a large block of text needs to be removed as well; this was supposed to happen in pull request #2418; however, that pull request no longer merges cleanly so it was withdrawn; this commit finally fixes the problem. 2019-08-14 14:41:58 -03:00