Commit graph

426 commits

Author SHA1 Message Date
Roman Telezhynskyi 05d064af1e Refactoring. 2022-10-08 14:22:52 +03:00
Roman Telezhynskyi b01fd72af9 Fix issues with elliptical arc. 2022-08-30 14:19:40 +03:00
Roman Telezhynskyi 9055f10658 Fix bug in seam allowance. 2022-08-29 18:13:46 +03:00
Roman Telezhynskyi 714a4e1715 Fix segmenting a simple curve. 2022-08-19 08:29:42 +03:00
Roman Telezhynskyi 2cf2dc5985 Fix segmenting a simple curve. 2022-08-13 17:57:26 +03:00
Roman Telezhynskyi 0ab0edc654 Refactoring. 2022-08-12 18:50:22 +03:00
Roman Telezhynskyi 4e07172a6f Cppcheck warnings. 2022-08-08 15:25:14 +03:00
Roman Telezhynskyi 672278209d Fix Setup multisize measurements dialog. Improved handling Height dimension. 2022-07-19 20:00:34 +03:00
Roman Telezhynskyi be430f8c7e Fix incorrect seam allowance. 2022-07-15 17:21:56 +03:00
Roman Telezhynskyi ca2fe5fff1 Improved curve segment warnings. 2022-05-20 15:49:25 +03:00
Roman Telezhynskyi e876a4d611 Fix issue in tool cut spline.
Infinite loop while calculating a t parameter.
2022-02-03 15:48:52 +02:00
Roman Telezhynskyi 1b188bf414 Compatibility issues. 2022-01-29 10:59:02 +02:00
Roman Telezhynskyi 141b33884d Redesign of pattern image.
Preparations for support of background image. #43
2022-01-11 17:24:16 +02:00
Roman Telezhynskyi cb30d5e3f4 Seam allowance not correct at intersection curve and axis. Closes #145 2021-09-24 12:51:39 +03:00
Roman Telezhynskyi bd229583d4 Test IsAllowanceValid method. 2021-07-10 16:13:29 +03:00
Roman Telezhynskyi 83c230e45f Update tests. 2021-07-10 15:51:51 +03:00
Roman Telezhynskyi 3c27c3ee46 Fix incorrect seam allowance. Closes #133 2021-06-22 19:04:13 +03:00
Roman Telezhynskyi daf42ccb67 Fix build. 2021-05-31 12:23:59 +03:00
Roman Telezhynskyi 3ae13febd3 Incorrect behavior of empty arc and elliptical arc. Closes #129 2021-05-31 12:07:28 +03:00
Roman Telezhynskyi 1cccaf097c Fix incorrect elliptical arc end angle. Closes #121 2021-04-20 19:56:30 +03:00
Roman Telezhynskyi 197a4a54e1 Fix incorrect seam allowance. Closes #120 2021-04-10 19:18:28 +03:00
Roman Telezhynskyi 56ae4a1381 Fix incorrect seam allowance. Closes #118 2021-04-07 20:38:56 +03:00
Roman Telezhynskyi bfe2cfb0e1 Fix incorrect seam allowance. Closes #114 2021-03-30 20:21:42 +03:00
Roman Telezhynskyi b2e75261b7 Fix incorrect seam allowance. Closes #113 2021-03-30 18:11:18 +03:00
Roman Telezhynskyi d5310d8ae1 Fix incorrect seam allowance. Closes #112 2021-03-30 16:20:38 +03:00
Roman Telezhynskyi 8d7dc4bc91 Remove test "GAVAUDAN Laure". smart-pattern/valentina#103 2021-03-04 14:41:51 +02:00
Roman Telezhynskyi 707e0e682d Improve point comparison. Loose restrictions for distance between points. smart-pattern/valentina#103
- Instead of default value for accuracy use 1 mm. This should help to cover more false positive cases.
- All tests are now enabled on all platforms.
- Added calculation of a distance between points to see exactly how big is difference.
2021-03-04 13:53:22 +02:00
Roman Telezhynskyi d3b9defbc6 Disable a test case for Windows 64 bit. 2021-02-24 16:45:20 +02:00
Roman Telezhynskyi cecc1dfd4e Incorrect fix of seam allowance distortion. Closes smart-pattern/valentina#99 2021-02-23 18:29:54 +02:00
Roman Telezhynskyi 9f940ba7cf Fix bug in seam allowance. 2021-02-23 16:08:12 +02:00
Roman Telezhynskyi e9f9fb0f30 Fix incorrect seam allowance for angle type second edge right angle. 2021-02-17 19:26:54 +02:00
Roman Telezhynskyi 2bb95154cd Fix Tape crash. 2021-02-06 15:52:21 +02:00
Roman Telezhynskyi 3c0c624682 Don't check warnings for a legacy mac os x build. 2020-12-26 19:44:55 +02:00
Roman Telezhynskyi abe92c667d Temporary enable full output for macosx. 2020-12-25 09:40:18 +02:00
Roman Telezhynskyi c3142b8b07 Remove deprecated QPrinter methods. 2020-12-19 13:13:03 +02:00
Roman Telezhynskyi 80d9fbc107 New function Warning. 2020-11-20 13:18:38 +02:00
Roman Telezhynskyi f3e3b9a45f Fix linker issue. 2020-10-31 11:39:14 +02:00
Roman Telezhynskyi 49d3ad1f80 Merge branch 'multisize-measurements-tables-improvement' into develop 2020-10-16 14:45:35 +03:00
Roman Telezhynskyi 92c3f75e02 Fix tests. 2020-10-16 12:16:47 +03:00
Roman Telezhynskyi 3133ae1609 Clean code. 2020-10-16 12:02:32 +03:00
Roman Telezhynskyi 4cea74d63b Loading measurements in Valentina. 2020-10-15 18:05:21 +03:00
Roman Telezhynskyi 8c0bcfec37 Fix regression in VAbstractCurve::CurveIntersectLine. 2020-10-13 12:12:52 +03:00
Roman Telezhynskyi e655a31ed2 Fix bogus newline in src/test/ValentinaTest/tst_vabstractpiece.cpp. Closes #61
(cherry picked from commit 12c360b33a)
2020-10-05 16:50:08 +03:00
Roman Telezhynskyi cea2671687 Saving dimensions. Reading dimensions. 2020-10-01 13:32:02 +03:00
Roman Telezhynskyi 12c360b33a Fix bogus newline in src/test/ValentinaTest/tst_vabstractpiece.cpp. Closes #61 2020-09-28 16:42:31 +03:00
Roman Telezhynskyi f150428925 Fix bug in VAbstractCurve::CurveIntersectLine.
QLineF::intersects not always accurate on edge cases. We must provide additional check.
2020-09-22 17:05:18 +03:00
Roman Telezhynskyi 15d02bc456 Fix invalid layout allowance. Closes #58 2020-07-31 16:31:27 +03:00
Roman Telezhynskyi 3383df193b More deprecation warnings. 2020-07-07 10:51:00 +03:00
Roman Telezhynskyi a887fcb3df New warning. Error calculating segment of curve. 2020-07-04 15:13:45 +03:00
Roman Telezhynskyi 31db32b2b1 Fix generating a seam allowance. Closes smart-pattern/valentina#36. 2020-06-02 13:49:44 +03:00
Roman Telezhynskyi 47b3eab0ad Refactoring for VPoster class.
Pass QSize instead QRect. To calculate tiles we need width and size only.
2020-03-21 17:31:25 +02:00
Roman Telezhynskyi 30bac523c8 Improve seam allowance.
Increase max allowed length of corner to cover real world case.
2020-03-07 11:17:06 +02:00
Roman Telezhynskyi 309259a0e4 Approximation scale on curved path - Draw vs. Detail. Closes smart-pattern/valentina#8. 2020-02-10 16:34:50 +02:00
Roman Telezhynskyi 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +02:00
Roman Telezhynskyi 0b82f4a18c Improve conversion error message.
Instead of showing path to temp file show path to original file.

--HG--
branch : develop
2020-01-24 09:24:03 +02:00
Roman Telezhynskyi 7e3c7e0f88 Refactoring. Hide compatibility layer behind a function.
toSet(), toList(), swapItemsAt().

--HG--
branch : develop
2020-01-16 19:09:23 +02:00
Roman Telezhynskyi 24e50455b0 Improve conversion for dxf file export.
We never checked if it really works. And it doesn't in many cases. Not always
Qt recognizes standard ANSI_* names as valid aliases for codepages. Because
codec itself can have many aliases we will test them one by one until one will
fit.

--HG--
branch : develop
2020-01-16 14:10:49 +02:00
Roman Telezhynskyi c81faf3537 Fix regressions. ref #989
(grafted from 1bbf6a73a6e3bf5fd9dc2b962bd1428f391da68b)

--HG--
branch : develop
2020-01-11 14:51:25 +02:00
Roman Telezhynskyi 078f6fad64 Tracking changes/prevent "OK" recalculation after "Apply".
--HG--
branch : develop
2020-01-09 18:56:37 +02:00
Roman Telezhynskyi 50b929ea48 u_setDataDirectory to define path to ICU data.
--HG--
branch : develop
2019-11-28 16:42:06 +02:00
Roman Telezhynskyi 22c3bbcd46 Fix tests.
--HG--
branch : develop
2019-11-04 12:20:07 +02:00
Roman Telezhynskyi f460a324b3 We must not rely on current directory when start tests.
--HG--
branch : develop
2019-11-03 16:00:23 +02:00
Roman Telezhynskyi 2887350c16 Fix bugs with a seam allowance.
--HG--
branch : develop
2019-11-03 10:13:02 +02:00
Roman Telezhynskyi 7f9906bbcc Fix for seam aloowance angle type By first edge symmetry.
--HG--
branch : develop
2019-10-23 11:24:59 +03:00
Roman Telezhynskyi 295c04839b Update test data.
--HG--
branch : develop
2019-09-12 20:57:48 +03:00
Roman Telezhynskyi 02bcc2f1e1 New test case.
Do not remove point on line if it is end/start of a curve.

--HG--
branch : develop
2019-09-12 20:57:26 +03:00
Roman Telezhynskyi fe32cb133b Move test data to external resource.
--HG--
branch : develop
2019-09-10 13:36:03 +03:00
Roman Telezhynskyi 0536b42a7c Fix regression in angle type By Intersection.
--HG--
branch : develop
2019-09-10 13:17:06 +03:00
Roman Telezhynskyi 880aa4de0c Fix regression in angle type "By second edge right angle".
--HG--
branch : develop
2019-09-06 11:12:01 +03:00
Roman Telezhynskyi 20abb9979e Fix broken tests.
--HG--
branch : develop
2019-09-05 14:13:22 +03:00
Roman Telezhynskyi 23ffeba014 Fix case with prong. All acute angles now support only angle type by length.
--HG--
branch : develop
2019-09-03 17:46:09 +03:00
Roman Telezhynskyi c137c46e2d New test cover a rollback case.
--HG--
branch : develop
2019-09-02 08:43:02 +03:00
Roman Telezhynskyi fcfa632118 Fix broken tests.
--HG--
branch : develop
2019-09-01 13:02:19 +03:00
Roman Telezhynskyi 5dc735b5f4 New test case "Loop for start point on line".
--HG--
branch : develop
2019-08-29 15:14:17 +03:00
Roman Telezhynskyi 205e870669 Refactoring.
Lambda to define test data.
Better test data structure.

--HG--
branch : develop
2019-08-29 15:09:45 +03:00
Roman Telezhynskyi 7479866c74 Remove test.
Think we don't need it anymore.

--HG--
branch : develop
2019-08-29 15:04:19 +03:00
Roman Telezhynskyi 71d489384c Remove test for case from file zigzag.val.
--HG--
branch : develop
2019-08-29 15:03:33 +03:00
Roman Telezhynskyi df3684d2a1 VPiece to JSON.
Strict version to support Unit tests.

--HG--
branch : develop
2019-08-29 15:01:27 +03:00
Roman Telezhynskyi 8332d4b15b Serialization a point to json. ref #874.
--HG--
branch : develop
2019-08-07 17:53:18 +03:00
Roman Telezhynskyi bcea1b69fa Breaking change. All intersections are now treaded as a loop.
--HG--
branch : develop
2019-08-07 12:25:22 +03:00
Roman Telezhynskyi 8f961300e6 Basic structure for new class VPatternRecipe.
--HG--
branch : feature
2019-07-10 12:42:37 +03:00
Roman Telezhynskyi 2ac4267dd3 Fix locking file after double save as.
(grafted from 4828cd4acfa596166fe4c8a32f505045b86cab9c)

--HG--
branch : develop
2019-07-04 17:13:33 +03:00
Roman Telezhynskyi 0330869796 Serialization/deserialization for class VLayoutPiece.
--HG--
branch : develop
2019-07-01 11:02:09 +03:00
Roman Telezhynskyi 12871f0708 Fix issue with artificial loop.
--HG--
branch : develop
2019-06-18 13:45:40 +03:00
Roman Telezhynskyi a62c2bfb55 Fix function VFuzzyComparePoints.
--HG--
branch : develop
2019-06-08 08:40:56 +03:00
Roman Telezhynskyi 5c55778d66 Since Q5.12 available support for C++17.
--HG--
branch : develop
2019-05-28 17:41:15 +03:00
Roman Telezhynskyi a87f821327 Introduce mapped versions of methods. In some cases we will do mapping manually.
--HG--
branch : develop
2019-05-27 17:04:26 +03:00
Roman Telezhynskyi 3b51ccb31d Refactoring. Move drawing passmarks to separate class.
--HG--
branch : develop
2019-05-08 15:19:03 +03:00
Roman Telezhynskyi a795642cf0 Replace obsolete setPaperSize with setPageSize.
--HG--
branch : develop
2019-04-28 18:49:29 +03:00
Roman Telezhynskyi 74ec82290a Fixed issue #963. Bug in tool Point intersect curve and axis.
(grafted from db4c88cadb30a460075b949a6faa108537030602)

--HG--
branch : develop
2019-04-12 18:04:07 +03:00
Roman Telezhynskyi 83e61a85a8 Continue cleaning code from logging.h.
--HG--
branch : develop
2019-04-05 16:03:01 +03:00
Roman Telezhynskyi 0987428a93 Increase required Qt version up to 5.4.
--HG--
branch : develop
2019-04-05 15:42:22 +03:00
Roman Telezhynskyi 5f181e3a54 Don't use Qt OpenGL module since Q5.4.
--HG--
branch : develop
2019-04-05 13:56:44 +03:00
Roman Telezhynskyi 2f420854c2 Fixed issue #957. Unable to cut an arc with negative length.
(grafted from 885261e387dda0508fda374445b9c05e379103e0)

--HG--
branch : develop
2019-04-03 09:37:43 +03:00
Roman Telezhynskyi 883d2c04f6 Resolved issue #937. Wrong symmetrical seam corners on pieces.
(grafted from 8c1b09cc7bc40d6d40e39d931d3e040b0323bd87)

--HG--
branch : develop
2019-02-13 16:32:38 +02:00
Roman Telezhynskyi 63e402ba8a Resolved issue #937. Wrong symmetrical seam corners on pieces.
(grafted from f15fbf536959418dcd9a2f2caf7c0267ae46eaee)

--HG--
branch : develop
2019-02-12 14:51:21 +02:00
Roman Telezhynskyi 6efc6f11c8 Fixed issue #924. Valentina produces wrong passmark for rollback case.
(grafted from 5ff3a91f41efebed4963d3377cb2f194983cc7f7)

--HG--
branch : develop
2019-01-09 17:46:02 +02:00
Roman Telezhynskyi 60c4e2880f Fixed issue #923. Valentina produces wrong seam allowance for rollback case.
(grafted from 111ae73392a265baecbb3031cf3963682e0bea77)

--HG--
branch : develop
2019-01-07 18:20:36 +02:00
Roman Telezhynskyi 9f91137ae1 Skip certain tests if architecture is s390 or s390x. ref #918.
(grafted from a82704b1fc5dba81a965616c0d3323bcc601472c)

--HG--
branch : develop
2019-01-02 16:12:56 +02:00
Roman Telezhynskyi b825a9084e Improving tests. Comparisons for TST_FindPoint is too precise. ref #918.
(grafted from 0a47a319a9450b3d30f0d7f8d00675628744d58a)

--HG--
branch : develop
2019-01-02 15:58:59 +02:00