Commit graph

259 commits

Author SHA1 Message Date
Roman Telezhynskyi 6abddfd240 Standard passmarks length for all pieces. Closes #124 2021-05-10 16:39:17 +03:00
Roman Telezhynskyi f4eb8330b3 Merge branch 'develop' into feature/manual-layout 2021-04-24 13:05:13 +03:00
Roman Telezhynskyi d9f2b756a4 Extend piece bounding rect. Closes #122 2021-04-23 09:26:49 +03:00
Roman Telezhynskyi e00cfb9890 Incorrect duplication of a piece. Missing restoring pins. 2021-03-29 16:09:00 +03:00
Roman Telezhynskyi 0138e5a321 Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2021-02-24 16:26:11 +02:00
Roman Telezhynskyi 1b57580c15 Fix bug. Undo Union details hide piece node points. 2021-02-07 11:26:54 +02:00
Roman Telezhynskyi 2bb95154cd Fix Tape crash. 2021-02-06 15:52:21 +02:00
Roman Telezhynskyi f81babbf7b Refactoring. 2021-01-23 15:25:01 +02:00
Roman Telezhynskyi 5eb8784cd4 New warning. Grainline is not valid. 2021-01-23 15:24:44 +02:00
Roman Telezhynskyi aa5f026c58 Merge branch 'develop' into feature/manual-layout 2020-11-27 11:56:55 +02:00
Roman Telezhynskyi f2624692e3 Refactoring.
Rename the function to better reflect its purpose.
2020-11-26 19:39:55 +02:00
Roman Telezhynskyi 27fe4b15fd Fix regression.
Regression after commit 1539abaf4d.
2020-11-26 19:39:18 +02:00
Roman Telezhynskyi 1e960e2f8a Refactoring. Remove unused argument. 2020-11-25 09:59:36 +02:00
Roman Telezhynskyi e8b69bbb88 Refactoring. Remove unused argument. 2020-11-25 08:47:01 +02:00
Roman Telezhynskyi 10684213ec Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-11-24 13:30:33 +02:00
Roman Telezhynskyi 1539abaf4d Fix hiding inserted node in a pattern piece after its removal. 2020-11-24 13:28:42 +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 d8c1c8e4d4 Generate new uuid for a piece duplicate. 2020-11-20 20:39:42 +02:00
Roman Telezhynskyi b82d6f1bb1 Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-11-20 13:40:39 +02:00
Roman Telezhynskyi 80d9fbc107 New function Warning. 2020-11-20 13:18:38 +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 d10f20f399 Extend placeholders list with list of measurements. 2020-10-16 13:43:54 +03:00
Roman Telezhynskyi 4cea74d63b Loading measurements in Valentina. 2020-10-15 18:05:21 +03:00
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 30a27ee85a UUID field for piece. 2020-04-22 14:32:25 +03:00
Roman Telezhynskyi 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +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 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 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 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 6ed74b2dd0 Refactoring. Use CreateElementWithText to create tag with text.
--HG--
branch : feature
2019-07-10 13:07:29 +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 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 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 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 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 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 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 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 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 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 3970bbdbc0 Refactoring. Use QChar instead of QString where possible.
--HG--
branch : develop
2018-04-12 13:13:19 +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 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
Roman Telezhynskyi f605777495 Fixed issue #817. Piece label is not rotatable by mouse.
--HG--
branch : develop
2018-02-27 13:06:37 +02:00
Roman Telezhynskyi 6c438f92e0 Resolved issue #808. New feature. Global line width option.
--HG--
branch : develop
2018-02-06 19:30:27 +02:00
Roman Telezhynskyi 8b7494fb08 Show Forbid flipping and Force flipping options in piece context menu.
--HG--
branch : develop
2018-02-03 14:18:32 +02:00
Roman Telezhynskyi 0cfe0b5936 Fix Valentina's crash.
Valentina crashes when delete several selected pieces.

--HG--
branch : develop
2018-01-30 10:31:50 +02:00
Roman Telezhynskyi 3bdf60705d Clang warning.
--HG--
branch : develop
2018-01-28 12:58:11 +02:00
Roman Telezhynskyi 525a8b0dc2 Copy piece tool should copy more point information: label position and
show/hide state.

--HG--
branch : develop
2018-01-25 11:39:37 +02:00
Roman Telezhynskyi 2bf477ca8a Fix bug in copy piece tool.
--HG--
branch : develop
2018-01-25 10:31:59 +02:00
Roman Telezhynskyi f78f191843 Fix bug in copy piece tool.
--HG--
branch : develop
2018-01-24 16:50:25 +02:00
Roman Telezhynskyi cf8c12f16a Seep up method VToolSeamAllowance::RefreshGeometry() with multithread.
--HG--
branch : develop
2018-01-20 17:59:11 +02:00
Roman Telezhynskyi dd6cc1edc6 Enhancement. Disable a label options if a label template is empty.
Many user confused by not visible label even if "all" data filed. Valentina
should warn about this situation and force user to fill a label template.

--HG--
branch : develop
2018-01-14 18:19:43 +02:00
Roman Telezhynskyi 88844ec33f Resolved issue #783. Flipping control.
--HG--
branch : develop
2017-12-17 15:06:46 +02:00
Roman Telezhynskyi 20e4ab1980 Fix selecting piece labels and grainline.
--HG--
branch : develop
2017-11-29 15:58:58 +02:00
Roman Telezhynskyi 98ebfd11c6 Fix stand-alone piece updating. It should call updating internal paths in this
case.

--HG--
branch : develop
2017-11-21 11:55:37 +02:00
Roman Telezhynskyi e9abab4eb2 Fix bug in Valentina.
Each QGaphicsItem should make accepted mouse press event if it accept an event.

--HG--
branch : develop
2017-10-31 10:31:50 +02:00
Roman Telezhynskyi 7a11b3497a Fix bug with setting cursor QGraphicsPathItem without hover events.
--HG--
branch : develop
2017-10-30 11:08:25 +02:00
Roman Telezhynskyi cbf3e4d5df When create group selecting a control point should also select a curve.
--HG--
branch : develop
2017-10-30 08:34:18 +02:00
Roman Telezhynskyi f16d26b659 Improve EnsureVisibleWithDelay feature.
Margins should to be scaled according to scene scale factor.

--HG--
branch : develop
2017-10-29 13:46:58 +02:00
Roman Telezhynskyi 09f3ba234c Fix bug with item highligh selected.
--HG--
branch : develop
2017-10-29 11:06:17 +02:00
Roman Telezhynskyi d3cf15f5b8 Fix some bugs.
--HG--
branch : develop
2017-10-28 17:31:18 +03:00
Roman Telezhynskyi 72dde072af New feature. Allow to exclude piece node point from it's context menu.
--HG--
branch : develop
2017-10-27 14:02:17 +03:00
Roman Telezhynskyi dd5b276e5d Fix bug with exclude objects.
--HG--
branch : develop
2017-10-27 12:11:29 +03:00
Roman Telezhynskyi 29b23bbce3 Toggle piece node point label. ref #755.
--HG--
branch : develop
2017-10-27 11:53:35 +03:00
Roman Telezhynskyi 4af32961b0 Optimize adjusting new scene rect.
If we know an object that cause adjustment no need to recalc bounding rect for
all scene items.

--HG--
branch : develop
2017-10-27 09:13:51 +03:00
Roman Telezhynskyi 51e670bd84 Duplicate from GUI.
--HG--
branch : feature
2017-10-26 16:57:52 +03:00
Roman Telezhynskyi 9b54b0c069 Dialog Duplicate Detail.
--HG--
branch : feature
2017-10-25 17:49:04 +03:00
Roman Telezhynskyi 05cad85ab3 Fix bug with tool seam allowance cursor.
--HG--
branch : feature
2017-10-23 14:31:01 +03:00
Roman Telezhynskyi 660efa3844 Fix bugs.
* * *
Fix tool union bugs.
* * *
Fix preparing pieces for layout.
* * *
Fix bug with formulas.

--HG--
branch : feature
2017-10-23 10:45:58 +03:00
Roman Telezhynskyi ca79c7ff93 Added place label.
--HG--
branch : feature
2017-10-15 12:25:20 +03:00
Roman Telezhynskyi 71b5a17aa1 Refactor methods names for better readability.
--HG--
branch : develop
2017-10-19 11:24:21 +03:00
Roman Telezhynskyi 8eecfe78a3 New feature multi deletion pieces.
--HG--
branch : develop
2017-10-19 11:20:19 +03:00