Commit graph

5017 commits

Author SHA1 Message Date
Roman Telezhynskyi 16975ec6b9 Refactoring. Another case for QScopeGuard.
--HG--
branch : develop
2019-07-04 17:32:58 +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 413fe1ceea /usr/share/pixmaps is deprecated.
--HG--
branch : develop
2019-06-25 12:45:35 +03:00
Roman Telezhynskyi a38405a8e0 Follow given prefix.
User can specify prefix, we should follow it.

--HG--
branch : develop
2019-06-25 12:09:30 +03:00
Roman Telezhynskyi 51893d9f4a Refactoring. Use QScopeGuard.
--HG--
branch : develop
2019-06-25 11:08:47 +03:00
Roman Telezhynskyi b667adca0c Fix title for groups widget.
--HG--
branch : develop
2019-06-24 12:19:16 +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 991b64cf54 Deploy 64 bit version with 64 bit version of openssl.
--HG--
branch : develop
2019-06-18 16:49:32 +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
Roman Telezhynskyi a62c2bfb55 Fix function VFuzzyComparePoints.
--HG--
branch : develop
2019-06-08 08:40:56 +03:00
Roman Telezhynskyi d2396820c5 Fix bug with landscape oriention.
--HG--
branch : develop
2019-06-18 12:35:43 +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 ed1e438d48 Fix crash.
If intial formula value is incorrect calling a formula wizard will call an
exception and the aplication will terminate.

--HG--
branch : develop
2019-06-03 12:19:12 +03:00
Roman Telezhynskyi c9fb50e9a3 Make piece labels transparent.
50% opacity.

--HG--
branch : develop
2019-06-03 11:37:02 +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 5c55778d66 Since Q5.12 available support for C++17.
--HG--
branch : develop
2019-05-28 17:41:15 +03:00
Roman Telezhynskyi bcc2eab0fb Fixing error: 'auto' return without trailing return type; deduced return types
are a C++14 extension.

--HG--
branch : develop
2019-05-28 17:25:42 +03:00
Roman Telezhynskyi d5a1f96bdd constFirst() introduced since Qt 5.6.
--HG--
branch : develop
2019-05-28 16:21:52 +03:00
Roman Telezhynskyi e9d77c747b Refactoring.
--HG--
branch : develop
2019-05-28 16:20:53 +03:00
Roman Telezhynskyi fdc8b96329 Terminate pieces refresh if user called new parsing.
--HG--
branch : develop
2019-05-28 11:36:03 +03:00
Roman Telezhynskyi a66d0917ab Show layout sheets in one line.
--HG--
branch : develop
2019-05-27 20:07:30 +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 1cf3e6dda1 Raise the minimum value for curve approximation to 0.2.
With 0.1 Valentina produces visible errors.

--HG--
branch : develop
2019-05-27 18:51:55 +03:00
Roman Telezhynskyi deddd8a1ec Move Tool options and Group menu to Window section.
--HG--
branch : develop
2019-05-27 18:45:09 +03:00
Roman Telezhynskyi c2091c6337 Cppcheck warning.
--HG--
branch : develop
2019-05-27 17:21:48 +03:00
Roman Telezhynskyi e9a89f52cb There are several different exception handler for MinGW available: sjlj, dwarf,
seh.

--HG--
branch : develop
2019-05-27 17:15:44 +03:00
Roman Telezhynskyi 950e476682 New function VAbstractCurve::SubdividePath.
--HG--
branch : develop
2019-05-27 17:13:57 +03:00
Roman Telezhynskyi e14b16dc96 Make History dialog again resizable.
--HG--
branch : develop
2019-05-27 17:10:17 +03:00
Roman Telezhynskyi 6590742f09 Improve "Remove point on line".
Now it should handle circular shapes.

--HG--
branch : develop
2019-05-27 17:07:18 +03:00
Roman Telezhynskyi d58b3f523d Methods to get a passmark base lines.
--HG--
branch : develop
2019-05-27 17:05:42 +03:00
Roman Telezhynskyi a87f821327 Introduce mapped versions of methods. In some cases we will do mapping manually.
--HG--
branch : develop
2019-05-27 17:04:26 +03:00
Roman Telezhynskyi 6294dc0748 New struct VLayoutPassmark to store data about a passmark.
--HG--
branch : develop
2019-05-27 14:57:36 +03:00
Roman Telezhynskyi bd611bf333 Refactor class VPlaceLabelItem.
Store more info about a placelabel.

--HG--
branch : develop
2019-05-27 14:54:44 +03:00
Roman Telezhynskyi 7dc420ad47 Refactor class VLayoutPiecePath.
Optimizing code style.

--HG--
branch : develop
2019-05-27 14:51:58 +03:00
Roman Telezhynskyi f7868c03c1 Fix missed attribute.
--HG--
branch : develop
2019-05-27 13:47:54 +03:00
Roman Telezhynskyi d07c27a96c Allow setting destination point.
Destination point is anchor to which connected a label.

--HG--
branch : develop
2019-05-11 18:37:08 +03:00
Roman Telezhynskyi 6ecfa80e6f Changed how should be saved cutting time.
--HG--
branch : develop
2019-05-11 18:28:08 +03:00
Roman Telezhynskyi cdca310504 Fixed issue #971. Group operation do not work with VCubicBezierPath.
(grafted from 9981e18a57078493856549209156b9919e635673)

--HG--
branch : develop
2019-05-10 18:44:12 +03:00
Roman Telezhynskyi 8b0f1c0cc9 Clang warning.
--HG--
branch : develop
2019-05-08 20:28:48 +03:00
Roman Telezhynskyi a05bf82c24 Clang warning.
--HG--
branch : develop
2019-05-08 20:05:26 +03:00
Roman Telezhynskyi 2247cf330e Cppcheck warning.
--HG--
branch : develop
2019-05-08 19:54:30 +03:00
Roman Telezhynskyi 7d9be40e85 Cppcheck warning.
--HG--
branch : develop
2019-05-08 19:35:19 +03:00
Roman Telezhynskyi 5838537033 Resolved issue #725. Improve labels on drawing.
--HG--
branch : develop
2019-05-08 19:22:55 +03:00
Roman Telezhynskyi 3b51ccb31d Refactoring. Move drawing passmarks to separate class.
--HG--
branch : develop
2019-05-08 15:19:03 +03:00
Roman Telezhynskyi 012eef24f6 Fixed missed attributes.
--HG--
branch : develop
2019-05-08 15:18:16 +03:00
Roman Telezhynskyi 4192af8117 Refactoring.
--HG--
branch : develop
2019-05-08 15:17:34 +03:00
Roman Telezhynskyi db8ef33d79 New pattern format version.
--HG--
branch : develop
2019-05-08 15:16:04 +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 a795642cf0 Replace obsolete setPaperSize with setPageSize.
--HG--
branch : develop
2019-04-28 18:49:29 +03:00
Roman Telezhynskyi ec5b28fe0b Improve handling warning "Cannot create image. Size too big".
--HG--
branch : develop
2019-04-28 18:32:09 +03:00
Roman Telezhynskyi aff0095d8d Make labels in dialogs About App selectable. Will help easier copy values.
ref #968.

--HG--
branch : develop
2019-04-26 14:59:44 +03:00
Roman Telezhynskyi 851ed6590c Correct passmark shape. It shouldn't go beyond a piece path.
--HG--
branch : develop
2019-04-23 21:24:45 +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 08bdeeedfe Porting changes to newer format versions. ref #967.
--HG--
branch : develop
2019-04-20 20:24:31 +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 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 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 72eeae24e6 Added missed formula. ref #965.
--HG--
branch : develop
2019-04-18 12:59:19 +03:00
Roman Telezhynskyi f420812f5d Fixed build on Windows with Qt 5.6.
--HG--
branch : develop
2019-04-17 17:35:11 +03:00
Roman Telezhynskyi 4fa73c302c Local seam allowance can be 0. ref #965.
--HG--
branch : develop
2019-04-17 16:08:48 +03:00
Roman Telezhynskyi 7f01a989dd Catch null length passmarks.
--HG--
branch : develop
2019-04-17 14:59:54 +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 419095300e Disable seam allowance options if seam allowance is built in.
--HG--
branch : develop
2019-04-15 21:15:56 +03:00