Commit Graph

1676 Commits

Author SHA1 Message Date
Syres916
8d11ced84b [Draft] Wire To BSpline fix to show new object
Discussion https://forum.freecadweb.org/viewtopic.php?f=8&t=39466
2019-10-07 13:45:25 -03:00
vocx-fc
7a655c25de Draft: DraftTools, place the CubicBezCurve tool before the BezCurve, as the cubic curve is more used. 2019-10-07 13:45:01 -03:00
vocx-fc
e731d08c38 Draft, makeBezCurve(), changed parameter Degree to degree, preferred lowercase 2019-10-07 13:44:25 -03:00
Francesco Fantoni
eeae3457c4 removed trailing whitespace 2019-10-07 11:26:16 -03:00
Francesco
1da10e84af fixes issue aligning workplane to a face
this is a quick workaround for a problem introduced in the Draft select plane procedure while refactoring the code. not sure it is the best fix though.
2019-10-07 11:26:16 -03:00
Zheng, Lei
694cfc202e Draft: relax Part::Feature type checking for Link support
Replace isDerivedFrom('Part::Feature') with hasattr(obj,'Shape')
2019-10-07 10:48:42 -03:00
vocx-fc
2aa14761d2 Draft: modify the permissions of the icons (755), so that they don't have the execute permission (644) 2019-10-07 14:18:52 +02:00
vocx-fc
f55059cedf Draft: new icon for Draft_Dimension in the tree view in SVG, instead of XPM 2019-10-07 14:17:17 +02:00
vocx-fc
ec0d50459c Draft: re-order alphabetically the resources in Draft.qrc to be easier to spot missing files 2019-10-07 14:17:08 +02:00
luz.paz
fb32601746 Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,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,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`
2019-10-03 07:57:13 +02:00
luz.paz
daf96d29fd Draft: DraftEdit.py now gets PickRadius from user preferences
...instead of being hardcoded.  
Note: PickRadius is the proximity in pixels for picking elements in the 3D view  
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=39203
2019-09-28 12:49:33 +02:00
luz.paz
5807e0b531 Fix typos, grammar, and some whitespace issues
Found via `codespell -q 2 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,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,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`
2019-09-07 11:58:38 -04:00
vocx-fc
48aa182287 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
2463c2a7d5 Draft: Allow to set a default camera height 2019-09-05 20:50:29 -03:00
vocx-fc
c68c63599a 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
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
vocx-fc
f29765ff7b Draft: importDXF, added docstrings to every function 2019-09-04 11:30:48 -03:00
Yorik van Havre
90b5f63bc2 Draft: Show info message if an object cannot be scaled 2019-09-03 11:55:07 -03:00
luz.paz
7af7c10cf1 Fix misc. typos, whitespace, and http:// to https:// issues 2019-09-03 11:11:43 -03:00
Yorik van Havre
91ca523f54 Draft: Moved SelectPlane stuff from DraftGui to its own ui file 2019-09-02 22:15:58 -03:00
Yorik van Havre
b7b8dbabf5 Split Draft_SelectPlane and DraftSetWorkingPlaneProxy to a separate file 2019-09-02 17:23:57 -03:00
carlopav
6b693ebcb4 [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
d7ece2d1d8 [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
cd3c649146 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
46e5a4c1f2 [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
8ad88c75f2 [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
5aeadc5175 [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
54e327ba9b [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
bfae0408ac 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
6666a33433 Draft: Added shortcut to toggle near snap during drawing 2019-09-01 13:00:57 -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
Zheng, Lei
de9732db1e Draft: disable implicit property linking in LinkArray 2019-08-30 13:35:25 +02:00
Yorik van Havre
5d2713e43f Draft: Export DXF objects with BYLAYER color if applicable 2019-08-28 22:48:57 -03:00
Yorik van Havre
8782d39f8b Draft: further fixes to svg generation code 2019-08-28 21:21:05 -03:00
Yorik van Havre
24caf8dab1 Draft: Fixed text color and faces with holes in SVG rendering 2019-08-28 20:09:25 -03:00
Yorik van Havre
04ff03fb58 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
0e27f88bb7 Draft: Support for layer colors and linestyles in DXF import/export (legacy) 2019-08-27 22:59:35 -03:00
Yorik van Havre
0b3df322fb Draft: misc small fixes 2019-08-27 21:29:20 -03:00
Yorik van Havre
f16f58c040 Draft: Fixed tooltips 2019-08-26 14:16:19 -03:00
Yorik van Havre
1e718010b9 Draft: Fixed regression in snapping 2019-08-26 14:01:15 -03:00
Yorik van Havre
d45a4a347e Draft: fixed color buttons dialogs not starting with the right color 2019-08-24 19:41:26 -03: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
vocx-fc
f5f4fd5e07 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
b57132d53d Draft Edit: enable Part::Line editing
Implemented editing part lines. Preview still to come.
2019-08-20 10:29:50 -03:00
carlopav
ed021a042c 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