Commit graph

332 commits

Author SHA1 Message Date
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