Commit Graph

284 Commits

Author SHA1 Message Date
WandererFan
6dc017a1ce Add notes re Kura. subgraph 2016-09-11 13:12:24 -04:00
WandererFan
884a32fabf Coverty changes:
** CID 152490:  Control flow issues  (DEADCODE)
** CID 152492:  Null pointer dereferences  (FORWARD_NULL)
** CID 152493:  Null pointer dereferences  (FORWARD_NULL)
** CID 152494:  Null pointer dereferences  (FORWARD_NULL)
** CID 152495:  Null pointer dereferences  (FORWARD_NULL)
** CID 152496:  Null pointer dereferences  (FORWARD_NULL)
** CID 152497:  Null pointer dereferences  (FORWARD_NULL)
** CID 152502:  Null pointer dereferences  (REVERSE_INULL)
** CID 152507:  Uninitialized members  (UNINIT_CTOR)
** CID 152508:  Uninitialized members  (UNINIT_CTOR)
** CID 152508:  Uninitialized members  (UNINIT_CTOR)
** CID 152510:  Uninitialized members  (UNINIT_CTOR)
2016-09-11 13:12:24 -04:00
WandererFan
bcb29541aa Suppress extraneous log messages 2016-09-11 13:12:24 -04:00
WandererFan
6c937e1bbe Protect EdgeWalker against bad input 2016-09-11 13:12:24 -04:00
WandererFan
d3afb32487 Avoid Bnd_Box is void exception when shapes don't intersect. 2016-09-11 13:12:24 -04:00
WandererFan
a5b5104875 Implement Cancel logic for TaskViewSection 2016-09-11 13:12:24 -04:00
WandererFan
17fe63598f Handle case where no faces found in View. 2016-09-11 13:12:24 -04:00
WandererFan
70420d9e3b Fix getViewObject inheritance across all ViewProviders 2016-09-11 13:12:24 -04:00
WandererFan
5fd19bb5f4 Break up try/catch blocks for easier debugging 2016-09-08 16:18:52 +02:00
WandererFan
cebe2faee1 Handle degenerate edges in face detection 2016-09-08 16:18:52 +02:00
WandererFan
c0428a940b minor fixes SectionFace zOrder, orphan graphics items 2016-09-01 12:14:43 -04:00
WandererFan
7e04c17bdd Fix part/section handling of Face OuterWire 2016-09-01 12:14:43 -04:00
WandererFan
b75f82b500 Fix for Wires with same bbox, different areas 2016-09-01 12:14:43 -04:00
WandererFan
13afc71260 Handle zero length TopoDS_Edge in Geometry 2016-09-01 12:14:42 -04:00
WandererFan
0ba0351666 Minor performance improvements 2016-09-01 12:14:42 -04:00
WandererFan
34644e9d71 Fix Section arrows,xDir,label 2016-09-01 12:14:42 -04:00
WandererFan
b47eff76ae Changes re const, ref and TopExp per wmayer
Refactor debug routines to DrawUtil
2016-09-01 12:14:42 -04:00
WandererFan
9a93185f7e Py binding for EdgeWalker
refactor EdgeWalker code from DVP,DVS
2016-09-01 12:14:42 -04:00
WandererFan
27ff991d79 Fix ProjectionGroupItem spacing 2016-09-01 12:14:42 -04:00
WandererFan
3901d2fe82 Add View centerlines 2016-09-01 12:14:42 -04:00
Yorik van Havre
77dec4b91d TechDraw: Forgot one icon in last commit 2016-08-26 12:30:25 -03:00
Yorik van Havre
f0daa5ae16 TechDraw: Made some icons legible on dark UI theme 2016-08-26 12:25:43 -03: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
adb2fdafa5 Add methods for removing equivalent edgeLists from result 2016-08-26 11:39:03 -03:00
Ian Rees
8cc3ee64e8 TechDraw: Fix Coverity dynamic_cast warnings 2016-08-21 11:08:29 +02:00
wmayer
58bf4ca455 fix warning 2016-08-16 15:24:33 +02:00
WandererFan
0023758263 Linear dims closer to stds 2016-08-16 14:29:15 +02:00
WandererFan
0d0040355c Fix sections not in xy plane 2016-08-16 14:29:15 +02:00
WandererFan
cf90d69319 Implement automatic scaling 2016-08-16 14:29:15 +02:00
WandererFan
fa57b7a5de Fix dimension highlighting problems
Derived all lines from PrimPath
2016-08-16 14:29:15 +02:00
WandererFan
5c63c8a957 Remove refs to Dim centerline property from commands 2016-08-16 14:29:15 +02:00
WandererFan
5c62493b31 QGIArrow inherits QGIPrimPath 2016-08-16 14:29:15 +02:00
WandererFan
4fe4c31966 Add vertex-edge dimension 2016-08-16 14:29:15 +02:00
WandererFan
af7d257b91 Add centermarks for circles in Views 2016-08-16 14:29:15 +02:00
Ian Rees
d9b4213989 TechDraw: Clean up warnings about missing override 2016-08-16 08:15:53 +12:00
Ian Rees
b432a0333c TechDraw: Coverity warning CID 151763 2016-08-16 08:15:53 +12:00
Ian Rees
34583fad05 TechDraw: Fix some Coverity Unchecked dynamic_cast
CIDs from sasobadovinac-FreeCAD:
151684
151714
151715
151716
151718
151719
151720
151721
151722
151724
151725
151730
151749
151759
151771
151794
2016-08-16 08:15:36 +12:00
Ian Rees
66bd0f6b90 TechDraw: Fix Coverity "Structurally Dead Code"
CID 152020
2016-08-16 08:15:09 +12:00
Mateusz Skowroński
7e0181463c QFileDialg::setFilters() is obsolete in Qt4. Replace it with setNameFilters().
This change is Qt4/Qt5 neutral.
2016-08-15 14:15:05 +02:00
Mateusz Skowroński
8c6bede7b8 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-08-15 14:14:40 +02:00
wmayer
df8e53630d using unicode codepage directly gives a warning, use utf-8 encoding instead 2016-08-12 10:45:14 +02:00
WandererFan
cb05040a0f Vertical Diameter legible from right per stds 2016-08-12 10:01:16 +02:00
WandererFan
d8ccf14ec3 Prevent creation of superflous QGItems for Text Fields 2016-08-12 10:01:16 +02:00
WandererFan
ef69519261 Diameter symbol & text orientation to standards. 2016-08-12 10:01:16 +02:00
WandererFan
3eb9037ada Handle non-latin1 chars in template 2016-08-12 10:01:16 +02:00
WandererFan
6ad50696b9 Replace GPL osifont file with LGPL3 version 2016-08-12 10:01:16 +02:00
wmayer
1c1f0dfe49 fix various compiler warnings 2016-08-09 13:16:26 +02:00
Wolfgang E. Sanyer
7f4a437cc2 This commit adds getShape and setShape to TopoShape 2016-08-06 23:42:55 +02:00
WandererFan
a539cec1a3 Correct Radius leader behaviour 2016-08-01 19:27:52 -03:00
WandererFan
40fa4e0d40 Qt item parenting and garbage collection
Remove dupl/obsolete code
2016-08-01 19:27:52 -03:00
WandererFan
3588479ff5 Add LineWidth property for Dimension lines 2016-08-01 19:27:52 -03:00
WandererFan
e95d527267 Fix 2630 Dimension line thickness in SVG & print
Meaningful variable names.
2016-08-01 19:27:52 -03:00
WandererFan
fe871cd245 Correct pageSize determination
remove obsolete code
2016-08-01 19:27:52 -03:00
WandererFan
78924d3a22 Fix scaling for ViewSymbol 2016-08-01 19:27:52 -03:00
wmayer
1e2e24b652 + rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00
WandererFan
cb51799f60 Refactor method to base View
Auto allocate member attributes
2016-07-23 15:03:39 +02:00
WandererFan
aa8fea7ba4 Fix GH Issue 49 Clip artifact 2016-07-23 15:03:39 +02:00
WandererFan
222492c912 remove unneeded boundingRect methods 2016-07-23 15:03:39 +02:00
WandererFan
48bd90004f Remove obs property & code 2016-07-23 15:03:39 +02:00
WandererFan
c8a4cf20ad Simplify ClipMinus selection logic 2016-07-23 15:03:39 +02:00
WandererFan
131c34cf9e Center new view on Page/ClipGroup 2016-07-23 15:03:39 +02:00
WandererFan
62a8828dc8 Fix 0002627 wrong value in dimension
Remove obolete dimension properties
2016-07-21 19:50:38 -04:00
WandererFan
985ac47f67 Prevent buildup of old QGItems 2016-07-17 10:43:55 -04: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
e62d883f54 Prevent invisible faces.
Warn if Direction == XAxisDirection
2016-07-14 18:10:27 -04:00
WandererFan
2c8f497292 Get user prefs at time of use 2016-07-14 15:55:57 -04:00
WandererFan
9dec3c540e Fix default normal/select/preselect colors 2016-07-14 15:55:57 -04:00
Mateusz Skowroński
9154f31f51 Fix files encoding. Go from ISO8859-1 to UTF-8. 2016-07-14 14:49:19 +02:00
WandererFan
bda5c6233c Remove unconnected signals 2016-07-14 14:39:06 +02:00
WandererFan
de76cd6b53 Remove superfluous OCC includes 2016-07-14 14:39:06 +02:00
WandererFan
19968205d2 Include file cleanup per cppclean analysis 2016-07-14 14:39:06 +02:00
WandererFan
3c2222ba60 Fix #58 ProjectionGroupItem positioning after restore 2016-07-12 15:53:20 -04:00
WandererFan
1a87644f44 DrawViewSymbol forgets Scale on restore 2016-07-12 15:20:08 -04:00
WandererFan
2ac560e7b0 Fix template field dialog multiple instances 2016-07-11 15:32:16 +02:00
WandererFan
277a00dc3c dlgTemplateField parentage
cosmetic: move button box
2016-07-11 15:32:16 +02:00
WandererFan
8edfa147da Implement ShowCutSurface 2016-07-11 15:32:16 +02:00
WandererFan
fc9c4d2bf5 Fix #56 ViewSection
- too many edges in result
2016-07-11 15:32:16 +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
dd5b461e35 Fix crash in dtor of QGVPage 2016-07-11 15:32:16 +02:00
WandererFan
19ff06c9cd View does not appear on Redo
Crash in Page on Redo View
2016-07-11 15:32:16 +02:00
WandererFan
32a8621e14 Dimension Precision property does not update
VPs updateData doesn't call parent
2016-07-11 15:32:16 +02:00
WandererFan
c4aa9973d3 Apply "layout" to template field dialog 2016-07-11 15:32:16 +02:00
WandererFan
66fa2a242e prevent fail when scale is zero 2016-07-11 15:32:16 +02:00
WandererFan
350d8bb55b fix precision and thousands separator 2016-07-11 15:32:16 +02:00
WandererFan
8e70d6c569 Changed UI 2016-07-11 15:32:16 +02:00
WandererFan
eb0097782b Add unit tests for TechDraw 2016-07-11 15:32:16 +02:00
WandererFan
f613a91460 Handle accented chars 2016-07-11 15:32:16 +02:00
WandererFan
c880c0c704 TemplateTextField double click crash 2016-07-11 15:32:16 +02:00
WandererFan
0ee878fa47 Correct Radius Dim leader behaviour 2016-07-11 15:32:16 +02:00
WandererFan
57b79da3af regex_replace invalidates iterators 2016-07-11 15:32:16 +02:00
WandererFan
a68b6d068f typo in pixmap name 2016-07-11 15:32:16 +02:00
WandererFan
26aff79a31 Fixes 1-3 per wmeyer 2016-07-11 15:32:16 +02:00
WandererFan
7a0ae3af52 remove Handle_Geom_Curve.hxx for OCC7 2016-07-11 15:32:16 +02:00
WandererFan
7f442f1f42 Fix sloppy Namespace qualifiers 2016-07-11 15:32:16 +02:00
WandererFan
ed2de2c06e Default font to Sans from osifont 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
efe10e0fb9 Fix #11 View Selection In Tree 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
cd96b40983 Removed unused QObject inheritances. 2016-07-11 15:32:16 +02:00
Ian Rees
b883434318 Remove ctor args from QGIView and descendents. 2016-07-11 15:32:16 +02:00
WandererFan
4fe9267eeb Add modified A3_Landscape template 2016-07-11 15:32:16 +02:00
WandererFan
510569f05b Fix issue 53 Drawing templates 2016-07-11 15:32:16 +02:00
WandererFan
f59173c728 Fix load Dimension w/ broken ref 2016-07-11 15:32:16 +02:00
Ian Rees
6133971747 Cleaning up compile warnings. 2016-07-11 15:32:16 +02:00
Ian Rees
0e68943ac3 Tidy up in MDIViewPage 2016-07-11 15:32:16 +02:00
WandererFan
1b7b6d96aa Handle malformed SVG in Template
Prevent invalid data input for Editable Text
2016-07-11 15:32:16 +02:00
WandererFan
1bf3d2b9e6 Yet another /Drawing/TechDraw/ edit! 2016-07-11 15:32:16 +02:00
WandererFan
3eba56d463 Apply fix (FC2347) for boost v1.60.0 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
015c538638 Py convenience functions for Template EditableTexts 2016-07-11 15:32:16 +02:00
WandererFan
2c73823788 Prettify dialog to change EditableTexts 2016-07-11 15:32:16 +02:00
WandererFan
a4061bb6a5 Fix #10 View Visibility 2016-07-11 15:32:16 +02:00
WandererFan
c37df54c0f fix BRect calc for non-custom items 2016-07-11 15:32:16 +02:00
WandererFan
665bea53cf Svg DrawViewSpreadsheet 2016-07-11 15:32:16 +02:00
Ian Rees
898587454f Turned DrawUtil into class with static methods. 2016-07-11 15:32:16 +02:00
Ian Rees
c6bcfd84ce chainGeoms() and nextGeom() are now static methods 2016-07-11 15:32:16 +02:00
Ian Rees
88bc3574aa Whitespace cleanup. 2016-07-11 15:32:16 +02:00
WandererFan
358c55c228 Use Units Decimal setting 2016-07-11 15:32:16 +02:00
WandererFan
dc205d37fc fix #16 Units for Dimensions 2016-07-11 15:32:16 +02:00
WandererFan
5af541e340 Standardize icon naming 2016-07-11 15:32:16 +02:00
WandererFan
9a85375705 fix default Hatch file/dir 2016-07-11 15:32:16 +02:00
WandererFan
37df199f24 avoid assert fail on DrawPatch attach 2016-07-11 15:32:16 +02:00
Ian Rees
268aa8b3ec Tidy up after bad merge 2016-07-11 15:32:16 +02:00
WandererFan
fb439b3d34 Handle multiple DrawPage in Document 2016-07-11 15:32:16 +02:00
WandererFan
bd1c150930 remove obsolete 3D reference code 2016-07-11 15:32:16 +02:00
WandererFan
d73ffaa55b Preserve True/Projected state on save/restore 2016-07-11 15:32:16 +02:00
WandererFan
7f7e63dfe0 link Dimension to 3D geometry 2016-07-11 15:32:16 +02:00
WandererFan
88ad069817 change Dimension.ProjectionType -> MeasureType 2016-07-11 15:32:16 +02:00
Ian Rees
e4b5bba140 Move SVG output method from MDIViewPage to QGVPage 2016-07-11 15:32:16 +02:00
WandererFan
83a0078bd5 Fix App logic in ViewProviders -> segfaults 2016-07-11 15:32:16 +02:00
WandererFan
bd13d33937 Fix View positioning for Automatic scaling 2016-07-11 15:32:16 +02:00
WandererFan
7c6d92238a Fix Angle Dimension validation 2016-07-11 15:32:16 +02:00
WandererFan
96d817e280 Fix #41 Projoection Group Spacing
Fix glitch when change First <-> Third Angle
2016-07-11 15:32:16 +02:00
Ian Rees
1b52a517bf Disable commands when no active document. 2016-07-11 15:32:16 +02:00
Ian Rees
a01e774405 Fix enum values for first/third angle preference 2016-07-11 15:32:16 +02:00
WandererFan
ac0963c561 Fix Part display on property changes 2016-07-11 15:32:16 +02:00
WandererFan
32e3c01c2d Fix Document/Custom Scale handling 2016-07-11 15:32:16 +02:00
WandererFan
c32d71c47f Add more preferences 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
a996c0a3af Brush rendering notes 2016-07-11 15:32:16 +02:00
WandererFan
a15825fa4c Fix issue #29 view handles 2016-07-11 15:32:16 +02:00
WandererFan
8cbd6d0b23 Section face positioning/display 2016-07-11 15:32:16 +02:00
WandererFan
af7d7f3118 ScaleType/Scale linkage & PropertyEditor 2016-07-11 15:32:16 +02:00
WandererFan
8a9c708659 HLR looses Shape for some ProjGroupItems 2016-07-11 15:32:16 +02:00
WandererFan
012693a190 Missing ProjectionGroup icons 2016-07-11 15:32:16 +02:00