Commit Graph

48 Commits

Author SHA1 Message Date
Wanderer Fan
15917cd60f [TD]fix artifact in PDF export 2022-04-07 08:46:11 -04:00
Wanderer Fan
e91cc8e329 [TD] avoid memory leaks by using shared_ptr
TD geometry objects are sometimes double deleted.  This
change uses shared_ptr instead of raw pointers to manage
deletions.
2022-01-07 13:34:20 -05:00
luz paz
ff5f3799d8 Fix various typos [skip-ci]
Found via `codespell v2.0.dev`  
```
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,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,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
```
2020-11-04 10:18:30 +01:00
wmayer
2057e151d8 Qt5: fix deprecation warnings for Qt 5.15
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
+ overloaded version of QString::split is deprecated
+ QSysInfo::windowsVersion()/QSysInfo::MacVersion() is deprecated
2020-10-18 14:45:31 +02:00
wandererfan
04f1842308 [TD]remove obsolete QGraphicsSVGItem (LGTM) 2020-07-26 19:45:49 -04:00
wmayer
da6b379566 fixes #0004318: Compilation fails with Qt 5.15 beta with QPainterPath errors [skip ci] 2020-07-02 13:19:43 +02:00
donovaly
1ae69d2ac8 code simplification 2020-06-13 09:46:20 -04:00
donovaly
79b267a3dc [TD] fix hatch color issue
as discussed: https://forum.freecadweb.org/viewtopic.php?f=35&t=47536&p=407916#p407916
there are 2 types of SVG declarations possible
2020-06-13 09:46:20 -04:00
wandererfan
cda235aba0 [TD]Fix geometric hatch in Pdf 2020-06-09 07:22:00 -04:00
wandererfan
a9b718d1e0 [TD]Export Svg hatch as bitmap 2020-05-29 20:53:24 -04:00
wandererfan
57bfc2e380 [TD]fix Svg hatch on export 2019-12-17 08:29:49 -05:00
wandererfan
4b853ab9f6 [TD]Fix selection highlight for QGIPrimPath children 2019-09-09 15:40:39 -04:00
wandererfan
dd459f0d88 [TD]Allow transparent Faces as default 2019-09-08 07:13:23 -04:00
wandererfan
0d01744098 [TD]Clean up Welding Symbol creation 2019-08-22 17:11:55 -04:00
wandererfan
21efae348e [TD]Fix #4017 Crash on bad hatch scale 2019-07-19 11:01:20 -04:00
wandererfan
5970e91ef2 [TD]Py Cosmetic Vertex, Line, Circle Arc 2019-07-15 12:36:48 -04:00
wandererfan
3e0452417b Cosmetic CL for Section and Detail 2019-06-06 19:58:15 -04:00
WandererFan
5bc256d3f2 Fix "still touched after recompute" and display 2017-12-03 19:17:53 -02:00
WandererFan
0768ae99cf Coverity fixes
CID 156629  - obsolete
CID 156624  - obsolete
CID 163225  - won't fix
CID 163226
CID 163227
CID 163228
CID 163229
CID 163235
2017-06-23 08:14:46 +02:00
WandererFan
76280891a1 DrawGeomHatch improvements
-draw & align dash patterns correctly on all QPainters using QGPathItem
-Allow patterns to start with space
-ensure horiz & vert lines pass through pattern origin
-Scalable complex patterns
2017-05-10 17:43:48 +02:00
WandererFan
75397d9e43 clean up GeomHatch feature, gui & dialog
Refactor code, allow dialog to edit feature, update graphics on change
prep for dash line start positioning.
2017-05-10 17:43:48 +02:00
wmayer
64d0eb95f3 can't assign nullptr to a QPixmap 2017-01-30 14:13:57 +01:00
WandererFan
84b858a142 fix naming conflicts 2017-01-29 19:40:34 -05:00
WandererFan
299ac94c9f Geometric hatch for Section face 2017-01-29 19:40:34 -05:00
WandererFan
f51b5818cc Initial working version of geometric crosshatch/PAT files 2017-01-29 19:40:34 -05:00
WandererFan
5007193541 Initial Bitmap fills for Faces
- also texture from svg (not used yet)
2017-01-29 19:40:32 -05:00
WandererFan
fe617e1433 Make SVG hatches scalable 2017-01-29 19:40:32 -05:00
WandererFan
b27a526cd6 remove unnecessary includes
remove obs code
remove obs initializations
2016-09-28 20:24:47 -04:00
WandererFan
ecbd8c8dc0 Control Face edges from Part/Section 2016-09-28 20:24:46 -04:00
WandererFan
4cb4e5f04a Create ViewSection from ViewPart
Property name changes
Touch section when View SymbolSection changes
2016-08-26 11:39:03 -03:00
WandererFan
094a63356f Exclude hatches from SVG export.
QtSvg does not support clipping which is required for hatches.
2016-07-17 10:43:54 -04:00
WandererFan
2c8f497292 Get user prefs at time of use 2016-07-14 15:55:57 -04:00
WandererFan
19968205d2 Include file cleanup per cppclean analysis 2016-07-14 14:39:06 +02:00
WandererFan
8d859c91e1 Fix Vertex hover behaviour
Refactor to reduce duplicate code
Fix Section face color mix on hover
2016-07-11 15:32:16 +02:00
WandererFan
7f442f1f42 Fix sloppy Namespace qualifiers 2016-07-11 15:32:16 +02:00
WandererFan
05d94f31f8 Colored SVG Hatch patterns 2016-07-11 15:32:16 +02:00
WandererFan
731f76f52d Hatch using svgItem 2016-07-11 15:32:16 +02:00
WandererFan
ba71e074ce DrawHatch derives from DocumentObject
Remove Face selected box
Add Face# to Hatch Label
2016-07-11 15:32:16 +02:00
WandererFan
bca002ff09 Hatch View Faces 2016-07-11 15:32:16 +02:00
WandererFan
d26fa56838 Fix non-section faces in ViewSection 2016-07-11 15:32:16 +02:00
WandererFan
6cec1df189 Working Face selection 2016-07-11 15:32:16 +02:00
WandererFan
f11e8ffa10 Basic Face detection using BGL 2016-07-11 15:32:16 +02:00
Ian Rees
6133971747 Cleaning up compile warnings. 2016-07-11 15:32:16 +02:00
WandererFan
3b96cbbeb6 wmayer patch for Win & OCC7 compat 2016-07-11 15:32:16 +02:00
WandererFan
20de9af2c2 Fix Hatch path fp math
Fix section face painting
2016-07-11 15:32:16 +02:00
WandererFan
ccdb56c06e use Mod/TechDraw for preferences 2016-07-11 15:32:16 +02:00
WandererFan
a9d6f1568b /QGI/QGraphicsItem/ 2016-07-11 15:32:16 +02:00
WandererFan
7c009c6def Add Mod/TechDraw/Gui 2016-07-11 15:32:16 +02:00