Commit Graph

2858 Commits

Author SHA1 Message Date
Roman Telezhynskyi
71466eac13 Refactoring. In some cases, for systems with different precision,
IsPointOnLineviaPDP must take different accuracy value.

--HG--
branch : develop
2019-07-21 09:00:42 +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
8888437b07 Fix way we calculate shift for empty sheet. Make it adjustable only if less
than default.

--HG--
branch : develop
2019-07-18 17:40:41 +03:00
Roman Telezhynskyi
a986f765a6 Fix memory leak.
--HG--
branch : develop
2019-07-18 17:34:43 +03:00
Roman Telezhynskyi
0d7c406df4 Fix calculating efficiency.
Piece square must be based on seam allowance or main path instead of layout
allowance.

--HG--
branch : develop
2019-07-18 17:32:19 +03:00
Roman Telezhynskyi
c522651b6b Fix typo.
--HG--
branch : develop
2019-07-15 20:08:22 +03:00
Roman Telezhynskyi
bdaba68a7e Allow to undo change of group visibility.
Added single group visibility change and multiple groups visibility change,
options hide all/show all. Improved speed for hide all/show all options.

--HG--
branch : develop
2019-07-15 19:56:57 +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
2dff387e5e Try another approach to suppress warning -Warray-bounds.
--HG--
branch : develop
2019-07-05 11:06:03 +03:00
Roman Telezhynskyi
c01dd8c1dc Backed out changeset: bea8c53b301d
--HG--
branch : develop
2019-07-05 10:59:54 +03:00
Roman Telezhynskyi
c74d25cd31 Backed out changeset: d56740267493
--HG--
branch : develop
2019-07-05 10:59:41 +03:00
Roman Telezhynskyi
2ac4267dd3 Fix locking file after double save as.
(grafted from 4828cd4acfa596166fe4c8a32f505045b86cab9c)

--HG--
branch : develop
2019-07-04 17:13:33 +03:00
Roman Telezhynskyi
13650f20a4 Try to suppress error: array subscript is above array bounds
[-Werror=array-bounds].

--HG--
branch : develop
2019-07-04 15:28:44 +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
7e1c096fa1 Try to suppress error: array subscript is above array bounds
[-Werror=array-bounds].

--HG--
branch : develop
2019-07-02 23:32:52 +03:00
Roman Telezhynskyi
2b2924911c Supress Cppcheck warnings.
--HG--
branch : develop
2019-07-01 18:44:18 +03:00
Roman Telezhynskyi
9042cd000c Refactoring.
--HG--
branch : develop
2019-07-01 18:24:46 +03:00
Roman Telezhynskyi
efa1bc6f27 Missed return statement.
--HG--
branch : develop
2019-07-01 18:18:54 +03:00
Roman Telezhynskyi
fc73ace034 Fix access to private member.
--HG--
branch : develop
2019-07-01 18:13:46 +03:00
Roman Telezhynskyi
4bd9cf381e QDataStream streaming operator for QFlags added only since Qt 5.9.
--HG--
branch : develop
2019-07-01 17:58:46 +03:00
Roman Telezhynskyi
f8dddca99f Fix build.
--HG--
branch : develop
2019-07-01 14:02:52 +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
c536c40628 Refactor AboutToQuit.
--HG--
branch : develop
2019-07-01 12:47:06 +03:00
Roman Telezhynskyi
4ab84bce38 Make full serialization/deserialization for class VLayoutPiece.
--HG--
branch : develop
2019-07-01 12:26:08 +03:00
Roman Telezhynskyi
35eb1cecff Refactoring.
--HG--
branch : develop
2019-07-01 12:11:18 +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
89f786d98a Refactoring. Moving enum class LayoutExportFormats.
--HG--
branch : develop
2019-07-01 09:57:49 +03:00
Roman Telezhynskyi
a2e71d6e1c Catch exceptions inside of QRunnable. ref #974.
--HG--
branch : develop
2019-06-24 12:14:10 +03:00
Roman Telezhynskyi
422ba5065f Change for support HAIKU.
(grafted from 168b6626b92d229fe00c454592285b40a97cd577)

--HG--
branch : develop
2019-06-24 10:29:50 +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
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
a4a6b18561 Cppcheck warning.
--HG--
branch : develop
2019-06-18 16:04:50 +03:00
Roman Telezhynskyi
f7c4bdf2a7 Improve handling layout errors.
Show Timeout error only if none errors appeared before.

--HG--
branch : develop
2019-06-18 15:14:52 +03:00
Roman Telezhynskyi
80d55659ab Refactoring.
--HG--
branch : develop
2019-06-18 15:10:08 +03:00
Roman Telezhynskyi
d16b0d5501 Remove obsolete debugging system.
--HG--
branch : develop
2019-06-18 14:53:00 +03:00
Roman Telezhynskyi
9030cfd52e Backport QScopeGuard class.
--HG--
branch : develop
2019-06-12 08:30:32 +03:00
Roman Telezhynskyi
f01f3b7840 Fix pattern format.
--HG--
branch : develop
2019-06-18 14:45:45 +03:00
Roman Telezhynskyi
3ca666fba3 Pass original paper orientation. We cannot rely on paper size because it can be
stripped.

--HG--
branch : develop
2019-06-18 14:36:20 +03:00
Roman Telezhynskyi
b80103e088 Improve saving a layout result.
--HG--
branch : develop
2019-06-18 14:28:16 +03:00
Roman Telezhynskyi
f1f5806be3 Fix visualization for tool Point from arc and tangent.
(grafted from 255a8e601166518ee052e642786be61863d61871)

--HG--
branch : develop
2019-06-08 19:04:23 +03:00
Roman Telezhynskyi
d0cd313df0 Fix export passmarks for layout.
Because we did not search in united path we could not draw them and silently
skipped. Now user also will see a warning.

--HG--
branch : develop
2019-06-08 15:32:25 +03:00
Roman Telezhynskyi
a97c90378d Fix bug in VPiece::IsBufferAllowanceValid.
--HG--
branch : develop
2019-06-18 13:48:32 +03:00
Roman Telezhynskyi
12871f0708 Fix issue with artificial loop.
--HG--
branch : develop
2019-06-18 13:45:40 +03:00