Commit graph

774 commits

Author SHA1 Message Date
Roman Telezhynskyi 19f95c8e54 Refactoring. Use TextWidth to simplify code. 2022-02-19 21:26:30 +02:00
Roman Telezhynskyi 499ec96691 Move literals to separate header. 2022-02-18 10:36:38 +02:00
Roman Telezhynskyi 080e84ff48 New placeholders. 2022-02-14 14:11:27 +02:00
Roman Telezhynskyi 3e59505da2 Improve creation by mouse for tool Spline. 2022-02-07 11:42:53 +02:00
Roman Telezhynskyi f97c18c923 Improve error in check point uniqueness check. 2022-02-05 11:30:32 +02:00
Roman Telezhynskyi cb036e8d43 New path validation Invalid segment. 2021-11-24 14:15:21 +02:00
Roman Telezhynskyi cd23cec411 Improved main path validations. 2021-11-24 11:27:44 +02:00
Roman Telezhynskyi 869b9e98e1 Refactoring.
Move GetNodeName to better place.
2021-11-23 17:10:00 +02:00
Roman Telezhynskyi 2945da4d38 Fix double call of a main path context menu. 2021-11-16 18:52:32 +02:00
Roman Telezhynskyi 03e1b5ba3a Increase the limit for the Letter field. 2021-11-05 16:08:13 +02:00
Roman Telezhynskyi bcb786958e Show tooltip about defined user material in the label placeholder list. 2021-10-02 19:15:08 +03:00
Roman Telezhynskyi b6dc3f30b8 Lupdate. 2021-10-01 21:10:16 +03:00
Roman Telezhynskyi b861d6a28e GCC warnings. 2021-09-25 17:18:33 +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 f1e49a7fd6 Create and update manual layout from Valentina. 2021-09-13 09:04:11 +03:00
Roman Telezhynskyi 29325add49 Gradation label. 2021-08-31 12:07:26 +03:00
Roman Telezhynskyi e5105e4eed Merge branch 'develop' into feature/manual-layout 2021-07-26 16:47:54 +03:00
Roman Telezhynskyi 5d84aa6dc1 Fix regression. Set default value for detail labels size and grainline length to 10 cm. 2021-07-20 16:14:13 +03:00
Roman Telezhynskyi 68c6c033b4 Merge branch 'develop' into feature/manual-layout 2021-05-15 11:27:37 +03:00
Roman Telezhynskyi 6bfc5065bd Alias support for tools Point of intersection curve and axis and Point of intersection curves. 2021-05-08 10:54:14 +03:00
Roman Telezhynskyi f4eb8330b3 Merge branch 'develop' into feature/manual-layout 2021-04-24 13:05:13 +03:00
Roman Telezhynskyi 2a9adb5d88 Fix deprecation warning.
Some headers from C library were deprecated in C++ and are no longer welcome in C++ codebases.
2021-04-09 17:51:45 +03:00
Roman Telezhynskyi 95fb3f3d89 Pattern label template placeholder with dimension label value. Closes #109 2021-03-29 15:06:32 +03:00
Roman Telezhynskyi 45649f5178 Fix regression. Closes #111
Enable Pattern label position options when load not empty label template.
2021-03-26 17:51:28 +02:00
Roman Telezhynskyi 0138e5a321 Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2021-02-24 16:26:11 +02:00
Roman Telezhynskyi d2c6ebba21 Fix the formula wizard crash. 2021-02-10 19:22:59 +02:00
Roman Telezhynskyi 2bb95154cd Fix Tape crash. 2021-02-06 15:52:21 +02:00
Roman Telezhynskyi 6d3d624980 Improve error handling for final measurements placeholders. #85 2021-01-30 21:15:49 +02:00
Roman Telezhynskyi 1019f91d5b Fix crash on Windows. 2021-01-27 09:27:34 +02:00
Roman Telezhynskyi 8b15f4aed6 Final measurement printout on pattern piece. Closes #85 2021-01-23 21:37:36 +02:00
Roman Telezhynskyi c47664d86c Allow insertion of multiple nodes by setting their number. Closes #88. Ref #80 2021-01-23 21:11:21 +02:00
Roman Telezhynskyi 8123c67e7c Move Pattern Label Data tab to piece dialog. Closes #89 2021-01-23 20:27:51 +02:00
Roman Telezhynskyi 3cc6cae97e Lupdate. 2021-01-23 12:59:46 +02:00
Roman Telezhynskyi a58a783aba Merge branch 'develop' into feature/manual-layout 2020-12-23 18:40:33 +02:00
Roman Telezhynskyi 58cae6f66c New option "Don't use the native file dialog". 2020-12-17 18:43:15 +02:00
Roman Telezhynskyi 0ab76dd6b9 New warning. Warn about empty measurements dimension value when preparing placeholders. 2020-12-17 17:42:47 +02:00
Roman Telezhynskyi f40c06b6fc Fix invalid visualization for tool Point of intersection circles. 2020-12-08 11:20:44 +02:00
Roman Telezhynskyi 4166e8f635 Fix a regression in tool Segment a spline path.
Dialog must forbids a user to save an invalid point name.
2020-12-07 10:05:46 +02:00
Roman Telezhynskyi e8fd8095b4 Merge branch 'develop' into feature/manual-layout 2020-11-21 19:05:46 +02:00
Roman Telezhynskyi 28d2358825 Allow insertion of multiple nodes. Closes #80 2020-11-21 19:04:31 +02:00
Roman Telezhynskyi 9ae51c937f Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-11-13 11:52:10 +02:00
Roman Telezhynskyi 48bc720daa Add missing signals. 2020-11-12 14:00:14 +02:00
Roman Telezhynskyi 0371905c0d Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-11-10 16:00:01 +02:00
Roman Telezhynskyi 545f2d33fe Independent pen style and color after a group operation. 2020-11-10 12:40:37 +02:00
Roman Telezhynskyi adab733202 Use an object name together with alias everywhere where is possible. 2020-11-07 16:20:35 +02:00
Roman Telezhynskyi 99985d43e0 Alias support for group operations. 2020-11-07 15:02:30 +02:00
Roman Telezhynskyi 3feddb9ce9 Fix alias validation bug. 2020-11-07 11:18:13 +02:00
Roman Telezhynskyi 061c9b502a Use a regex to validate alias. 2020-11-06 14:48:37 +02:00
Roman Telezhynskyi 3e682b180c Alias field for tool Cut Spline Path. 2020-11-04 18:14:34 +02:00
Roman Telezhynskyi abff41813a Alias field for tool Cut Spline. 2020-11-04 18:14:34 +02:00
Roman Telezhynskyi 2574ecda0e Alias field for tool Cut Arc. 2020-11-04 18:14:34 +02:00
Roman Telezhynskyi b1f9327393 Alias field for tool Spline Path. 2020-11-04 17:36:54 +02:00
Roman Telezhynskyi 648d1f1897 Alias field for tool Spline. 2020-11-04 17:36:54 +02:00
Roman Telezhynskyi 7fe316c876 Alias field for tool Cubic Bezier Path. 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 0301c8289f Alias field for tool Elliptical arc. 2020-11-04 17:36:54 +02:00
Roman Telezhynskyi 7542fc5dc2 Alias field for tool Arc with length. 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 25a5a564b5 Lupdate. 2020-10-30 13:23:11 +02:00
Roman Telezhynskyi 9e3e59d267 Fix error: 'width' is deprecated: Use QFontMetrics::horizontalAdvance. 2020-10-28 17:22:47 +02:00
Roman Telezhynskyi 8927abe99a Reading/writing a draw tool notes. 2020-10-28 14:09:56 +02:00
Roman Telezhynskyi de401b2d06 Add notes for the base point tool to property browser. 2020-10-27 18:26:33 +02:00
Roman Telezhynskyi b820107b4d Notes for tool Base point. 2020-10-27 16:21:51 +02:00
Roman Telezhynskyi 34e1391ecb Remove translation for label placeholders. 2020-10-16 13:55:51 +03:00
Roman Telezhynskyi d10f20f399 Extend placeholders list with list of measurements. 2020-10-16 13:43:54 +03:00
Roman Telezhynskyi 1b2343e537 Extend list of placeholders.
Added customer email and birth date, all dimensions.
2020-10-16 11:37:49 +03:00
Roman Telezhynskyi 0eaf15f09d Show a measurement special units in description. 2020-10-16 09:47:27 +03:00
Roman Telezhynskyi 4cea74d63b Loading measurements in Valentina. 2020-10-15 18:05:21 +03:00
Roman Telezhynskyi 047ace3f26 Fix removing a pin in the Seam Allowance tool dialog.
(cherry picked from commit b83fec62bf)
2020-09-23 14:58:34 +03:00
Roman Telezhynskyi 158edcc093 Use of QButtonGroup::buttonClicked has been deprecated since Qt 5.15. 2020-07-08 11:29:40 +03:00
Roman Telezhynskyi 20b797b2c5 Merge branch 'develop' into feature/manual-layout. 2020-06-04 13:45:32 +03:00
Roman Telezhynskyi 42ed025afa Fix validation of Curved path tool. Closes smart-pattern/valentina#41. 2020-05-30 18:14:50 +03:00
Roman Telezhynskyi f06c85753b Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-05-09 13:21:29 +03:00
Roman Telezhynskyi 4970254607 Fix issue. Elide a variable description in the formula wizard.
(cherry picked from commit 56ec62580c)
2020-05-08 19:41:42 +03:00
Roman Telezhynskyi 30a27ee85a UUID field for piece. 2020-04-22 14:32:25 +03:00
Roman Telezhynskyi 51e0694f36 Merge branch 'develop' into feature/manual-layout. 2020-04-11 10:38:14 +03:00
Roman Telezhynskyi ca186be41d Lupdate. 2020-03-27 11:25:31 +02:00
Roman Telezhynskyi 1edceea8bc error: 'QLatin1Literal' is deprecated: Use QLatin1String. 2020-03-26 12:23:33 +02:00
Roman Telezhynskyi c6c4edb893 Merge branch 'develop' into feature/manual-layout 2020-03-25 15:28:23 +02:00
Roman Telezhynskyi 6e0bf20bc4 Clang warnings. 2020-03-24 17:57:32 +02:00
Roman Telezhynskyi c1453f1715 Organization of groups - groups categories. Closes smart-pattern/valentina#15. 2020-03-24 17:31:32 +02:00
Roman Telezhynskyi 80880f9b7b GCC warning. 2020-03-18 15:22:27 +02:00
Roman Telezhynskyi 526892ed5a Auto-created Visibility Group for group operation. Closes smart-pattern/valentina#18. 2020-03-18 14:45:47 +02:00
Roman Telezhynskyi 3429e5ae11 Tool Point at distance and angle now allows negative length.
Because length cannot be negative a line will change direction on opposite.
2020-03-12 16:31:57 +02:00
Roman Telezhynskyi f4908dafd4 Change default values for grainline length and pattern label size to 10 cm. 2020-03-12 10:49:12 +02:00
Roman Telezhynskyi ad87577ec8 Translation functions descriptions. 2020-02-27 17:26:32 +02:00
Roman Telezhynskyi 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +02:00
Roman Telezhynskyi 658eafc3d3 Refactoring. Hide compatibility layer behind a function.
toVector().

--HG--
branch : develop
2020-01-16 19:20:55 +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 b3f236dbb5 Refactoring. Rename ArrowType enum class.
--HG--
branch : develop
2020-01-07 13:54:23 +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 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 57b9868316 Cppcheck warning.
(grafted from e996125b7dbe0fb7b439bc80db0b561144628c18)

--HG--
branch : develop
2020-01-06 18:33:37 +02:00
Roman Telezhynskyi 1c6ff72b23 Removed hard coded font value. Kept only its bold status.
--HG--
branch : develop
2019-12-07 08:58:12 +02:00
Roman Telezhynskyi 34c49f3323 Clazy warning.
--HG--
branch : develop
2019-12-07 08:55:52 +02:00
Roman Telezhynskyi 5c7af760d0 Improve Passmark tab by adding a tooltip about a way to define a passmark.
--HG--
branch : develop
2019-12-04 17:50:50 +02:00
Roman Telezhynskyi eeedebbac3 Fix regression in dialog Placelabel.
--HG--
branch : develop
2019-12-03 15:20:47 +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 2d63440549 Fix a crash. ref #984.
Cover cases with VCubicBezier and VCubicBezierPath.

--HG--
branch : develop
2019-11-24 12:49:40 +02:00
Roman Telezhynskyi f8ca985ad7 Fix a crash. ref #984.
--HG--
branch : develop
2019-11-07 18:07:07 +02:00
Roman Telezhynskyi e04f5c70f5 Resolved issue #984. Special variable "CurrentLength" for tools Cut Arc, Cut
Spline and Cut Spline Path.

--HG--
branch : develop
2019-10-29 15:43:25 +02:00
Roman Telezhynskyi 08604f67bb Fix copy paste error.
--HG--
branch : develop
2019-09-20 14:17:32 +03: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 94abb23ae6 Fix translation disambiguation.
--HG--
branch : develop
2019-09-08 10:02:57 +03:00
Roman Telezhynskyi 503e31aee0 Fix error: 'currentIndexChanged' is deprecated: Use currentTextChanged()
instead.

--HG--
branch : develop
2019-07-24 16:45:22 +03:00
Roman Telezhynskyi e37afae597 Allow controlling priority selecting pieces in layout.
--HG--
branch : develop
2019-07-19 10:45:57 +03:00
Roman Telezhynskyi e8804c90bb New layout option --nestQuantity.
--HG--
branch : develop
2019-07-04 14:33:45 +03:00
Roman Telezhynskyi ad07fb3ae5 Fix regression.
Found another way to fix tool Flipping by axis.

--HG--
branch : develop
2019-06-19 18:39:37 +03:00
Roman Telezhynskyi 0ffd46215c Fix for tool Flipping by axis.
--HG--
branch : develop
2019-06-18 19:22:08 +03:00
Roman Telezhynskyi 0deb90af92 Fix regression. Piece duplicate complains about currentSeamAllowance variable.
--HG--
branch : develop
2019-06-03 19:17:17 +03:00
Roman Telezhynskyi aee0861aef Fixing regression in method DialogTool::GetNodeName.
(grafted from 85f1cc324da4971357555e1e1f0aec51eac0f743)

--HG--
branch : develop
2019-05-27 19:14:07 +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 57d6d79a53 New placelabel shape Circle.
--HG--
branch : develop
2019-04-23 17:42:09 +03:00
Roman Telezhynskyi 000062b7b7 Refactoring. Move static functions to dialogtoolbox.h.
--HG--
branch : develop
2019-04-20 19:30:35 +03:00
Roman Telezhynskyi 1fe7223096 Fix checking double curve.
--HG--
branch : develop
2019-04-20 19:04:03 +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 419095300e Disable seam allowance options if seam allowance is built in.
--HG--
branch : develop
2019-04-15 21:15:56 +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 782b257c04 Fixed issue #954. Valentina produces empty rotation operation.
(grafted from 0108ef767e2447e5b5f39378bcf245e25947a25d)

--HG--
branch : develop
2019-02-24 17:29:12 +02:00
Roman Telezhynskyi 5472bef03e Fixed issue #948. Not possible to create point at 0 degrees.
--HG--
branch : develop
2019-02-19 17:18:14 +02:00
Roman Telezhynskyi e1cd58db03 Fixed issue #946. Impossible to create pattern in detail mode.
--HG--
branch : develop
2019-02-18 14:37:39 +02:00
Roman Telezhynskyi 00313493de Changes for travis.
--HG--
branch : develop
2019-02-16 13:42:31 +02:00
Roman Telezhynskyi 230eb0fa54 Fixes for travis.
--HG--
branch : develop
2019-02-16 13:13:17 +02:00
Roman Telezhynskyi c118b36579 Fix regression.
--HG--
branch : develop
2019-02-14 17:20:56 +02:00
Roman Telezhynskyi 9b1cdb1848 Improve localization of modifier keys.
--HG--
branch : develop
2019-02-14 13:18:16 +02:00
Roman Telezhynskyi 4bfe5201ad Fix regression.
--HG--
branch : develop
2019-02-12 12:36:51 +02:00
Roman Telezhynskyi 26578c0fba Select formula text in Formula Wizard to help user quickly override it.
--HG--
branch : develop
2019-02-12 12:36:12 +02:00
Roman Telezhynskyi 62d6463753 Fix more regressions in dialogs.
--HG--
branch : develop
2019-02-12 11:27:51 +02:00
Roman Telezhynskyi 3e821a7b83 Fix regression.
--HG--
branch : develop
2019-02-12 11:08:40 +02:00
Roman Telezhynskyi 0c3cce5122 Refactoring tool dialogs.
--HG--
branch : develop
2019-02-11 13:25:27 +02:00
Roman Telezhynskyi 66d2aeb026 Improve Dialog Seam Allowance tab Labels. Remove unnecessary spaces.
--HG--
branch : develop
2019-02-07 15:50:52 +02:00
Roman Telezhynskyi 3b3d1e1b4f Fixed issue #938. Dialog Seam Allowance doesn't block user from saving broken
formula.
(grafted from 829e2d26bb6e63c8bdbf541caac22a1e7f76602b)

--HG--
branch : develop
2019-02-07 15:42:17 +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 e91c92d4a9 Resolved issue #929. New variable type: Separator.
--HG--
branch : develop
2019-01-16 16:24:41 +02:00
Roman Telezhynskyi 194aac3813 Fixing Wclazy-qstring-allocations warning.
--HG--
branch : develop
2019-01-15 16:39:58 +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 5bed94c31b Fixed issue #913. Unable to save changes for piece path if it doesn't contain a
point.
(grafted from 0cf04b80083754dc5ed7e54ed95be63b97a7503a)

--HG--
branch : develop
2018-12-20 17:54:54 +02:00
Roman Telezhynskyi e23438347a Fixed issue #912. Labels in inactive state return to initial color.
(grafted from b222072d66ff164252223728d913226b500df73a)

--HG--
branch : develop
2018-12-20 17:50:33 +02:00
Roman Telezhynskyi 4e8ceb6c1e Improve UI. Make placeholder menu scrollable.
--HG--
branch : develop
2018-11-30 17:32:36 +02:00
Roman Telezhynskyi ead254ab6b Resolve issue #895. Improve path validation. Do not allow repeat the same curve
twice.

--HG--
branch : develop
2018-10-22 15:43:58 +03:00
Roman Telezhynskyi 978a8ba0c3 Added missed passmark option in Piece Path dialog.
Dialog should provide the same amount of options because a piece path can be
used as a custom seam allowance included as main path.

--HG--
branch : release
2018-09-29 21:46:39 +03:00
Roman Telezhynskyi e252de9e80 Refactoring method DialogTool::GetNodeName().
Renamed an argument. Show node details only if requested.

--HG--
branch : release
2018-09-24 14:41:34 +03:00
Roman Telezhynskyi 56e05ab953 Improve context menu in dialog piece path.
This menu should povide exclude option. Also Passmark option should be available
only when a piece path included as main path.

--HG--
branch : release
2018-09-24 14:40:02 +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 37428a4d82 Warn users about empty piece list when they use one of the tools those require
a piece to continue work.

--HG--
branch : release
2018-08-12 10:03:39 +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 d35684a44a Fix regression. Valentina doesn't show a notch mark in a custom seam allowance
list.

--HG--
branch : develop
2018-07-24 15:29:53 +03:00
Roman Telezhynskyi fbafe9f052 Forbid enabling notches before completed creation of main path.
--HG--
branch : develop
2018-07-24 10:12:44 +03:00
Roman Telezhynskyi 16d8c5fc65 Valentina doesn't allow to continue creating a customer seam allowance after
calling a context menu.

--HG--
branch : develop
2018-07-24 10:09:00 +03:00