Commit graph

4740 commits

Author SHA1 Message Date
Roman Telezhynskyi 728dd00b76 Refactoring. Fixing warnings.
--HG--
branch : develop
2018-12-28 13:08:53 +02:00
Roman Telezhynskyi eb87d703a2 Suppress GCC warning.
--HG--
branch : develop
2018-12-27 20:44:13 +02:00
Roman Telezhynskyi dd452e66a8 Technically the member function 'VCommandLine::OptTiledPageOrientation' can be
const.

--HG--
branch : develop
2018-12-27 20:32:02 +02:00
Roman Telezhynskyi 349863b033 Refactoring. Fixing Clang-Tidy warnings.
--HG--
branch : develop
2018-12-27 20:22:42 +02:00
Roman Telezhynskyi e108a1378f New command line option --landscapeOrientation.
--HG--
branch : develop
2018-12-27 16:37:47 +02:00
Roman Telezhynskyi 6016308d58 Resolved issue #651. Improve feature: Layout orientation according to grainline.
--HG--
branch : develop
2018-12-27 15:54:29 +02:00
Roman Telezhynskyi d4f3f701d6 Disable test on Windows.
(grafted from d65fdda771d4061d3fe8e2e5b3a20b5224bff333)

--HG--
branch : develop
2018-12-24 14:25:49 +02:00
Roman Telezhynskyi 7218098165 Fixing error: invalid use of incomplete type class QMarginsF.
--HG--
branch : develop
2018-12-23 21:02:59 +02:00
Roman Telezhynskyi 7caf42cf48 Since Q5.4 available support C++14. Some libraries still missed use.
--HG--
branch : develop
2018-12-23 20:27:24 +02:00
Roman Telezhynskyi cbd991a8b0 Refactoring. Use relaxed constexpr for ToPixel, FromPixel, UnitConvertor and
VFuzzyComparePossibleNulls.

--HG--
branch : develop
2018-12-23 20:09:57 +02:00
Roman Telezhynskyi 54418925c6 Fixed issue #915. Valentina produces wrong seam allowance for acute angle.
(grafted from 41a93a0a57ac2dcc731563b7eb759bfa2bc2961e)

--HG--
branch : develop
2018-12-23 18:41:51 +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 ac6224d2df Because VDomDocument::find checks for unique id we must use temp cache. ref #905
(grafted from 660b90b7a2c64837148237902a3fb11e73ef49f0)

--HG--
branch : develop
2018-12-20 16:43:18 +02:00
Roman Telezhynskyi c782bf37db Fixed issue #909. Valentina produces wrong united path.
(grafted from 6f13c33817dd37d3679398274e697e3da87dbbd0)

--HG--
branch : develop
2018-12-19 09:19:37 +02:00
Roman Telezhynskyi d6bcdcdaf7 Update debugbreak for support PowerPC target.
--HG--
branch : develop
2018-12-18 16:08:14 +02:00
Roman Telezhynskyi 5f5b7e41fa Enable alternative operator representations for support old or nonconforming
compilers by default.

--HG--
branch : develop
2018-12-11 22:27:55 +02:00
Roman Telezhynskyi bd9205deef More issues with 'qIsInf' and 'qIsNaN'.
--HG--
branch : develop
2018-12-11 13:35:02 +02:00
Roman Telezhynskyi 7c31d660a8 Fix error: lambda capture 'this' is not used.
--HG--
branch : develop
2018-12-11 13:12:08 +02:00
Roman Telezhynskyi f3c893d43a Try direct header to fix errors: use of undeclared identifier 'qIsInf' and use
of undeclared identifier 'qIsNaN'.

--HG--
branch : develop
2018-12-11 12:55:03 +02:00
Roman Telezhynskyi b7cf983fb0 Add core library as dependency to vtool static library.
--HG--
branch : develop
2018-12-11 12:42:31 +02:00
Roman Telezhynskyi 9005bd6a77 Suppress warning for file delaunay.cpp.
--HG--
branch : develop
2018-12-11 12:11:58 +02:00
Roman Telezhynskyi c09e7d4d65 Add core library as dependency to static libraries.
--HG--
branch : develop
2018-12-11 11:59:15 +02:00
Roman Telezhynskyi 54e2025439 Fix deprecated QColorDialog::getRgba.
--HG--
branch : develop
2018-12-11 11:48:42 +02:00
Roman Telezhynskyi 5dd0fca9a9 Fixing errors: use of undeclared identifier 'qIsInf' and use of undeclared
identifier 'qIsNaN'.

--HG--
branch : develop
2018-12-11 11:02:47 +02:00
Roman Telezhynskyi e891219528 Improve GUI response. When we still are waiting for details refresh we can
trigger event processing and thus make GUI more responsible.

--HG--
branch : develop
2018-12-10 13:06:53 +02:00
Roman Telezhynskyi 2ec9e656eb Fixing increments update. When we update measurements the increments also must
be updated because some of them can have dependence from them.

--HG--
branch : develop
2018-12-10 13:05:19 +02:00
Roman Telezhynskyi 5b250caa46 Adjustment for pattern file format.
--HG--
branch : develop
2018-12-01 20:25:31 +02:00
Roman Telezhynskyi 33b780f3c4 Update pattern format version. Reservation fields for future use.
--HG--
branch : develop
2018-11-30 17:47:29 +02:00
Roman Telezhynskyi 4e8ceb6c1e Improve UI. Make placeholder menu scrollable.
--HG--
branch : develop
2018-11-30 17:32:36 +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 9c2cdad1a8 Optimizing calling autosave. It should be called only for new unsaved changes.
--HG--
branch : develop
2018-11-24 19:34:59 +02:00
Roman Telezhynskyi cf3be706c2 Optimization. Update increments only if necessary.
--HG--
branch : develop
2018-11-24 16:47:44 +02:00
Roman Telezhynskyi 8a6ee744c6 Fix build on Windows.
--HG--
branch : develop
2018-11-19 17:16:23 +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 5004c12342 Seepd up pattern file validation making it parallel.
--HG--
branch : develop
2018-11-18 09:52:08 +02:00
Roman Telezhynskyi bac4e0872b Perform test for unique id after parsing.
In most cases this is very rare issue. Many checs will cover this case anyway.
Instead of wait we will perform check when calculation done.

--HG--
branch : develop
2018-11-17 14:59:45 +02:00
Roman Telezhynskyi f44484a364 Optimization for method PointBezier_r().
--HG--
branch : develop
2018-11-16 17:44:54 +02:00
Roman Telezhynskyi d099e441a4 Fixed issue #903. Bug in tool Cut Spline path.
(grafted from a5d6d7a0bd903897c2b509f90af1e50206feec0e)

--HG--
branch : develop
2018-11-13 17:03:35 +02:00
Roman Telezhynskyi cc5bb4ec15 Warn a user if change in preferences requires restart.
--HG--
branch : develop
2018-10-29 19:56:39 +02:00
Roman Telezhynskyi b01305b92f Dark theme by default should be disabled.
--HG--
branch : develop
2018-10-29 19:39:14 +02:00
Roman Telezhynskyi 8a1eaa7292 Improve Option dialogs. Make them resizable as possible.
--HG--
branch : develop
2018-10-29 19:37:34 +02:00
Emmanuel Nyachoke 6d9105729f Added initial dark mode theme using https://github.com/ColinDuquesnoy/
QDarkStyleSheet

--HG--
branch : develop
2018-10-29 15:05:49 +03: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 9f2959e32e Resolved issue #894. Quick way to disable a passmark.
--HG--
branch : develop
2018-10-22 15:06:32 +03:00
Roman Telezhynskyi 1d0b5790ae Be more pedantic. Show warning for case where Valentina cannot build a seam
allowance.

--HG--
branch : develop
2018-10-22 14:43:06 +03:00
Roman Telezhynskyi fb4d935ac4 Clazy warnings.
--HG--
branch : develop
2018-10-22 14:42:13 +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 2989466c52 Fixed issue #891. Valentina claims that file was incorrectly saved when used
Save as option.
(grafted from 1d7f8c80ceb1d7a320eb81d2a7bd726a018e0e05)

--HG--
branch : develop
2018-10-22 12:16:48 +03:00
Roman Telezhynskyi 84bb44943f Fixed issue #890. Menu Windows->Close pattern doesn't clear "Group of
visibility" list.
(grafted from 36be0b8fc57d31b2cf949adc86c713e85bfd0cb3)

--HG--
branch : develop
2018-10-22 11:42:04 +03:00
Roman Telezhynskyi 427d3d48c2 Fixing a notch distortion.
User may assume a notch is not precisely position because of accuracy issue. To
avoid this force search of "real intersection".

--HG--
branch : develop
2018-10-20 22:18:27 +03:00
Roman Telezhynskyi 61ced5d7f5 Refactoring. Removed unnecessary operations.
(grafted from 19c986add3afc4629ebb1eac49f689e9ecd975ff)

--HG--
branch : develop
2018-10-19 19:48:36 +03:00
Roman Telezhynskyi 2211e2b7ee Fixed issues with seam allowance.
More cases.
(grafted from 7324a77cb8851a215d26269a8db7106a653915fd)

--HG--
branch : develop
2018-10-19 16:54:06 +03:00
Roman Telezhynskyi 81d2eb513a Fixed issues with seam allowance.
(grafted from 79a6fe52de80fc8707e24574eff1ec75eb1cd424)

--HG--
branch : develop
2018-10-17 18:12:39 +03:00
Roman Telezhynskyi c47193540b Improve precision of dump functions. It should be close to what debugger gives.
(grafted from d94873822ea085f90db8ad6b857dd041cd9654c6)

--HG--
branch : develop
2018-10-17 18:11:32 +03:00
Roman Telezhynskyi 2c881cd516 Fixed comments in XSD schema.
Values in code and the comments were not in sync.
(grafted from 319eab782b7cf97c71815d6b8bfaed0d6a0fa5a8)

--HG--
branch : develop
2018-10-17 18:08:18 +03:00
Roman Telezhynskyi c89755b2a5 Define variables if not defined when include <windows.h>.
(grafted from d21cb1805ca0aa448f9aec0b8cdd30c0b67a5b12)

--HG--
branch : develop
2018-10-12 21:47:18 +03:00
Roman Telezhynskyi 5b8f699ad3 Improvement for test 'TestTemplatePlaceholders()'.
(grafted from 658380148e5f08dfe48eae8fef435655e2a959a3)

--HG--
branch : develop
2018-10-12 15:15:04 +03:00
Roman Telezhynskyi db478562ee Fixed issue #885. Regression. Broken support for multi size measurements.
(grafted from 1a0becf32c00518f126cd0e7325c0eb2bbdcc18e)

--HG--
branch : develop
2018-10-12 13:06:03 +03:00
Roman Telezhynskyi 409f34d205 Starting to collect changes for new version 0.7.0.
--HG--
branch : develop
2018-10-12 15:55:58 +03:00
Roman Telezhynskyi dbb63daa31 Release v0.6.0.
--HG--
branch : release
2018-10-01 12:33:22 +03:00
Roman Telezhynskyi 2295a56160 Check QMessageLogContext class version.
--HG--
branch : release
2018-09-30 18:39:51 +03:00
Roman Telezhynskyi c23502da9a Fix build prior Qt 5.4.0.
--HG--
branch : release
2018-09-29 22:05:03 +03:00
Roman Telezhynskyi 577065539c Show warning message for definately not valid case.
--HG--
branch : release
2018-09-29 22:01:13 +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 b5c771b964 Update pattern format version to version 0.7.12.
--HG--
branch : release
2018-09-29 19:47:32 +03:00
Roman Telezhynskyi 4f7f907d8d Remove checks those cover valid case of passmark collapse.
--HG--
branch : release
2018-09-29 19:36:55 +03:00
Roman Telezhynskyi ecc952d235 Suppressing error: 'void q_dispatch_async_main(voidBlock)' defined but not used
[-Werror=unused-function].

First, because this is static function define it inline. Second, use GCC
extension to fully cover possible cases with Clang.

--HG--
branch : release
2018-09-28 22:29:58 +03:00
Roman Telezhynskyi 47e3f9f7c7 Improve message handling from threads.
Only GUI thread can show message boxes.

--HG--
branch : release
2018-09-28 21:05:42 +03:00
Roman Telezhynskyi 10a20b08b8 Be pendantic about notch errors.
--HG--
branch : release
2018-09-28 14:29:10 +03:00
Roman Telezhynskyi ac3b8a2726 Check and correct a notch position if it is not on current seam allowance.
--HG--
branch : release
2018-09-28 13:43:03 +03:00
Roman Telezhynskyi fadc55983d This code doesn't work without constexpr.
--HG--
branch : release
2018-09-27 20:25:37 +03:00
Roman Telezhynskyi 33554c03b5 Clazy warning.
--HG--
branch : release
2018-09-27 15:16:01 +03:00
Roman Telezhynskyi 135cea212d Generate seam allowance only one time to use it in creating notches.
--HG--
branch : release
2018-09-27 15:13:43 +03:00
Roman Telezhynskyi cead9092e3 Segmenting curve should be more precise and doesn't create distruption.
--HG--
branch : release
2018-09-27 15:06:19 +03:00
Roman Telezhynskyi 515df843d3 New function VFuzzyComparePoints to compare two points.
--HG--
branch : release
2018-09-27 14:52:21 +03:00
Roman Telezhynskyi 1eaccd6a41 New pattern file format version.
Reserved for future use.

--HG--
branch : release
2018-09-24 14:44:45 +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 f0fdb7d8b9 Performance improvements.
--HG--
branch : release
2018-09-24 14:30:41 +03:00
Roman Telezhynskyi 9f919ffe8a Improve seam allowance. Case with custom seam allowance.
--HG--
branch : release
2018-09-23 15:51:28 +03:00
Roman Telezhynskyi 81f7993f43 Use $$system_path() to improve support MSYS environment.
--HG--
branch : release
2018-09-21 13:35:57 +03:00
Roman Telezhynskyi 252fa3a0de Suppress warning Wunused-function.
Try number 2.

--HG--
branch : release
2018-09-19 20:06:47 +03:00
Roman Telezhynskyi 778d4bebc1 Disable warning Wunused-function.
--HG--
branch : release
2018-09-19 18:53:32 +03:00
Roman Telezhynskyi a4ec72b3bd Help function to speed up creating tests.
--HG--
branch : release
2018-09-19 15:16:29 +03:00
Roman Telezhynskyi f0106c25e7 Clean tests.
--HG--
branch : release
2018-09-19 15:15:39 +03:00
Roman Telezhynskyi ec79f50e65 Fix float point accuracy issue. ref #883.
--HG--
branch : release
2018-09-19 12:24:24 +03:00
Roman Telezhynskyi 26d79e5ca2 Fix error: no match for operator== (operand types are QAtomicInt and int).
--HG--
branch : release
2018-09-18 17:24:00 +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 49506c0bf2 Refactring. MaxLocalSA can be part of VSAPoint class.
--HG--
branch : release
2018-09-13 17:31:14 +03:00
Roman Telezhynskyi f57c98b7c3 Refactoring. Move private static methods.
--HG--
branch : release
2018-09-13 17:16:40 +03:00
Roman Telezhynskyi 3fe7709c40 Fixed issue #883. Fix right angle seam allowance angle type.
--HG--
branch : release
2018-09-13 16:46:04 +03:00
Roman Telezhynskyi 8a3d50520f Added status check for settings read/write operations.
--HG--
branch : release
2018-09-09 12:39:19 +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 05a5101115 Fixed issue #808. Fix broken seam allowance angle type.
--HG--
branch : release
2018-09-01 18:56:43 +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 eabfd48b50 Fix bug with watcher. It watches wrong path.
--HG--
branch : release
2018-08-31 15:22:59 +03:00
Roman Telezhynskyi 4f18aea56f Fix GCC warning Wint-in-bool-context.
--HG--
branch : release
2018-08-29 23:35:36 +03:00