Commit graph

222 commits

Author SHA1 Message Date
Roman Telezhynskyi 06c09b63ba GCC warning. 2020-02-21 20:09:10 +02:00
Roman Telezhynskyi 10e05b6f6f Improve recipe export.
Add support for final measurements.
2020-02-21 13:53:12 +02:00
Roman Telezhynskyi 0483dd508e Fix generation of recipe.
Modeling object can be removed by the garment collector. In this case the recipe generator will complain about a missed object. We can happily ignore this case if we deal with modeling object.
2020-02-11 11:29:57 +02:00
Roman Telezhynskyi 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +02:00
Roman Telezhynskyi a1ed06d659 Fix broken tests.
--HG--
branch : develop
2020-01-10 08:57:19 +02:00
Roman Telezhynskyi 40363230dc Resolved issue #984. Issue with up to date list of unique names.
--HG--
branch : develop
2020-01-09 15:14:05 +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 6fc51d83b0 Improve ergonomic. Allow a user to define both text and image, and control
which will of them be active.

--HG--
branch : develop
2019-12-30 14:43:06 +02:00
Roman Telezhynskyi d0dc209c45 error: implicit conversion changes signedness: 'quint32' (aka 'unsigned int')
to 'int'.

--HG--
branch : develop
2019-12-29 17:13:30 +02:00
Roman Telezhynskyi 9aa0e2ed52 Cppcheck warning.
--HG--
branch : develop
2019-12-28 18:18:31 +02:00
Roman Telezhynskyi 1d7667df61 Export tiled PDF with watermark.
--HG--
branch : develop
2019-12-13 10:51:29 +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 384130ea65 Length to control points in pixels. Convert to pattern units.
--HG--
branch : develop
2019-09-10 10:15:07 +03:00
Roman Telezhynskyi 79499c7d74 Fix copy paste error.
--HG--
branch : develop
2019-09-10 09:58:50 +03:00
Roman Telezhynskyi 8aa5d2ca99 Fix wrong order when exporting internal variables.
--HG--
branch : develop
2019-09-09 16:40:04 +03:00
Roman Telezhynskyi 3af915d7ca Resolved issue #558. Stable release for pattern recipe format.
--HG--
branch : develop
2019-08-20 08:47:34 +03:00
Roman Telezhynskyi ce9506971a Export in recipe author and pattern name. ref #558.
--HG--
branch : develop
2019-08-20 08:44:20 +03:00
Roman Telezhynskyi 0e2c21240d All formulas in recipe must be in C locale.
--HG--
branch : develop
2019-08-20 07:33:45 +03:00
Roman Telezhynskyi 9222db9a21 warning: use auto when initializing with a template cast to avoid duplicating
the type name.

--HG--
branch : develop
2019-08-12 14:18:02 +03:00
Roman Telezhynskyi 45452d4d77 Export group operations as part of pattern recipe.
--HG--
branch : develop
2019-08-12 14:03:38 +03:00
Roman Telezhynskyi 7fe7c6cacf Fix issues in recipe generator.
--HG--
branch : develop
2019-08-10 18:14:46 +03:00
Roman Telezhynskyi 7e1d06a9b6 Fix recipe format version according to specification.
--HG--
branch : develop
2019-08-02 14:16:50 +03:00
Roman Telezhynskyi 965cf34c15 Completed generation of recipe.
--HG--
branch : feature
2019-07-11 13:47:55 +03:00
Roman Telezhynskyi 6ed74b2dd0 Refactoring. Use CreateElementWithText to create tag with text.
--HG--
branch : feature
2019-07-10 13:07:29 +03:00
Roman Telezhynskyi 8f961300e6 Basic structure for new class VPatternRecipe.
--HG--
branch : feature
2019-07-10 12:42:37 +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 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 0987428a93 Increase required Qt version up to 5.4.
--HG--
branch : develop
2019-04-05 15:42:22 +03:00
Roman Telezhynskyi 61173f75c4 Minor refactoring.
--HG--
branch : develop
2019-02-11 14:16:49 +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 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 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 63b1eb8068 Cppcheck warning 'missingOverride'.
--HG--
branch : develop
2018-06-26 15:53:48 +03:00
Roman Telezhynskyi 1e5ee0ab8b Optimization. Move literals.
--HG--
branch : develop
2018-04-13 09:00:09 +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 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 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 c1cea4c441 Clazy warnings.
--HG--
branch : develop
2018-03-14 15:39:15 +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 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 7f84a09342 Optimization. Avoid expensive exception calls.
--HG--
branch : develop
2018-01-20 12:31:12 +02:00
Roman Telezhynskyi 61172d46c4 Fix typo in headers.
--HG--
branch : develop
2017-10-05 12:20:01 +03:00
Roman Telezhynskyi bfe327ee13 If pattern linked to individual measurements it should get customer name from
it.

--HG--
branch : develop
2017-09-19 16:07:48 +03:00
Roman Telezhynskyi b7db0804dc Our new website.
--HG--
branch : develop
2017-09-01 17:04:19 +03:00
Roman Telezhynskyi 8466e84eef Read/Write pattern label.
--HG--
branch : feature
2017-08-15 10:44:00 +03:00
Roman Telezhynskyi c989cdf048 Added import the template.
--HG--
branch : feature
2017-08-10 19:32:05 +03:00
Roman Telezhynskyi b4c0651de4 Added export the template.
--HG--
branch : feature
2017-08-10 17:14:39 +03:00
Roman Telezhynskyi 3999ebd82e Fixed bug in Tape. Each Window should has own size and height values.
--HG--
branch : develop
2017-08-04 20:29:43 +03:00
Ronan Le Tiec 46f70788cf issue #654 refactoring the code so that the functions and variables are called xxx multisize xxx instead of xxx standard xxx
--HG--
branch : develop
2017-07-12 20:21:48 +02:00
Roman Telezhynskyi b6e0d97df0 Qmake. Fix masks to support 64 bit versions of compilers.
--HG--
branch : develop
2017-07-05 11:35:32 +03:00
Roman Telezhynskyi 5c4f45397d Fix build on Mac OS X.
--HG--
branch : develop
2017-06-05 20:58:38 +03:00
Roman Telezhynskyi bfd2620fad Next try to fix problem with tests.
Because different compilers and even different version from same vendor may
produce little bit different result this cause of test fails because it expect
too accurate result. We don't need such accuracy and can use variable
VGObject::accuracyPointOnLine to compare two points.

--HG--
branch : develop
2017-06-01 13:04:25 +03:00
Roman Telezhynskyi cc5641a15c Added gcc’s 4.9.0 Undefined Behavior Sanitizer (ubsan).
--HG--
branch : develop
2017-06-01 10:14:17 +03:00
Roman Telezhynskyi 9287acf90e Add Valentina version info inside each file before saving.
Many misunderstand purpose of tag "version" and think that this tag contains
information about the Valentina version. More info in the comment should help.

--HG--
branch : develop
2017-05-29 16:33:36 +03:00
Roman Telezhynskyi bab0adfebc Refactoring method MUnit(). All formats have the same syntax.
--HG--
branch : release
2017-04-18 11:46:53 +03:00
Roman Telezhynskyi 9284bfec9b Use smart pointer to prevent memory leak.
--HG--
branch : release
2017-04-14 11:30:00 +03:00
Roman Telezhynskyi e2383eb500 Refactoring. Use "=default" instead of the default implementation.
--HG--
branch : develop
2017-04-01 17:27:55 +03:00
Roman Telezhynskyi d696af9a33 "static" members should be accessed statically.
--HG--
branch : develop
2017-03-23 10:25:46 +02:00
Roman Telezhynskyi 38abf5c9a0 Removed redundant forward declaration.
--HG--
branch : develop
2017-02-18 11:22:59 +02:00
Roman Telezhynskyi 7d78a0f63f Resolved issue #619. Non writable directory prevents opening.
--HG--
branch : develop
2017-02-04 13:28:47 +02:00
Roman Telezhynskyi ffab000e0f Remove empty statement.
--HG--
branch : develop
2016-12-20 20:57:20 +02:00
Roman Telezhynskyi e333c9bc08 QtDebug and QDebug lead to the same header. Leave only QtDebug.
--HG--
branch : develop
2016-08-16 20:35:21 +03:00
Roman Telezhynskyi 7585db6a58 Fix build on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-09 16:55:46 +03:00
Roman Telezhynskyi 80f00b361d Use "Include What You Use" tool for optimizing #includes.
--HG--
branch : develop
2016-08-08 14:44:49 +03:00
Roman Telezhynskyi 1c987b919b Use gcc’s Address Sanitizer only in Debug mode.
--HG--
branch : develop
2016-08-06 19:23:42 +03:00
Roman Telezhynskyi 69e0ff74e6 MSVC warnings.
--HG--
branch : develop
2016-08-06 15:59:30 +03:00
Roman Telezhynskyi 483e56866d Added MSVC warnings.
--HG--
branch : develop
2016-07-29 21:04:53 +03:00
Roman Telezhynskyi 9375e0319d As part of testing make all compiler warnings treat as errors.
Added new CONFIG option "checkWarnings".

--HG--
branch : develop
2016-07-20 15:40:33 +03:00
Roman Telezhynskyi 9c0f5f2fa4 Refactoring. Use QScopedPointer for class Calculator.
--HG--
branch : develop
2016-05-24 15:25:58 +03:00
Roman Telezhynskyi 83243e5af3 Handle case when NaN and Inf value treats like valid.
--HG--
branch : develop
2016-05-24 15:06:35 +03:00
Roman Telezhynskyi 6f56b46d26 Fixed Clang warnings.
--HG--
branch : develop
2016-05-03 19:50:37 +03:00
Roman Telezhynskyi 5be84df289 The file stable.cpp is useful only with MSVC.
--HG--
branch : develop
2016-03-06 21:21:21 +02:00
Roman Telezhynskyi 40bf125fdf Resolved issue #422. Date of birth: German data format.
--HG--
branch : develop
2015-12-19 21:26:05 +02:00
Roman Telezhynskyi 5eed97c640 Enable #pragma message in Clang.
--HG--
branch : develop
2015-11-16 12:28:21 +02:00
Roman Telezhynskyi 7038c25c39 Turn on PCH on mac os x.
--HG--
branch : develop
2015-11-16 12:22:34 +02:00
Roman Telezhynskyi 4e21bf05e0 Don't show section "Size and Height".
--HG--
branch : develop
2015-11-11 20:52:25 +02:00
Roman Telezhynskyi 2b8fb91d17 Fixed missing measurement head_girth -> head_circ in conversion.
--HG--
branch : develop
2015-10-27 08:11:41 +02:00
Roman Telezhynskyi d104b8bd7e Additionaly each standard table provide measurements size and height.
--HG--
branch : develop
2015-10-26 17:39:23 +02:00
Roman Telezhynskyi d1f18dc9a0 Use quint32 instead unsigned int.
--HG--
branch : develop
2015-10-26 10:36:07 +02:00
Roman Telezhynskyi b516ceb8e1 "CONFIG += silent" doesn't work correct with msvc. Do not create target
"make distclean" with msvc.

--HG--
branch : develop
2015-10-24 14:13:59 +03:00
Roman Telezhynskyi 467ffbd132 ICC warnings.
--HG--
branch : develop
2015-10-20 17:32:01 +03:00
Roman Telezhynskyi 4d90589f01 Clang warnings.
--HG--
branch : develop
2015-10-19 16:21:06 +03:00
Roman Telezhynskyi 65d2213ef9 Coverity scan missing includes.
--HG--
branch : develop
2015-10-18 22:30:51 +03:00
Roman Telezhynskyi ff768c1c0f Show pattern making system in tab Information of a measurement file.
--HG--
branch : develop
2015-10-16 20:26:05 +03:00
Roman Telezhynskyi 3358f9dbc7 Resolved issue #382. Add 'Create from existing file' option in Tape,
Create/Edit.

--HG--
branch : develop
2015-10-15 15:37:10 +03:00
Roman Telezhynskyi 5cd9a88761 Making class Calculator independent from class VContainer.
--HG--
branch : develop
2015-10-15 13:07:43 +03:00
Roman Telezhynskyi 6006bca7ba Birth date can't be empty.
--HG--
branch : develop
2015-10-15 08:04:23 +03:00
Roman Telezhynskyi 6ec1826fbd Popup calendar.
--HG--
branch : develop
2015-10-13 16:38:07 +03:00
Roman Telezhynskyi c9ff24dd79 Resolved issue #378. Change 'sex' field name to 'gender'.
--HG--
branch : develop
2015-10-13 11:13:43 +03:00
Roman Telezhynskyi 1ba9855d22 Resolved issue #377. Add blank option for 'sex' field in Tape.exe.
--HG--
branch : develop
2015-10-12 20:06:12 +03:00
Roman Telezhynskyi 3b4c4e8261 Resolved issue #376. Add buttons in Tape.exe to move measurement to top or
bottom of list.

--HG--
branch : develop
2015-10-12 17:57:11 +03:00
Roman Telezhynskyi be398bae93 cppcheck.
--HG--
branch : develop
2015-10-12 14:52:48 +03:00
Roman Telezhynskyi c1976401a0 Use CONFIG += silent in release mode.
--HG--
branch : develop
2015-10-09 20:22:49 +03:00
Roman Telezhynskyi bdfae8230d Check if we seek in a measurement file an empty name.
--HG--
branch : develop
2015-10-03 01:49:15 +03:00
Roman Telezhynskyi da05f74468 Do not create attributes "full name" and "description" for a known measurement.
--HG--
branch : develop
2015-09-29 18:52:30 +03:00
Roman Telezhynskyi bf2db165da Fixed translation.
--HG--
branch : develop
2015-09-29 17:04:24 +03:00
Roman Telezhynskyi d90d24ca61 Check if all defined known measurements in a file are valid.
--HG--
branch : develop
2015-09-22 17:41:05 +03:00
Roman Telezhynskyi d2bb126d04 Conversion individual measurements.
--HG--
branch : develop
2015-09-07 14:51:21 +03:00
Roman Telezhynskyi 5a1208655c Working with new Increments.
--HG--
branch : feature
2015-08-25 13:35:50 +03:00
Roman Telezhynskyi f3d24856be Check Measurement file unit.
--HG--
branch : feature
2015-08-18 10:24:51 +03:00
Roman Telezhynskyi 0c73e7f760 Convert measurements to a pattern file's unit.
--HG--
branch : feature
2015-08-17 15:36:55 +03:00
Roman Telezhynskyi dcbfc2240d Return selected names. Add them to the table.
--HG--
branch : feature
2015-08-01 14:25:05 +03:00
Roman Telezhynskyi fff806e110 Lock producing random attribute order in XML
--HG--
branch : feature
2015-07-26 10:17:53 +03:00
Roman Telezhynskyi 3346bd96f2 Return list known and list all measurements in a file.
--HG--
branch : feature
2015-07-26 10:01:26 +03:00
Roman Telezhynskyi 3c32c869a6 In some cases need just disable GUI (Read only mode) without writing in file.
--HG--
branch : feature
2015-07-25 18:18:01 +03:00
Roman Telezhynskyi 19b787b111 Open measurement file.
--HG--
branch : feature
2015-07-25 15:59:40 +03:00
Roman Telezhynskyi 5697d45b2d New field full name.
--HG--
branch : feature
2015-07-25 11:54:39 +03:00
Roman Telezhynskyi 0026b698bb Values should be fractional.
--HG--
branch : feature
2015-07-25 09:10:56 +03:00
Roman Telezhynskyi 34859e5913 Fixed a bug in calculation graduation value. Values base size and heights from
file was ignored.

--HG--
branch : feature
2015-07-25 08:41:04 +03:00
Roman Telezhynskyi 7e25a27a0c Block wrong formula and don't write to file.
--HG--
branch : feature
2015-07-24 13:06:39 +03:00
Roman Telezhynskyi 180af51f99 Save attributes.
--HG--
branch : feature
2015-07-22 12:44:31 +03:00
Roman Telezhynskyi 17e99b4cb4 Move up and move down.
--HG--
branch : feature
2015-07-22 10:01:34 +03:00
Roman Telezhynskyi a74bfd9c42 Delete measurement.
--HG--
branch : feature
2015-07-22 09:41:04 +03:00
Roman Telezhynskyi b79807a8ef Methods AddEmpty, AddEmptyAfter.
--HG--
branch : feature
2015-07-21 20:26:33 +03:00
Roman Telezhynskyi b046aba66c Add custom measurement in table.
--HG--
branch : feature
2015-07-19 15:28:01 +03:00
Roman Telezhynskyi 397f5b65bc Ignore new values if file read only.
--HG--
branch : feature
2015-07-18 16:25:56 +03:00
Roman Telezhynskyi 4aa690d55d Save and Save as.
--HG--
branch : feature
2015-07-18 15:39:33 +03:00
Roman Telezhynskyi 5ba6d62d94 Save basic information in file.
--HG--
branch : feature
2015-07-18 14:08:44 +03:00
Roman Telezhynskyi a9edee47e5 Creation empty file.
--HG--
branch : feature
2015-07-16 12:38:54 +03:00
Roman Telezhynskyi 58d1cf5fdd Open new window if file was created.
--HG--
branch : feature
2015-07-15 10:16:59 +03:00
Roman Telezhynskyi 1aad1090b1 New static library VFormat.
--HG--
branch : feature
2015-07-14 20:22:31 +03:00