Commit graph

372 commits

Author SHA1 Message Date
Roman Telezhynskyi 8cd3bfb803 Only C++17 introduces the rule that static constexpr member variables are implicitly inline. 2022-11-21 08:55:32 +02:00
Roman Telezhynskyi 5a3669e42b Improve testing paths. 2022-11-11 17:57:34 +02:00
Roman Telezhynskyi bd10a78f55 Successful compilation. 2022-10-28 16:16:13 +03:00
Roman Telezhynskyi e160bb02ff In C++11 a static constexpr member variable, unlike every other kind of constexpr global variable, has external linkage, thus must be explicitly defined somewhere.
This flaw is fixed in C++17.
2022-09-15 15:01:45 +03:00
Roman Telezhynskyi 70168ebe6c Fix support Visual Studio 2015. 2022-09-02 17:14:03 +03:00
Roman Telezhynskyi daf7574f39 Fix support Visual Studio 2015. 2022-09-01 10:11:44 +03:00
Roman Telezhynskyi 488fbb6baa Fix support Visual Studio 2015. 2022-08-30 17:18:16 +03:00
Roman Telezhynskyi 4bf01918c9 Fix support Visual Studio 2015. 2022-08-30 15:41:33 +03:00
Roman Telezhynskyi b01fd72af9 Fix issues with elliptical arc. 2022-08-30 14:19:40 +03:00
Roman Telezhynskyi 83e9a4c8f0 Enable Approximation scale option for Elliptical arc. 2022-08-27 17:57:08 +03:00
Roman Telezhynskyi 1e344d6df0 Fix calculating an elliptical arc. 2022-08-27 16:46:25 +03:00
Roman Telezhynskyi 5262d8afb7 Refactoring.
Rename Visualization::NumberToUser to Visualization::LengthToUser to avoid confusion.
Add Visualization::AngleToUser.
2022-08-24 19:53:48 +03:00
Roman Telezhynskyi a13f13e3fc Refactoring.
Optimize includes.
2022-08-22 11:34:02 +03:00
Roman Telezhynskyi 63cd0e7b5d Improve visualization for tool Segmenting a simple curve. 2022-08-20 20:09:29 +03:00
Roman Telezhynskyi 714a4e1715 Fix segmenting a simple curve. 2022-08-19 08:29:42 +03:00
Roman Telezhynskyi 46b2814981 Refactoring. 2022-08-13 19:26:55 +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 92398bbf52 Fix warning while segmenting flipped arc. 2022-06-28 12:55:27 +03:00
Roman Telezhynskyi c9c46cc954 Code style. 2022-05-20 17:08:32 +03:00
Roman Telezhynskyi ca2fe5fff1 Improved curve segment warnings. 2022-05-20 15:49:25 +03:00
Roman Telezhynskyi 0644122345 Code style. 2022-03-16 17:43:22 +02:00
Roman Telezhynskyi 8b0b5c89aa Incorrect work with curves. Closes #170 2022-03-16 17:43:09 +02:00
Roman Telezhynskyi 23e6d524b1 Fix build with MSVC. 2022-02-09 10:32:57 +02: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 c3cbfbaaca Fix build with Qt 5.6. 2022-01-29 16:06:01 +02:00
Roman Telezhynskyi 1b188bf414 Compatibility issues. 2022-01-29 10:59:02 +02:00
Roman Telezhynskyi b861d6a28e GCC warnings. 2021-09-25 17:18:33 +03:00
Roman Telezhynskyi 9bfc0df25b GCC warnings. 2021-09-25 15:49:00 +03:00
Roman Telezhynskyi 51ed05e1fa GCC warnings. 2021-09-25 12:57:15 +03:00
Roman Telezhynskyi 1b3e133309 GCC warnings. 2021-09-25 12:42:28 +03:00
Roman Telezhynskyi 2ffda9a073 Introduce *_MARK_NONFINAL_CLASS and *_MARK_NONFINAL_METHOD macroses to suppress GCC warning Wsuggest-final-types. 2021-09-25 11:43:05 +03: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 816f9f02a3 When we search point of intersection curve and axis select the base point only at the end. 2021-07-24 16:36:17 +03:00
Roman Telezhynskyi 8656e9f633 GCC warning. 2021-07-24 12:35:22 +03:00
Roman Telezhynskyi 8ffc2447dd Fix finding point of intersection curve and axis.
Add case where the axis's point lies on the curve.
2021-07-24 11:27:50 +03:00
Roman Telezhynskyi a6d9194051 New warnings. Warn a user about incorrect cut curve segment length. 2021-07-24 11:15:48 +03:00
Roman Telezhynskyi 3c27c3ee46 Fix incorrect seam allowance. Closes #133 2021-06-22 19:04:13 +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 bfe2cfb0e1 Fix incorrect seam allowance. Closes #114 2021-03-30 20:21:42 +03:00
Roman Telezhynskyi 9f940ba7cf Fix bug in seam allowance. 2021-02-23 16:08:12 +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 80d9fbc107 New function Warning. 2020-11-20 13:18:38 +02:00
Roman Telezhynskyi 99985d43e0 Alias support for group operations. 2020-11-07 15:02:30 +02:00
Roman Telezhynskyi 38e60d5905 Fix name for history with alias. 2020-11-04 17:36:54 +02:00
Roman Telezhynskyi a5f65c319c Alias field for tool Cubic Bezier. 2020-11-04 17:36:54 +02:00
Roman Telezhynskyi c77d4c9bd2 Improve object name translation. 2020-11-04 17:36:54 +02:00
Roman Telezhynskyi 1246aba24d Alias field for tool Arc. 2020-11-04 16:17:16 +02:00
Roman Telezhynskyi 788aa92d44 Add alias attribute for geometric object. 2020-11-04 16:17:16 +02:00
Roman Telezhynskyi 92028ddbc4 Fix issue in VAbstractCurve::CurveIntersectAxis.
Add normalization of the axis angle. Value must positive value between 0 and 359 degree.
2020-10-26 10:00:57 +02:00
Roman Telezhynskyi 49d3ad1f80 Merge branch 'multisize-measurements-tables-improvement' into develop 2020-10-16 14:45:35 +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 1483f7a0cc Improve warning about error in calculating a curve segment.
Added in the message information about the path name.

(cherry picked from commit 75e296e839)
2020-10-05 16:50:14 +03:00
Roman Telezhynskyi 75e296e839 Improve warning about error in calculating a curve segment.
Added in the message information about the path name.
2020-10-05 16:39:01 +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 07858f7fcb Refactoring. 2020-08-01 11:55:56 +03:00
Roman Telezhynskyi 9389cb546c Refactoring. Redesign a container reversing method. 2020-07-13 16:28:59 +03:00
Roman Telezhynskyi 5618df2b66 Fix build. Add missing headers. Closes #54 2020-07-10 20:15:46 +03:00
Roman Telezhynskyi a887fcb3df New warning. Error calculating segment of curve. 2020-07-04 15:13:45 +03:00
Roman Telezhynskyi c263060fd0 Invalid name of arc in modeling mode. Closes smart-pattern/valentina#40. 2020-06-02 18:11:52 +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 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +02:00
Roman Telezhynskyi 716192e520 Refactoring. Hide compatibility layer behind a function.
constLast(), move(), append().

--HG--
branch : develop
2020-01-17 15:14:00 +02:00
Roman Telezhynskyi 98a88ed529 Refactoring. Hide compatibility layer behind a function.
QLineF::intersects.

--HG--
branch : develop
2020-01-16 17:34:08 +02:00
Roman Telezhynskyi 74218e82bc Try another way to fix build.
--HG--
branch : develop
2020-01-12 13:25:35 +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 680e66c4cd Fixed issue #989. Elliptical arc tool not behaving correctly.
(grafted from 09f4c4e0d4a44df54dd7d3267b7c7922a2c150aa)

--HG--
branch : develop
2020-01-10 13:44:27 +02:00
Roman Telezhynskyi 5658e0b0d5 Fix copy paste error.
--HG--
branch : develop
2020-01-07 14:21:47 +02:00
Roman Telezhynskyi cf1e383d7b Don't use 'char' as a type of enum class.
QDataStream doesn't support serialization for this type.

--HG--
branch : develop
2020-01-07 12:54:01 +02:00
Roman Telezhynskyi 5177057be1 Since Qt 5.14 enumerations can be serialized through QDataStream without the
need of manually defining streaming operators. Enum classes are
serialized using the declared size.

--HG--
branch : develop
2020-01-07 09:45:26 +02:00
Roman Telezhynskyi d74225e63e QLineF::IntersectType QLineF::intersect(const QLineF&, QPointF*) const' is
deprecated: Use intersects() instead.
(grafted from b8646bf40865848ad48eae89cae8419483d56f6b)

--HG--
branch : develop
2020-01-06 18:34:35 +02:00
Roman Telezhynskyi 84001dac61 Refactoring. Added move constructor.
--HG--
branch : develop
2019-12-30 17:13:18 +02:00
Roman Telezhynskyi 74bb3e4369 Fix move sematic.
(grafted from fb8691f522f3515d7c3014a0ea90b60b352a444e)

--HG--
branch : develop
2019-12-30 13:00:57 +02: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 df3684d2a1 VPiece to JSON.
Strict version to support Unit tests.

--HG--
branch : develop
2019-08-29 15:01:27 +03:00
Roman Telezhynskyi a667fdce1c New function IsLineSegmentOnLineSegment().
Helps to find if two segments are on same line have real intersection.

--HG--
branch : develop
2019-08-06 16:37:55 +03:00
Roman Telezhynskyi 95b9c3ed19 New function VFuzzyOnAxis.
--HG--
branch : develop
2019-07-21 15:22:09 +03:00
Roman Telezhynskyi 1ab19c05a3 Refactoring. Move VFuzzyComparePoints to VGeometry static library.
--HG--
branch : develop
2019-07-21 15:04:08 +03:00
Roman Telezhynskyi d4a308af5b Optimize combining.
--HG--
branch : develop
2019-07-21 14:42:47 +03:00
Roman Telezhynskyi 71466eac13 Refactoring. In some cases, for systems with different precision,
IsPointOnLineviaPDP must take different accuracy value.

--HG--
branch : develop
2019-07-21 09:00:42 +03:00
Roman Telezhynskyi 0658d92688 New marcos Q_DISABLE_ASSIGN.
--HG--
branch : develop
2019-07-01 11:33:29 +03:00
Roman Telezhynskyi 0330869796 Serialization/deserialization for class VLayoutPiece.
--HG--
branch : develop
2019-07-01 11:02:09 +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 d5a1f96bdd constFirst() introduced since Qt 5.6.
--HG--
branch : develop
2019-05-28 16:21:52 +03:00
Roman Telezhynskyi 950e476682 New function VAbstractCurve::SubdividePath.
--HG--
branch : develop
2019-05-27 17:13:57 +03:00
Roman Telezhynskyi 6294dc0748 New struct VLayoutPassmark to store data about a passmark.
--HG--
branch : develop
2019-05-27 14:57:36 +03:00
Roman Telezhynskyi bd611bf333 Refactor class VPlaceLabelItem.
Store more info about a placelabel.

--HG--
branch : develop
2019-05-27 14:54:44 +03:00
Roman Telezhynskyi cdca310504 Fixed issue #971. Group operation do not work with VCubicBezierPath.
(grafted from 9981e18a57078493856549209156b9919e635673)

--HG--
branch : develop
2019-05-10 18:44:12 +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 4192af8117 Refactoring.
--HG--
branch : develop
2019-05-08 15:17:34 +03:00
Roman Telezhynskyi 57d6d79a53 New placelabel shape Circle.
--HG--
branch : develop
2019-04-23 17:42:09 +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 0987428a93 Increase required Qt version up to 5.4.
--HG--
branch : develop
2019-04-05 15:42:22 +03:00
Roman Telezhynskyi 3777d57ada Clang warning local variable 'polygon' will be copied despite being returned by
name.

--HG--
branch : develop
2019-04-05 12:56:47 +03:00