Commit graph

736 commits

Author SHA1 Message Date
Roman Telezhynskyi 5f2bec91d9 DRY. Refactoring item move code. smart-pattern/valentina#53 2020-06-20 12:20:39 +03:00
Roman Telezhynskyi d08da56764 Improve moving items on scene smart-pattern/valentina#53.
Increase delay to 160 ms. Set static margins.
2020-06-20 12:08:59 +03:00
Roman Telezhynskyi 8aa93f8757 Fix disappearing a visibility group tags after Apply -> OK sequence. 2020-05-07 17:02:16 +03:00
Roman Telezhynskyi 2f4ac3deb9 Fix possible cause of crashes. 2020-03-28 19:43:01 +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 a84857afda Show linked visibility group in group operation tooltip. 2020-03-24 17:27:16 +02:00
Roman Telezhynskyi 11718f6f44 Refactoring. Set Visibility group data in parent class. 2020-03-24 16:58:34 +02:00
Roman Telezhynskyi 82570bf9db Remove the linked visibility group when deleting a group operation. 2020-03-24 16:54:17 +02:00
Roman Telezhynskyi 5a367a8d85 Clang warning. 2020-03-18 15:36:00 +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 9869ae249f Refactoring. Move all related to the visibility group undo command classes in one file. 2020-03-18 14:37:30 +02:00
Roman Telezhynskyi 6d1b7a9212 Call Piece Options and Delete Piece from the piece list context menu. 2020-02-20 19:18:19 +02: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 9c9c4f9abd Catch missed warning to pattern messages log.
--HG--
branch : develop
2020-01-16 14:17:18 +02:00
Roman Telezhynskyi 2a95c41bb7 Cover case when we can safely ignore broken union details operation.
--HG--
branch : develop
2020-01-11 15:08:55 +02:00
Roman Telezhynskyi f13ec746a9 Enable/Disable Passmark through Context Menu in detail mode.
--HG--
branch : develop
2020-01-10 14:04:41 +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 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 3c74c03c59 Fix crash after uniting three pieces in sequence.
(grafted from 7f649df048328d449e1de01794d238eeef0c39be)

--HG--
branch : develop
2019-12-29 13:49:57 +02:00
Roman Telezhynskyi 9cc97ef602 Clazy warnings.
--HG--
branch : develop
2019-11-24 13:09:30 +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 0c0207aa6f Fix dialog for tool Point along perpendicular. No memory of line color settings.
(grafted from d65f796893e4f8c04b535f711bd8d93275e2ddff)

--HG--
branch : develop
2019-11-19 10:52:53 +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 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 b3cc614789 Fix incorrect angle value in tool tooltip.
(grafted from 3d1fe3de2bb0d8675ed89934456792906bf1d0eb)

--HG--
branch : develop
2019-10-17 14:54:54 +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 366e76a642 Improve piece node context menu. Added options to control passmark angle type
and passmark mark type.

--HG--
branch : develop
2019-09-05 11:29:20 +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 09bd14f382 Rethink feature. Instead of hiding show main path.
--HG--
branch : develop
2019-07-23 16:01:39 +03:00
Roman Telezhynskyi 5c84c80039 Refactoring. Reduce modules dependency.
--HG--
branch : develop
2019-07-22 17:06:30 +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 a3e643b5dd New feature "Hide piece's main path".
In some cases users want to hide main path and work with "real" pattern pieces.
This new option allows to quickly disable main path for all pieces without need
to make manual adjustment for each piece. Do not ovveride piece options.

--HG--
branch : develop
2019-07-18 20:18:48 +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 643dce08b7 Changing settings for move and rotate tools through property browser does not
take in count previous change for label point and Show label option.
(grafted from 8c626cf05d645f1e9b40dd44a9f361ff1fd2dad7)

--HG--
branch : develop
2019-06-18 19:04:26 +03:00
Roman Telezhynskyi 2538fc24b5 Improve Cut arc tool tooltip.
Show ids of subarcs.

--HG--
branch : develop
2019-05-29 13:29:57 +03:00
Roman Telezhynskyi 4192af8117 Refactoring.
--HG--
branch : develop
2019-05-08 15:17:34 +03:00
Roman Telezhynskyi 218ef45d1e Resolved issue #969. Fix length to label after soom.
--HG--
branch : develop
2019-05-05 17:31:45 +03:00
Roman Telezhynskyi 527d45daba Fixed issue #966. Unable to control Approximation scale for arc with length.
(grafted from 758fe0d016a641b390f431447cff60d7c93961c8)

--HG--
branch : develop
2019-04-19 13:05:35 +03:00
Roman Telezhynskyi 35a0fd74e1 Optimize size, rely more on default values for attributes.
--HG--
branch : develop
2019-04-18 15:28:07 +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 b500650cf1 Disable context menu Angle if not enabled seam allowance or enabled built in.
--HG--
branch : develop
2019-04-15 21:20:33 +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 0f226d6cdf Fix wrong use of SetAttributeOrRemoveIf(). The remove condition must be
calculated not hardcoded.

--HG--
branch : develop
2019-03-27 09:46:33 +02:00
Roman Telezhynskyi 504e617686 Fixed issue #955. Valentina corrupts file.
(grafted from 8e9fc213aa8018ebcf889cc9baa3f08a31b4e423)

--HG--
branch : develop
2019-03-04 14:40:58 +02:00
Roman Telezhynskyi d5b50a7850 Fix build on Qt 5.2.
--HG--
branch : develop
2019-02-24 08:34:49 +02:00
Roman Telezhynskyi 0446a0653c Don't block moving piece label or grainline if pin id is not valid.
--HG--
branch : develop
2019-02-24 06:58:35 +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 73885ea890 Optimization. Delay refresh a piece internals update.
--HG--
branch : develop
2019-02-23 13:24:41 +02:00
Roman Telezhynskyi 372df4661a Fix reference counting for modeling objects.
--HG--
branch : develop
2019-02-16 11:57:47 +02:00
Roman Telezhynskyi ab93e4d448 Fix bug in method SetAttributeOrRemoveIf.
--HG--
branch : develop
2019-02-14 16:25:39 +02:00
Roman Telezhynskyi 5a74c4bf63 Cppcheck warnings.
--HG--
branch : develop
2019-02-03 15:58:35 +02:00
Roman Telezhynskyi a4d96e7020 Clazy warning.
--HG--
branch : develop
2019-02-03 15:53:51 +02:00
Roman Telezhynskyi 61173f75c4 Minor refactoring.
--HG--
branch : develop
2019-02-11 14:16:49 +02:00
Roman Telezhynskyi 7d1c4bc3ba Introducing new method SetAttributeOrRemoveIf.
--HG--
branch : develop
2019-02-11 14:15:59 +02:00
Roman Telezhynskyi 0c3cce5122 Refactoring tool dialogs.
--HG--
branch : develop
2019-02-11 13:25:27 +02:00
Roman Telezhynskyi 03e9c3068a Clazy warning.
--HG--
branch : develop
2019-02-11 10:46:37 +02:00
Roman Telezhynskyi 7375a457cd Fix regression. After creating a new detail with workpiece tool, only the point
labels appear in the detail screen.

--HG--
branch : develop
2019-01-22 19:04:24 +02:00
Roman Telezhynskyi b43962d40d Speed optimization for switching "In layout" state.
--HG--
branch : develop
2019-01-16 19:13:23 +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 d13b6e841d Fixed issue #905. Valentina crashes with error: This id is not unique.
(grafted from 0ca6c7805835b3f46bb4e8c2f199e68c804c0820)

--HG--
branch : develop
2018-11-28 12:00:40 +02:00
Roman Telezhynskyi cf3be706c2 Optimization. Update increments only if necessary.
--HG--
branch : develop
2018-11-24 16:47:44 +02:00
Roman Telezhynskyi 7c17b3629f To speed up opening a pattern delay piece RafreshGeometry().
--HG--
branch : develop
2018-11-19 11:07:31 +02:00
Roman Telezhynskyi 9f2959e32e Resolved issue #894. Quick way to disable a passmark.
--HG--
branch : develop
2018-10-22 15:06:32 +03:00
Roman Telezhynskyi 1d95b36377 Resolved issue #892. Show tooltip for piece node point.
--HG--
branch : develop
2018-10-22 13:28:58 +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 2858122d9d Fix typo.
--HG--
branch : release
2018-09-02 19:51:00 +03:00
Roman Telezhynskyi d9bb978532 Do not submit angle type if it has not been changed.
--HG--
branch : release
2018-09-02 18:52:19 +03:00
Roman Telezhynskyi 2ce59a1ee6 Added submenu to quick access to piece node point angle type.
--HG--
branch : release
2018-09-01 12:21:29 +03:00
Roman Telezhynskyi d8f6734451 Refactoring. Use macros FORMAT_VERSION to avoid human mistakes.
--HG--
branch : develop
2018-07-26 21:21:08 +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 86e7674920 Fix bug. Hide internal path if it doesn't have a parent.
--HG--
branch : develop
2018-07-25 12:57:39 +03:00
Roman Telezhynskyi a0e09d3fe7 Fix crash on Windows.
Cancelling Piece Path dialog crashes Valentina.

--HG--
branch : develop
2018-07-24 14:57:41 +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 fd85efacd9 Resolved issue #862. Force Valentina to immediately terminate if a pattern
contains a parsing warning.

--HG--
branch : develop
2018-07-13 16:18:04 +03:00
Roman Telezhynskyi fedbe60952 Resolved issue #860. Valentina allows forbidflipping and forceflipping at the
same time.

Undocommands for context menu were poorly designed.

--HG--
branch : develop
2018-07-09 14:17:53 +03:00
Roman Telezhynskyi 63b1eb8068 Cppcheck warning 'missingOverride'.
--HG--
branch : develop
2018-06-26 15:53:48 +03:00
Roman Telezhynskyi e244d002cc More tools should show a warning if cannot find a result.
--HG--
branch : develop
2018-06-07 14:37:43 +03:00
Roman Telezhynskyi e343cc8018 Fixed issue #854. Union Details Tool version 1 breaks a pattern.
--HG--
branch : develop
2018-06-05 12:22:31 +03:00
Roman Telezhynskyi 270f3b44a1 Improve handling errors cases for points of intersection.
Instead of silence setting coordinate to (0;0) show a warning message. Also for
tool "Point of Lines intersection" set coordinates to (0;0) instead of skipping
creating a point. This will prevent failing to open a pattern file.

--HG--
branch : develop
2018-05-25 17:52:35 +03:00
Roman Telezhynskyi ccda742aa8 Refactoring. Specifying the "pointer" part outside of auto.
--HG--
branch : develop
2018-05-07 14:32:17 +03:00
Roman Telezhynskyi 3b4007a40c Backed out changeset: 87f0955a62ad ref #841.
--HG--
branch : develop
2018-05-07 14:23:47 +03:00
Roman Telezhynskyi fd446a7c1f Fixed issue #841. Variables Table won't open again when closed with Esc.
--HG--
branch : develop
2018-04-23 10:13:19 +03:00
Roman Telezhynskyi 862860f016 QString optimizations.
--HG--
branch : develop
2018-04-22 18:32:55 +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 64029c249a Refactoring. Added special section for string literals.
--HG--
branch : develop
2018-04-08 19:45:23 +03:00
Roman Telezhynskyi cc4768ff77 Fixed issue #836. Change Detail Name - Update List of Details.
--HG--
branch : develop
2018-04-07 14:11:44 +03:00
Roman Telezhynskyi 188db90050 Automatically disable check for uniqness for the second point after uniting.
ref #835.

--HG--
branch : develop
2018-04-07 13:36:56 +03:00
Ronan Le Tiec a56c41589c Merged dismine/valentina into develop
--HG--
branch : develop
2018-04-06 21:58:09 +02: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 218c2cc518 Resolved issue #830. Seam allowance tool - object selection and preview.
--HG--
branch : develop
2018-04-02 16:49:53 +03:00
Ronan Le Tiec 84bab5386b issue 826 clear selection when adding an item to a group. changelog and list of contributor
--HG--
branch : feature
2018-04-02 11:52:42 +02:00
Ronan Le Tiec d3da522ac4 issue 826 undo and redo adding or removing item from group finished
--HG--
branch : feature
2018-04-01 23:36:54 +02:00
Ronan Le Tiec 1526d77612 issue 826 - workind on undo redo command
--HG--
branch : feature
2018-04-01 17:19:10 +02:00
Ronan Le Tiec 2ee19af497 issue 826 start working on undo redo command
--HG--
branch : feature
2018-03-31 11:50:08 +02:00