Commit graph

524 commits

Author SHA1 Message Date
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 1f6285aef9 Fix deprecation warnings.
(grafted from 686129d90f37b8d0c428092668673d44f06545d8)

--HG--
branch : develop
2020-01-06 20:10:09 +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 1217616813 Refactoring.
Pass VContainer::AddVariable only a variable, the variable already knows its
name.

--HG--
branch : develop
2019-11-24 13:09:16 +02:00
Roman Telezhynskyi c924a6f700 New class VRawSAPoint.
Post processing a seam allowance.

--HG--
branch : develop
2019-11-03 10:01:32 +02:00
Roman Telezhynskyi 8f6ae65224 New feature Pattern Messages.
Added special field to show pattern warnings instead of warning dialogs.
Fixed issue with tabified dockwidgets.

--HG--
branch : develop
2019-10-28 17:44:31 +02:00
Roman Telezhynskyi c802df2b73 Lupdate warnings.
Lupdate lacks of some features to support all C++ valid declarations.

--HG--
branch : develop
2019-09-10 16:57:31 +03:00
Roman Telezhynskyi 20abb9979e Fix broken tests.
--HG--
branch : develop
2019-09-05 14:13:22 +03:00
Roman Telezhynskyi 12234d2f10 Clazy warning.
--HG--
branch : develop
2019-08-29 15:04:39 +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 04af0170ff New debugging section.
--HG--
branch : develop
2019-08-06 16:38:32 +03:00
Roman Telezhynskyi ed1439613e Fixed issue #718, "Error when using measurement A23 waist_to_floor".
(grafted from 39075c5793253189542fb8dabb2bf032f42f047f)

--HG--
branch : develop
2019-07-21 21:30:26 +03:00
Roman Telezhynskyi 965cf34c15 Completed generation of recipe.
--HG--
branch : feature
2019-07-11 13:47:55 +03:00
Roman Telezhynskyi e8804c90bb New layout option --nestQuantity.
--HG--
branch : develop
2019-07-04 14:33:45 +03:00
Roman Telezhynskyi 3212fc6136 Fix issue with a passmark.
--HG--
branch : develop
2019-07-02 19:41:49 +03:00
Roman Telezhynskyi 2b2924911c Supress Cppcheck warnings.
--HG--
branch : develop
2019-07-01 18:44:18 +03:00
Roman Telezhynskyi 762b0fc1d0 Fix build.
--HG--
branch : develop
2019-07-01 13:49:10 +03:00
Roman Telezhynskyi 03b8758781 All classes which work with QDataStream must provide a header.
--HG--
branch : develop
2019-07-01 13:25:03 +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 ed1e438d48 Fix crash.
If intial formula value is incorrect calling a formula wizard will call an
exception and the aplication will terminate.

--HG--
branch : develop
2019-06-03 12:19:12 +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 d58b3f523d Methods to get a passmark base lines.
--HG--
branch : develop
2019-05-27 17:05:42 +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 8b0f1c0cc9 Clang warning.
--HG--
branch : develop
2019-05-08 20:28:48 +03:00
Roman Telezhynskyi a05bf82c24 Clang warning.
--HG--
branch : develop
2019-05-08 20:05:26 +03:00
Roman Telezhynskyi 2247cf330e Cppcheck warning.
--HG--
branch : develop
2019-05-08 19:54:30 +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 012eef24f6 Fixed missed attributes.
--HG--
branch : develop
2019-05-08 15:18:16 +03:00
Roman Telezhynskyi 4192af8117 Refactoring.
--HG--
branch : develop
2019-05-08 15:17:34 +03:00
Roman Telezhynskyi 851ed6590c Correct passmark shape. It shouldn't go beyond a piece path.
--HG--
branch : develop
2019-04-23 21:24:45 +03:00
Roman Telezhynskyi 2c58263df1 Two new passmark types: U and Box.
--HG--
branch : develop
2019-04-23 20:56:11 +03:00
Roman Telezhynskyi 65a9be6b9d Fixed issue #967. Variable must not include new line character.
(grafted from f263dbaec52fb6950e1db27c62313f57748f4838)

--HG--
branch : develop
2019-04-20 20:19:30 +03:00
Roman Telezhynskyi 4fa73c302c Local seam allowance can be 0. ref #965.
--HG--
branch : develop
2019-04-17 16:08:48 +03:00
Roman Telezhynskyi 7f01a989dd Catch null length passmarks.
--HG--
branch : develop
2019-04-17 14:59:54 +03:00
Roman Telezhynskyi 52dfb912ee Resolved issue #965. Control passmark length with formula.
--HG--
branch : develop
2019-04-17 13:02:22 +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 5008c2c248 Fix warning: catching polymorphic type 'class VExceptionBadId' by value
[-Wcatch-value=].

--HG--
branch : develop
2019-03-05 11:42:38 +02:00
Roman Telezhynskyi 33d83cedea Improve VPiece::IsSeamAllowanceValid. If called for piece without seam
allowance return true.

--HG--
branch : develop
2019-03-01 17:20:21 +02:00
Roman Telezhynskyi 77ae13ae18 New pedantic check. Check if allowance path is valid.
This check validate seam allowance path and layout allowance path.

--HG--
branch : develop
2019-02-23 18:43:06 +02:00
Roman Telezhynskyi 8424222e7c Introducing method UniteMainPathPoints. This method will be usefull if need
return "invisible" path after including custom seam allowance as main path.

--HG--
branch : develop
2019-02-11 15:00:32 +02:00
Roman Telezhynskyi 864d3568c0 Resolved issue #932. 2nd version V passmarks.
--HG--
branch : develop
2019-01-24 09:26:57 +02:00
Roman Telezhynskyi 86ec5e7254 Fixed build error on aarch64. Enumerator value '-1' is outside the range of
underlying type 'char'.
(grafted from 1b4a6dbdc42664a5763d278ed4a2f4eba5dd749f)

--HG--
branch : develop
2019-01-21 13:13:54 +02:00
Roman Telezhynskyi 1a44f7968a Fixed issue #931. Variable translation for Greek and Chinese are broken.
(grafted from d24d4570fc861a487cb6a1e76d2d828f1e1d7386)

--HG--
branch : develop
2019-01-17 16:08:55 +02:00
Roman Telezhynskyi 5641173e81 Cppcheck warning.
--HG--
branch : develop
2019-01-16 16:39:44 +02:00
Roman Telezhynskyi e91c92d4a9 Resolved issue #929. New variable type: Separator.
--HG--
branch : develop
2019-01-16 16:24:41 +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 7caf42cf48 Since Q5.4 available support C++14. Some libraries still missed use.
--HG--
branch : develop
2018-12-23 20:27:24 +02:00
Roman Telezhynskyi 6403941406 Fixed issue #914. Filtering custom seam allowance paths prevent including more
than one.
(grafted from 07fec74fad050330a1161776e27bb6c877354a59)

--HG--
branch : develop
2018-12-21 13:01:32 +02:00
Roman Telezhynskyi c782bf37db Fixed issue #909. Valentina produces wrong united path.
(grafted from 6f13c33817dd37d3679398274e697e3da87dbbd0)

--HG--
branch : develop
2018-12-19 09:19:37 +02:00
Roman Telezhynskyi f3c893d43a Try direct header to fix errors: use of undeclared identifier 'qIsInf' and use
of undeclared identifier 'qIsNaN'.

--HG--
branch : develop
2018-12-11 12:55:03 +02:00
Roman Telezhynskyi c09e7d4d65 Add core library as dependency to static libraries.
--HG--
branch : develop
2018-12-11 11:59:15 +02:00
Roman Telezhynskyi 5dd0fca9a9 Fixing errors: use of undeclared identifier 'qIsInf' and use of undeclared
identifier 'qIsNaN'.

--HG--
branch : develop
2018-12-11 11:02:47 +02:00
Roman Telezhynskyi cf3be706c2 Optimization. Update increments only if necessary.
--HG--
branch : develop
2018-11-24 16:47:44 +02:00
Roman Telezhynskyi 1d0b5790ae Be more pedantic. Show warning for case where Valentina cannot build a seam
allowance.

--HG--
branch : develop
2018-10-22 14:43:06 +03:00
Roman Telezhynskyi 427d3d48c2 Fixing a notch distortion.
User may assume a notch is not precisely position because of accuracy issue. To
avoid this force search of "real intersection".

--HG--
branch : develop
2018-10-20 22:18:27 +03:00
Roman Telezhynskyi 2211e2b7ee Fixed issues with seam allowance.
More cases.
(grafted from 7324a77cb8851a215d26269a8db7106a653915fd)

--HG--
branch : develop
2018-10-19 16:54:06 +03:00
Roman Telezhynskyi 81d2eb513a Fixed issues with seam allowance.
(grafted from 79a6fe52de80fc8707e24574eff1ec75eb1cd424)

--HG--
branch : develop
2018-10-17 18:12:39 +03:00
Roman Telezhynskyi db478562ee Fixed issue #885. Regression. Broken support for multi size measurements.
(grafted from 1a0becf32c00518f126cd0e7325c0eb2bbdcc18e)

--HG--
branch : develop
2018-10-12 13:06:03 +03:00
Roman Telezhynskyi 577065539c Show warning message for definately not valid case.
--HG--
branch : release
2018-09-29 22:01:13 +03:00
Roman Telezhynskyi 4f7f907d8d Remove checks those cover valid case of passmark collapse.
--HG--
branch : release
2018-09-29 19:36:55 +03:00
Roman Telezhynskyi 10a20b08b8 Be pendantic about notch errors.
--HG--
branch : release
2018-09-28 14:29:10 +03:00
Roman Telezhynskyi ac3b8a2726 Check and correct a notch position if it is not on current seam allowance.
--HG--
branch : release
2018-09-28 13:43:03 +03:00
Roman Telezhynskyi 33554c03b5 Clazy warning.
--HG--
branch : release
2018-09-27 15:16:01 +03:00
Roman Telezhynskyi 135cea212d Generate seam allowance only one time to use it in creating notches.
--HG--
branch : release
2018-09-27 15:13:43 +03:00
Roman Telezhynskyi 515df843d3 New function VFuzzyComparePoints to compare two points.
--HG--
branch : release
2018-09-27 14:52:21 +03:00
Roman Telezhynskyi f0fdb7d8b9 Performance improvements.
--HG--
branch : release
2018-09-24 14:30:41 +03:00
Roman Telezhynskyi 26d79e5ca2 Fix error: no match for operator== (operand types are QAtomicInt and int).
--HG--
branch : release
2018-09-18 17:24:00 +03:00
Roman Telezhynskyi 60b323cf8e Fixed issue #882. VContainer class doesn't support multi document mode.
--HG--
branch : release
2018-09-18 16:38:16 +03:00
Roman Telezhynskyi 49506c0bf2 Refactring. MaxLocalSA can be part of VSAPoint class.
--HG--
branch : release
2018-09-13 17:31:14 +03:00
Roman Telezhynskyi 3fe7709c40 Fixed issue #883. Fix right angle seam allowance angle type.
--HG--
branch : release
2018-09-13 16:46:04 +03:00
Roman Telezhynskyi 8a29755a36 Resolved issue #868. New feature. Connect internal path with cutting contour.
--HG--
branch : develop
2018-07-26 20:00:24 +03:00
Roman Telezhynskyi 1ae08d6020 Resolved issue #867. Visibility control for place labels.
--HG--
branch : develop
2018-07-20 10:30:05 +03:00
Roman Telezhynskyi 63b1eb8068 Cppcheck warning 'missingOverride'.
--HG--
branch : develop
2018-06-26 15:53:48 +03:00
Roman Telezhynskyi 6869eab05a Fixed issue #853. Valentina doesn't translate user material placeholder.
--HG--
branch : develop
2018-05-29 17:55:16 +03:00
Roman Telezhynskyi f194057b26 Refactoring.
--HG--
branch : develop
2018-05-18 13:51:58 +03:00
Roman Telezhynskyi 279674f491 Make Swap methods inline.
--HG--
branch : develop
2018-04-22 13:32:06 +03:00
Roman Telezhynskyi 3970bbdbc0 Refactoring. Use QChar instead of QString where possible.
--HG--
branch : develop
2018-04-12 13:13:19 +03:00
Roman Telezhynskyi 962cde8e6e Clazy warning.
--HG--
branch : develop
2018-04-09 11:15:55 +03:00
Roman Telezhynskyi f7e1b0942c Fixed issue #837. Valentina crashes when changing seam allowance on a curve
segment.

I made a mistake switching to C++11 range-based loops here.

--HG--
branch : develop
2018-04-09 11:12:46 +03:00
Roman Telezhynskyi 0e3a9533af Refactoring. Use C++11 range-based loop.
--HG--
branch : develop
2018-04-03 14:36:38 +03:00
Roman Telezhynskyi 6b6a2632a9 Refactoring. Replacing all Q_FOREACH/foreach loops with the c++ range-based
loops.

--HG--
branch : develop
2018-04-03 11:15:58 +03:00
Roman Telezhynskyi 3252130f36 Refactoring. Use C++11 range-based loop.
--HG--
branch : develop
2018-04-02 20:38:56 +03:00
Roman Telezhynskyi 4eaf556342 Cppcheck warning.
--HG--
branch : develop
2018-04-02 17:05:53 +03:00
Roman Telezhynskyi 218c2cc518 Resolved issue #830. Seam allowance tool - object selection and preview.
--HG--
branch : develop
2018-04-02 16:49:53 +03:00
Roman Telezhynskyi 2cb7c4c603 Utilize macro QT_DEPRECATED_WARNINGS.
--HG--
branch : develop
2018-03-22 19:57:56 +02:00
Roman Telezhynskyi 6a7405b4d4 Refactoring. Use QString default constructor instead of empty string.
--HG--
branch : develop
2018-03-14 16:01:24 +02:00
Roman Telezhynskyi cb5b7fcfcd Resolved issue #818. Improve Piece path validation. Check uniqueness.
--HG--
branch : develop
2018-03-05 12:05:59 +02:00
Roman Telezhynskyi 9088ad93be Fix bug in VFormula copy constructor.
--HG--
branch : develop
2018-02-27 09:44:17 +02:00
Roman Telezhynskyi ced8963041 Refactoring VFormula::Eval().
Plus, in case of check If zero set value to Error instead of "0". This confuses
users.

--HG--
branch : develop
2018-02-22 15:03:11 +02:00
Roman Telezhynskyi 72d832c93a Resolved issue #807. Issue with "Intersection" passmark.
--HG--
branch : develop
2018-02-04 12:35:27 +02:00
Roman Telezhynskyi cd1ebf434a Resolved issue #804. New feature. Import measurements from CSV file in Tape app.
--HG--
branch : develop
2018-01-31 14:34:50 +02:00
Roman Telezhynskyi d5843ceb6d Speed optimization for parsing piece internals.
--HG--
branch : develop
2018-01-25 23:53:53 +02:00
Roman Telezhynskyi 54d3ae7561 Improve parsing formulas.
Enable subexpressions. Allow user to define local variables.

--HG--
branch : develop
2018-01-24 22:08:53 +02:00
Roman Telezhynskyi f7e8b10407 Cppcheck warning.
--HG--
branch : develop
2018-01-21 18:41:17 +02:00
Roman Telezhynskyi 7bdc10419c Speed optimization translating internal variables.
--HG--
branch : develop
2018-01-21 16:00:53 +02:00
Roman Telezhynskyi 93c84a9dc5 Speed optimization Calculator::EvalFormula().
In certain cases simple conversion string to number will speed up calculating.

--HG--
branch : develop
2018-01-21 14:31:13 +02:00
Roman Telezhynskyi d63cb30935 Remove noisy debug messages.
--HG--
branch : develop
2018-01-20 16:23:12 +02:00