Commit Graph

2318 Commits

Author SHA1 Message Date
Roman Telezhynskyi
279e1cda84 Temporary suppress all GCC wanings inside libdxfrw.
--HG--
branch : feature
2017-06-20 13:30:36 +03:00
Roman Telezhynskyi
47265a515b Added library libdxfrw.
--HG--
branch : feature
2017-06-20 11:40:39 +03:00
Roman Telezhynskyi
d514b22611 Because we have been using C++11 we don't need this key.
--HG--
branch : feature
2017-06-20 11:30:44 +03:00
Roman Telezhynskyi
663ab8aff1 SonarCloud warnings.
--HG--
branch : develop
2017-06-19 17:44:18 +03:00
Roman Telezhynskyi
9686d0e179 Fixed issue #623. Issue: Bug with dialog Open file.
--HG--
branch : develop
2017-06-19 16:11:44 +03:00
Roman Telezhynskyi
e982df63c0 Move scaling font size to appropriate class.
--HG--
branch : develop
2017-06-19 15:26:29 +03:00
Roman Telezhynskyi
8e0a7250df Added new feature Zoom Fit Best Current pattern piece.
--HG--
branch : develop
2017-06-16 21:14:33 +03:00
Roman Telezhynskyi
61dcc52965 Remember Formula Wizard dialog size.
--HG--
branch : develop
2017-06-16 17:05:35 +03:00
Roman Telezhynskyi
67928c16a2 Cppcheck warning.
--HG--
branch : develop
2017-06-16 16:44:57 +03:00
Roman Telezhynskyi
d110dc3325 Fixed issue #706. Default unit in preferences not changing new file unit.
(grafted from f1ce177213a46538a840fc789e4e2ce3d78d98e4)

--HG--
branch : develop
2017-06-16 16:01:09 +03:00
Roman Telezhynskyi
46d845f7e1 Improve the Formula Wizard dialog. Set a pointing hand cursor for variables
table.

--HG--
branch : develop
2017-06-16 15:11:25 +03:00
Roman Telezhynskyi
acd960ecee Fixed issue #637. Max scene size too small to fit all objects.
--HG--
branch : develop
2017-06-16 15:03:24 +03:00
Roman Telezhynskyi
b0f867499c Resolved issue #244. New feature: Adjust line and point thickness and label
size.

--HG--
branch : develop
2017-06-16 14:53:08 +03:00
Roman Telezhynskyi
45ced25561 Fixed issue #704. Valentina crashes if click on detail.
--HG--
branch : develop
2017-06-09 12:39:24 +03:00
Roman Telezhynskyi
4df84fdd94 Fix build on Mac OS X.
--HG--
branch : develop
2017-06-05 21:46:04 +03:00
Roman Telezhynskyi
e4099ec4ed Fix build on Mac OS X.
--HG--
branch : develop
2017-06-05 21:22:51 +03:00
Roman Telezhynskyi
5c4f45397d Fix build on Mac OS X.
--HG--
branch : develop
2017-06-05 20:58:38 +03:00
Roman Telezhynskyi
bdea0b8d59 Fix build on Mac OS X.
--HG--
branch : develop
2017-06-05 20:29:08 +03:00
Roman Telezhynskyi
3a4871fcd0 SonarQube warnings.
--HG--
branch : develop
2017-06-05 19:47:25 +03:00
Roman Telezhynskyi
7a9b2e34bd Changed default behaviour if path to multisize measurements or templates doesn't
exist.

If the path doesn't exist Valentina will create and return path to user
localized default folder.
(grafted from 722c37544c26fe3f406d222b7f344ddf7b3602a0)

--HG--
branch : develop
2017-06-05 17:52:42 +03:00
Roman Telezhynskyi
9be7403919 Fixed issue #702. Valentina produces broken shortcut (.lnk) files on Windows.
(grafted from 1dd5ef5924bf7d78c5c3eeae884e7f4e41bb688d)

--HG--
branch : develop
2017-06-05 16:18:38 +03:00
Roman Telezhynskyi
4461caaf0f Fixed issue #698. Problem typing in new axis point for new piece.
(grafted from 8ad30021d46f5ddcd479b7ec1a9279a5185a2578)

--HG--
branch : develop
2017-06-02 09:23:29 +03:00
Roman Telezhynskyi
bfd2620fad Next try to fix problem with tests.
Because different compilers and even different version from same vendor may
produce little bit different result this cause of test fails because it expect
too accurate result. We don't need such accuracy and can use variable
VGObject::accuracyPointOnLine to compare two points.

--HG--
branch : develop
2017-06-01 13:04:25 +03:00
Roman Telezhynskyi
cc5641a15c Added gcc’s 4.9.0 Undefined Behavior Sanitizer (ubsan).
--HG--
branch : develop
2017-06-01 10:14:17 +03:00
Roman Telezhynskyi
37a28a4629 Fixed issue #697. Incomplete Internal Path for Waist Dart.
(grafted from 1f17c5a2e540f1b1c27dab709bae1570fb170ed9)

--HG--
branch : develop
2017-05-31 10:55:39 +03:00
Roman Telezhynskyi
bd72aa29cc Try to fix tests.
--HG--
branch : develop
2017-05-30 20:56:59 +03:00
Roman Telezhynskyi
7e064f80c5 Thrown away code for support Qt < 5.2.
--HG--
branch : develop
2017-05-30 19:52:38 +03:00
Roman Telezhynskyi
2dcfe1c84b Since Q5.4 available support C++14.
--HG--
branch : develop
2017-05-30 18:54:54 +03:00
Roman Telezhynskyi
965d908663 GCC warnings.
--HG--
branch : develop
2017-05-30 18:44:16 +03:00
Roman Telezhynskyi
2921dbf2a3 Move dialog Piece path.
--HG--
branch : develop
2017-05-30 11:56:16 +03:00
Roman Telezhynskyi
fb64c8d2e8 Remeber size of tool Seam allowance dialog between sessions. ref #683.
--HG--
branch : develop
2017-05-30 11:47:27 +03:00
Roman Telezhynskyi
4d1c15c2d5 Fixed issue #696. Wrong grainline position on layout.
(grafted from 23e7ca4bff38c47729324aaa081d601351844035)

--HG--
branch : develop
2017-05-29 17:45:55 +03:00
Roman Telezhynskyi
9287acf90e Add Valentina version info inside each file before saving.
Many misunderstand purpose of tag "version" and think that this tag contains
information about the Valentina version. More info in the comment should help.

--HG--
branch : develop
2017-05-29 16:33:36 +03:00
Roman Telezhynskyi
2efec7a1ed Added tooltip for tab Passmark.
Explained meaning of check box "Show the second passmark on seam line".
(grafted from d144cddaa4decf56cc5ff85748251b918ae407b9)

--HG--
branch : develop
2017-05-26 19:49:06 +03:00
Roman Telezhynskyi
6e1eabaf29 Tab Pins moved to be second in the list after tab Paths.
(grafted from 6dade874f3c6417db907d0c00760006aba4bd702)

--HG--
branch : develop
2017-05-26 19:39:42 +03:00
Roman Telezhynskyi
f9060f1bb7 Fixed bug in dialog Internal Piece Path.
Value from the field After rewrited data in the field Before.
(grafted from bf1336d102f09e2efef6afe4db87a0692df44b86)

--HG--
branch : develop
2017-05-26 19:27:11 +03:00
Roman Telezhynskyi
3a782f8fa7 Fixed issue #689. Grainline default values swapped around.
(grafted from 7730e53eed5099c5cdd5d0eb5abf2550b83b7805)

--HG--
branch : develop
2017-05-21 20:54:35 +03:00
Roman Telezhynskyi
780ce623ab Fixed issue #687. Wrong seam allowance.
--HG--
branch : develop
2017-05-19 10:57:58 +03:00
Roman Telezhynskyi
cc83d9602a Fixed issue #686. Seam allowance not placed correctly.
--HG--
branch : develop
2017-05-18 15:10:05 +03:00
Roman Telezhynskyi
b05b5bad8c Fixed issue #685. Bug report: CSV exports as "CVS".
--HG--
branch : develop
2017-05-17 07:57:46 +03:00
Roman Telezhynskyi
c7ad55274f Read default value of option Hide main path from settings. ref #684.
--HG--
branch : develop
2017-05-16 16:22:12 +03:00
Roman Telezhynskyi
28fce33530 Clang warning.
--HG--
branch : develop
2017-05-16 16:13:03 +03:00
Roman Telezhynskyi
5ed69ab633 SonarQube warnings.
--HG--
branch : develop
2017-05-16 16:09:11 +03:00
Roman Telezhynskyi
d38681b853 Cppcheck warning.
--HG--
branch : develop
2017-05-16 15:35:50 +03:00
Roman Telezhynskyi
91a75f6f01 Fix layout internal path support of pen style.
--HG--
branch : develop
2017-05-16 15:19:27 +03:00
Roman Telezhynskyi
56dd8ef3b6 Resolved issue #684. Proposal: Add option to only show outer edges on detail.
--HG--
branch : develop
2017-05-16 15:16:50 +03:00
Roman Telezhynskyi
13a93ef5df Fix internal path support of pen style.
--HG--
branch : develop
2017-05-16 13:47:36 +03:00
Roman Telezhynskyi
32a16890a7 Resolved issue #681. Enhance feature: Dashed line options for curves, arcs, etc.
--HG--
branch : develop
2017-05-16 13:07:53 +03:00
Roman Telezhynskyi
037fe89e27 Resolved issue #683. Tool Seam allowance's dialog is off screen on small
resolutions.

--HG--
branch : develop
2017-05-13 11:55:02 +03:00
Roman Telezhynskyi
c02ef13ed4 Suppress warnings inside ui folder.
--HG--
branch : develop
2017-05-12 15:51:44 +03:00
Roman Telezhynskyi
e923234127 SonarQube warnings.
--HG--
branch : develop
2017-05-12 15:48:25 +03:00
Roman Telezhynskyi
7225481091 Resolved issue #682. New feature. Export increments to Excel .csv.
--HG--
branch : develop
2017-05-12 15:09:19 +03:00
Roman Telezhynskyi
5aaeaaf9da SonarQube warnings.
--HG--
branch : develop
2017-05-12 10:15:44 +03:00
Roman Telezhynskyi
34f3737c9e Begin new branch v0.6.0.
--HG--
branch : develop
2017-05-12 08:47:05 +03:00
Roman Telezhynskyi
1cf4e97b7d Clang warnings. 2017-05-10 14:58:17 +03:00
Roman Telezhynskyi
e48298ce64 Fix regression. 2017-05-10 09:35:19 +03:00
Roman Telezhynskyi
67a54b8f3d Fix error after merge. 2017-05-09 18:36:39 +03:00
Roman Telezhynskyi
c0d79afb85 Merge with release. 2017-05-09 18:18:31 +03:00
Roman Telezhynskyi
b355f1dbfc Prepare to release 0.5.0. Change version number.
--HG--
branch : release
2017-05-09 16:04:31 +03:00
Roman Telezhynskyi
5f92557609 Fixed issue #679. Second control point at beginning of curved path - bug.
--HG--
branch : release
2017-05-07 08:35:18 +03:00
Roman Telezhynskyi
9fd611e2d1 Fixed bug with a grainline.
Grainline arrows were upside down on layout.

--HG--
branch : release
2017-04-28 15:37:31 +03:00
Roman Telezhynskyi
03a9b07eff Fixed issue #673. The Insert Node tool changes Label.
--HG--
branch : release
2017-04-28 09:38:09 +03:00
Roman Telezhynskyi
677ef71626 Added second case when create a passmark for point that lies on line.
--HG--
branch : release
2017-04-27 18:19:23 +03:00
Roman Telezhynskyi
f2f1a681ef Pins should be on top.
--HG--
branch : release
2017-04-27 16:53:18 +03:00
Roman Telezhynskyi
1a2def2bca SonarQube warnings.
--HG--
branch : release
2017-04-27 16:45:29 +03:00
Roman Telezhynskyi
32e3a6340c Fixed issue #671. Weird behaviour of the passmark.
--HG--
branch : release
2017-04-27 16:37:10 +03:00
Roman Telezhynskyi
f990a5726c Refactoring. Join similar parts from methods that update labels. ref #672.
Issue #672 that this part better to refactor to eliminate more issues in future.

--HG--
branch : release
2017-04-27 14:30:20 +03:00
Roman Telezhynskyi
795373e74e Fixed issue #672. Labels are turning oposite directions.
--HG--
branch : release
2017-04-27 13:32:52 +03:00
Roman Telezhynskyi
c9e005c65b Small improvements for passmark.
Added new option that allow localy disable the second passmark on the seam line.

--HG--
branch : release
2017-04-26 11:22:42 +03:00
Roman Telezhynskyi
39a1c50022 Fix bug. Labels created tools from Operation section should be not movable when
use a tool.

--HG--
branch : release
2017-04-26 08:19:39 +03:00
Roman Telezhynskyi
89bf3cc005 Revert previos changes. ref #668.
Do not ignore nodes if a passmark is part of main path.

--HG--
branch : release
2017-04-26 08:07:07 +03:00
Roman Telezhynskyi
585213412c Fix case with custom piece path as part of main path. ref #668.
--HG--
branch : release
2017-04-25 20:48:32 +03:00
Roman Telezhynskyi
b300c2a83a Fix bug with property browser.
Coverity Scan gave bad advise.

--HG--
branch : release
2017-04-25 14:39:08 +03:00
Roman Telezhynskyi
dce880e270 Minor fixes for dialog Piece path.
--HG--
branch : release
2017-04-25 13:55:35 +03:00
Roman Telezhynskyi
7840bf04eb Resolved issue #668. Passmarks on Hems.
--HG--
branch : release
2017-04-25 11:42:08 +03:00
Roman Telezhynskyi
c09f69b320 Fix typo.
--HG--
branch : release
2017-04-24 17:20:15 +03:00
Roman Telezhynskyi
85aca86c85 Fix current index for tab Main path.
--HG--
branch : release
2017-04-24 16:01:50 +03:00
Roman Telezhynskyi
e2f1b87596 Fix typo.
--HG--
branch : release
2017-04-22 17:24:25 +03:00
Roman Telezhynskyi
45ce22d6e3 SonarQube warning.
--HG--
branch : release
2017-04-21 18:01:43 +03:00
Roman Telezhynskyi
7734c0564b Localization improvements.
--HG--
branch : release
2017-04-21 17:28:25 +03:00
Roman Telezhynskyi
6c047b140d Resolved issue #666. QDomDocument produces random attribute order.
--HG--
branch : release
2017-04-20 19:01:08 +03:00
Roman Telezhynskyi
b4106f8e5a Improved tip in the Piece path dialog.
--HG--
branch : release
2017-04-20 15:00:37 +03:00
Roman Telezhynskyi
b2ed7d9db4 Refactoring. Add a move assignment operator to all classes that use
QSharedDataPointer class to keep data.

--HG--
branch : release
2017-04-19 13:27:17 +03:00
Roman Telezhynskyi
a0262e260b Coverity scan warnings.
--HG--
branch : release
2017-04-19 12:48:13 +03:00
Roman Telezhynskyi
ef9f9c6af4 Fixed issue #665. Passmark not correct.
--HG--
branch : release
2017-04-18 21:39:13 +03:00
Roman Telezhynskyi
c2609b98be Refactoring.
--HG--
branch : release
2017-04-18 11:49:05 +03:00
Roman Telezhynskyi
bab0adfebc Refactoring method MUnit(). All formats have the same syntax.
--HG--
branch : release
2017-04-18 11:46:53 +03:00
Roman Telezhynskyi
124fd657e3 Suppress scene item context menu if a tool was activated.
A context menu is allowed only if the Arrow tool is active.

--HG--
branch : release
2017-04-18 11:06:17 +03:00
Roman Telezhynskyi
865af1540b SonarQube warning.
--HG--
branch : release
2017-04-15 18:19:16 +03:00
Roman Telezhynskyi
30a35e723a Removed unused function.
--HG--
branch : release
2017-04-15 18:19:00 +03:00
Roman Telezhynskyi
b433d9cfc4 Clang warning.
--HG--
branch : release
2017-04-15 18:11:19 +03:00
Roman Telezhynskyi
c5957846b6 Refactoring. New parent class VInteractiveTool.
Helps to share info about tool dialog.

--HG--
branch : release
2017-04-15 17:39:59 +03:00
Roman Telezhynskyi
e8917bd10d Fixed issue #662. Valentina closes when creating details on 64 bit systems.
--HG--
branch : release
2017-04-15 13:25:07 +03:00
Roman Telezhynskyi
73c035ecc9 Fix bug with trigonometric functions.
Functions sin(), cos() and tan() take radians. And their counterparts asin(),
acos() and atan() return radians. Removed hyperbolic functions because they do
not work with radians.

--HG--
branch : release
2017-04-14 18:42:49 +03:00
Roman Telezhynskyi
a7b721941a Fix build on Windows.
--HG--
branch : release
2017-04-14 17:47:39 +03:00
Roman Telezhynskyi
e7a4935983 Clang warning.
--HG--
branch : release
2017-04-14 17:45:59 +03:00
Roman Telezhynskyi
a78b758226 SonarQube warnings.
--HG--
branch : release
2017-04-14 17:43:26 +03:00
Roman Telezhynskyi
495397621d Fix warning "Review the data-flow - This condition might always evaluate to
"true"."

--HG--
branch : release
2017-04-14 17:20:29 +03:00
Roman Telezhynskyi
0ddc935d9a Force a user to choose a piece before inseting into.
Should help prevent mistakes.

--HG--
branch : release
2017-04-14 13:52:59 +03:00
Roman Telezhynskyi
9284bfec9b Use smart pointer to prevent memory leak.
--HG--
branch : release
2017-04-14 11:30:00 +03:00
Roman Telezhynskyi
6d271423e0 Fixed scroll hand drag mode.
--HG--
branch : release
2017-04-14 08:22:28 +03:00
Roman Telezhynskyi
78bdd5a8af Improve tooltip for case when a user get infinite or NaN result.
--HG--
branch : release
2017-04-13 17:16:53 +03:00
Roman Telezhynskyi
cade111206 Refactoring Tape's preferences dialog.
Instead of manual declaring used Qt Designer.

--HG--
branch : release
2017-04-12 15:50:48 +03:00
Roman Telezhynskyi
a1caf972a9 Warn a user when need to update a file format version.
--HG--
branch : release
2017-04-12 09:49:05 +03:00
Roman Telezhynskyi
fdd3e9a70c Fix a crash.
If call a visualization and then close the window Valentina will crash.

--HG--
branch : release
2017-04-11 15:02:52 +03:00
Roman Telezhynskyi
b63922fa9e Show for user translated curve name in tool dialog and the property browser.
--HG--
branch : release
2017-04-11 13:42:42 +03:00
Roman Telezhynskyi
2915402526 Removed Community page from Preferences.
--HG--
branch : release
2017-04-11 12:21:15 +03:00
Roman Telezhynskyi
c264b80ea0 Refactoring. Hide private static members.
--HG--
branch : release
2017-04-11 11:16:11 +03:00
Roman Telezhynskyi
a3056dc7e2 Qt 5.2.0 is now minimal requirement to build the code.
--HG--
branch : release
2017-04-10 22:18:36 +03:00
Roman Telezhynskyi
3f1b042d6c Get hash also from git repository.
Because we use both hg and git (as mirror) we can get hash of current commit
from git too.

--HG--
branch : release
2017-04-10 20:24:58 +03:00
Roman Telezhynskyi
948eef41e6 We in beta from now.
--HG--
branch : release
2017-04-10 19:21:45 +03:00
Roman Telezhynskyi
2ef3c7bcb0 Forgot to update passmark options for piece path dialog.
--HG--
branch : release
2017-04-10 11:31:16 +03:00
Roman Telezhynskyi
d355b4dce8 Cppcheck warnings.
--HG--
branch : develop
2017-04-06 15:50:15 +03:00
Roman Telezhynskyi
321b22faba Show in the main path marks for T and V passmarks.
--HG--
branch : develop
2017-04-05 13:42:59 +03:00
Roman Telezhynskyi
c0f36dffbe Resolved issue #652. Show passmarks for builtin seam allowance.
--HG--
branch : develop
2017-04-05 13:22:33 +03:00
Roman Telezhynskyi
4cd09e54e4 Extend a passmark length to 50% of seam allowance width.
--HG--
branch : develop
2017-04-05 08:43:16 +03:00
Roman Telezhynskyi
1ecbfaa873 Connect pins to detail item to correctly translate coordinates.
--HG--
branch : develop
2017-04-04 09:00:34 +03:00
Roman Telezhynskyi
a9bb99937c Try to fix error: ambiguous overload for 'operator>>' (operand types are
'QDataStream' and 'quint32 {aka unsigned int}').

--HG--
branch : develop
2017-04-04 08:20:49 +03:00
Roman Telezhynskyi
5be8ba3a64 Trying to fix tab image position. ref #650.
--HG--
branch : develop
2017-04-03 16:21:46 +03:00
Roman Telezhynskyi
862b5823e7 Fixed issue #647. Shoulder tool broken in latest test builds.
--HG--
branch : develop
2017-04-03 13:50:05 +03:00
Roman Telezhynskyi
0612305ea8 Fixed issue #650. "Seam allowance tool" icons are not showing correctly.
--HG--
branch : develop
2017-04-03 12:39:17 +03:00
Roman Telezhynskyi
b9f886d28d Fix building on Mac.
--HG--
branch : develop
2017-04-01 19:53:28 +03:00
Roman Telezhynskyi
38bb9c86b9 Fix building on Mac.
--HG--
branch : develop
2017-04-01 19:23:20 +03:00
Roman Telezhynskyi
e2383eb500 Refactoring. Use "=default" instead of the default implementation.
--HG--
branch : develop
2017-04-01 17:27:55 +03:00
Roman Telezhynskyi
9433a6b358 Refactoring. Remove unused private functions.
--HG--
branch : develop
2017-04-01 15:27:24 +03:00
Roman Telezhynskyi
016e2db2e6 Refactoring. Remove unused local variables.
--HG--
branch : develop
2017-04-01 10:28:13 +03:00
Roman Telezhynskyi
1d82d96562 Refactoring. Move "inline" specifier to the definition of the function.
--HG--
branch : develop
2017-04-01 10:23:44 +03:00
Roman Telezhynskyi
660406ab35 Refactoring. Improve access to static member.
--HG--
branch : develop
2017-03-31 17:25:14 +03:00
Roman Telezhynskyi
b316133dad Remove unused members.
--HG--
branch : develop
2017-03-31 17:21:18 +03:00
Roman Telezhynskyi
f9aa896477 Refactoring. Avoid implicit conversions.
--HG--
branch : develop
2017-03-31 17:04:11 +03:00
Roman Telezhynskyi
b506b1d177 Refactoring. "Remove" call to the overridable "CheckState" method.
--HG--
branch : develop
2017-03-31 11:54:05 +03:00
Roman Telezhynskyi
482cc9c76e Forgot to init passmarks list on start.
--HG--
branch : develop
2017-03-30 14:12:23 +03:00
Roman Telezhynskyi
dc9ded6600 Cppcheck warnings.
--HG--
branch : develop
2017-03-30 13:59:10 +03:00
Roman Telezhynskyi
b62aaaf992 Layout now works with passmarks.
--HG--
branch : feature
2017-03-30 13:27:57 +03:00
Roman Telezhynskyi
f05cd909a2 Unite nodes to be able to show passmarks from custom seam allowance included as
main path.

--HG--
branch : feature
2017-03-30 12:26:06 +03:00
Roman Telezhynskyi
d3ab7f5b16 Return -1 if was used global seam allowance width instead of calculating its
value.

--HG--
branch : feature
2017-03-30 11:09:12 +03:00
Roman Telezhynskyi
e2db513172 Refactoring. Remove unused variables.
--HG--
branch : feature
2017-03-30 11:08:11 +03:00
Roman Telezhynskyi
d1e28f4d46 Refactoring. Replace PassmarkLength by VAbstractPiece::MaxLocalSA.
--HG--
branch : feature
2017-03-30 11:07:42 +03:00
Roman Telezhynskyi
4907ce584f Fixed issue #646. Wrong seam allowance if node is on line.
--HG--
branch : feature
2017-03-30 11:06:47 +03:00
Roman Telezhynskyi
e19c9392a1 Custom seam allowance now visible again.
--HG--
branch : feature
2017-03-29 14:20:55 +03:00
Roman Telezhynskyi
11a7bf89b4 Piece path now works with passmarks.
--HG--
branch : feature
2017-03-29 14:18:33 +03:00
Roman Telezhynskyi
33da692248 Added special check for tools those use free click.
When a user click on point the app show line between selected point and a mouse
cursor. This usefull when need to select an angle or length. But because
selection of a point also emit release event this particular event should be
ignored. In case of release inside of point circle all worked good, but not if
select point by label.

--HG--
branch : feature
2017-03-29 13:09:49 +03:00
Roman Telezhynskyi
ebda4292a8 Merge with develop.
--HG--
branch : feature
2017-03-28 13:33:31 +03:00
Roman Telezhynskyi
b9bebcaeb4 Show passmarks in the main path.
--HG--
branch : feature
2017-03-28 13:09:00 +03:00
Roman Telezhynskyi
39c11130f9 Fix bug with internal move of nodes inside the main path.
--HG--
branch : feature
2017-03-28 12:08:33 +03:00
Roman Telezhynskyi
f8836cf563 Fix translation bug. Default names for increment and measurement should also
be validated in unit tests.

--HG--
branch : develop
2017-03-28 10:18:19 +03:00
Roman Telezhynskyi
c20f94e5f0 Optimize searching special shoulder point.
--HG--
branch : develop
2017-03-27 10:30:31 +03:00
Roman Telezhynskyi
e9c9d263f6 Skip excluded nodes when prepare segment of curve.
--HG--
branch : feature
2017-03-25 10:18:03 +02:00
Roman Telezhynskyi
6ac1a1247c Read/write passmark information.
--HG--
branch : feature
2017-03-24 14:48:07 +02:00
Roman Telezhynskyi
799858503f Internal path should have all attributes that has the main path.
--HG--
branch : feature
2017-03-24 13:17:14 +02:00
Roman Telezhynskyi
81b88db5cc Dialog Seam allowance tool now supports passmarks.
--HG--
branch : feature
2017-03-24 13:08:16 +02:00
Roman Telezhynskyi
ad23a75d7a Check if all points in a path are unique.
Because in some valid cases the same geometric point can be included in a path
several times we must force user to create unique point for each case. This
happens because we determine each point by point id.

--HG--
branch : feature
2017-03-23 19:36:50 +02:00
Roman Telezhynskyi
d696af9a33 "static" members should be accessed statically.
--HG--
branch : develop
2017-03-23 10:25:46 +02:00
Roman Telezhynskyi
5ca119bb5b Spline Path lost data about duplicate.
--HG--
branch : develop
2017-03-22 17:04:32 +02:00
Roman Telezhynskyi
08bf90bf48 Trying to prevent a crash.
--HG--
branch : develop
2017-03-22 17:03:20 +02:00
Roman Telezhynskyi
573e20f12d Clang warning.
--HG--
branch : develop
2017-03-22 15:29:50 +02:00
Roman Telezhynskyi
e995f6f68a Added new tool Insert node.
--HG--
branch : feature
2017-03-22 12:05:53 +02:00
Roman Telezhynskyi
20ccbaae01 Create modeling items before insert new node.
--HG--
branch : feature
2017-03-21 18:00:31 +02:00
Roman Telezhynskyi
7fe86bc319 Successful build.
--HG--
branch : feature
2017-03-21 17:18:48 +02:00
Roman Telezhynskyi
fa1ab37ca2 Fix dialogs window title.
--HG--
branch : feature
2017-03-21 15:42:37 +02:00
Roman Telezhynskyi
96255ef093 Dialog Insert node tool.
--HG--
branch : feature
2017-03-21 15:39:14 +02:00
Roman Telezhynskyi
dccdef56eb Fix incorrect sRGB profiles.
--HG--
branch : develop
2017-03-21 13:12:45 +02:00
Roman Telezhynskyi
e56d3440d2 Fixed issue #642. Detail's main path is cutted.
--HG--
branch : develop
2017-03-20 08:16:35 +02:00
Roman Telezhynskyi
ea5010d8f7 Resolved request "Tool Options should show information about parent objects".
--HG--
branch : develop
2017-03-19 17:13:02 +02:00
Roman Telezhynskyi
3a630b1ce3 Strip HTML from XSD Validator error message.
--HG--
branch : develop
2017-03-18 18:07:05 +02:00
Roman Telezhynskyi
814c2307ee Refactoring. Minor changes.
--HG--
branch : develop
2017-03-18 14:06:40 +02:00
Roman Telezhynskyi
bd656bcfff Refactoring. Remove the code after these statements.
--HG--
branch : develop
2017-03-18 11:21:52 +02:00
Roman Telezhynskyi
6499c73d0c Refactoring. Merge identical cases.
--HG--
branch : develop
2017-03-18 11:04:12 +02:00
Roman Telezhynskyi
47e50fe06f Fixed bug with internal path in layout piece.
--HG--
branch : develop
2017-03-18 10:44:27 +02:00
Roman Telezhynskyi
2bdfc59c21 MSVC warning.
--HG--
branch : develop
2017-03-18 10:36:16 +02:00
Roman Telezhynskyi
ed1e2bf6a0 Clang warning.
--HG--
branch : develop
2017-03-17 17:29:56 +02:00
Roman Telezhynskyi
f14447087d GCC warning.
--HG--
branch : develop
2017-03-17 17:28:23 +02:00
Roman Telezhynskyi
72e473553d Cppcheck warning.
--HG--
branch : develop
2017-03-17 17:27:59 +02:00
Roman Telezhynskyi
6a3eff4c0b Resolved issue #641. Seam Allowance Tools tab texts truncated in MAC.
--HG--
branch : feature
2017-03-17 16:38:18 +02:00
Roman Telezhynskyi
b57e754d61 Added new widget FancyTabBar.
--HG--
branch : feature
2017-03-16 16:22:21 +02:00
Roman Telezhynskyi
abd10d8f56 Move Seam Allowance tool's dialog.
--HG--
branch : feature
2017-03-16 14:49:40 +02:00
Roman Telezhynskyi
4f38a31f25 Convert label width and height to pattern units.
--HG--
branch : feature
2017-03-14 13:54:15 +02:00
Roman Telezhynskyi
f48325cc52 Fix bug with resize rectangle. Wrong scale factor.
--HG--
branch : feature
2017-03-14 13:19:34 +02:00
Roman Telezhynskyi
cf47ab8aa9 Fix bug with resize cursor.
--HG--
branch : feature
2017-03-14 12:53:35 +02:00
Roman Telezhynskyi
74ee767a31 Fix bug with warning icon.
--HG--
branch : feature
2017-03-14 12:39:03 +02:00
Roman Telezhynskyi
88b56f5453 Fix bug with resizing free grainline.
--HG--
branch : feature
2017-03-14 12:24:59 +02:00
Roman Telezhynskyi
76748f7688 Fix grainline's resize rectangle position.
--HG--
branch : feature
2017-03-14 11:56:41 +02:00
Roman Telezhynskyi
2eac3e0643 Fix bug with rotation mode.
--HG--
branch : feature
2017-03-14 11:24:36 +02:00
Roman Telezhynskyi
c271a81b1d Fix bug with width and height restricted by pin points.
--HG--
branch : feature
2017-03-14 11:20:06 +02:00
Roman Telezhynskyi
de6e3d7213 Fix issue with angle direction of grainline.
--HG--
branch : feature
2017-03-14 11:11:35 +02:00
Roman Telezhynskyi
011f0eaec0 Label item on scene has clockwise angle direction, we work with counter
clockwise.

--HG--
branch : feature
2017-03-13 16:57:54 +02:00
Roman Telezhynskyi
698eaa7736 Don't change position when restricted by center pin point.
--HG--
branch : feature
2017-03-13 16:20:58 +02:00
Roman Telezhynskyi
6802c6f154 Write/read label center pin point.
--HG--
branch : feature
2017-03-13 16:10:25 +02:00
Roman Telezhynskyi
94ec43d85e Fix moving label according to restrictions.
--HG--
branch : feature
2017-03-13 15:54:38 +02:00
Roman Telezhynskyi
65b3c6d3aa Fix typo.
--HG--
branch : feature
2017-03-13 15:00:44 +02:00
Roman Telezhynskyi
ce1c96528e If formula is empty set to default value.
--HG--
branch : feature
2017-03-13 15:00:32 +02:00
Roman Telezhynskyi
c6d19c3b9b Grainline obey center pin point on layout.
--HG--
branch : feature
2017-03-13 14:33:04 +02:00
Roman Telezhynskyi
1ab541236d Successful build.
--HG--
branch : feature
2017-03-13 14:27:29 +02:00
Roman Telezhynskyi
988da5fd19 Fix showing warning for labels.
--HG--
branch : feature
2017-03-11 16:39:04 +02:00
Roman Telezhynskyi
728b0e79d4 Set default values for grainline length and angle.
--HG--
branch : feature
2017-03-11 15:57:57 +02:00
Roman Telezhynskyi
c5f7eef8b4 Fix showing warning for grainline.
--HG--
branch : feature
2017-03-11 15:56:39 +02:00
Roman Telezhynskyi
38409f747f Successful build.
--HG--
branch : feature
2017-03-11 15:25:21 +02:00
Roman Telezhynskyi
08d712ffb6 Show warning icon and pin points for tab Labels.
--HG--
branch : feature
2017-03-11 11:41:25 +02:00
Roman Telezhynskyi
367c78936a Rename tab.
--HG--
branch : feature
2017-03-10 19:31:48 +02:00
Roman Telezhynskyi
3442da18ee Fix pattern format version after the merge.
--HG--
branch : feature
2017-03-10 19:14:14 +02:00
Roman Telezhynskyi
fa50c1f4f7 Merge with develop.
--HG--
branch : feature
2017-03-10 18:56:18 +02:00
Roman Telezhynskyi
eb675f49ce If selected center pin point resize by extending both sides.
--HG--
branch : feature
2017-03-10 17:07:23 +02:00
Roman Telezhynskyi
bf409006f5 Fix grainline's resize rectangle position.
--HG--
branch : feature
2017-03-10 16:45:41 +02:00
Roman Telezhynskyi
4bec2bb815 Do not warn a user about wrong configuration if top and bottom pin points are
not selected.

--HG--
branch : feature
2017-03-10 16:27:56 +02:00
Roman Telezhynskyi
af3735ea23 Grainline now can be controlled by center pin point.
--HG--
branch : feature
2017-03-10 16:22:19 +02:00
Roman Telezhynskyi
77a3845374 Updated multisize file format version.
--HG--
branch : feature
2017-03-10 11:39:20 +02:00
Roman Telezhynskyi
3e1cde0719 Updated file format version.
--HG--
branch : feature
2017-03-10 11:22:15 +02:00
Murloc
506ca0612c Add 200 in heights
--HG--
branch : feature
2017-03-09 21:41:48 +01:00
Roman Telezhynskyi
8a6ed9e426 Fixed typo.
--HG--
branch : develop
2017-03-09 15:52:41 +02:00
Roman Telezhynskyi
fb402f84b7 Dialog get/set grainline center pin point.
--HG--
branch : feature
2017-03-09 13:10:46 +02:00
Roman Telezhynskyi
778cbb2a70 Cppcheck warnings.
--HG--
branch : develop
2017-03-09 12:23:36 +02:00
Roman Telezhynskyi
a1ebea0a0d Set SSL configuration for the Update checker.
--HG--
branch : develop
2017-03-06 11:33:45 +02:00
Roman Telezhynskyi
7350d32dc7 Use secure connection.
--HG--
branch : develop
2017-03-05 18:18:05 +02:00
Roman Telezhynskyi
c6c62f6b72 Bitbucket changed adress to repository.
--HG--
branch : develop
2017-03-05 14:13:49 +02:00
Roman Telezhynskyi
714a180b31 Improve memory allocation.
--HG--
branch : develop
2017-03-02 13:14:19 +02:00
Roman Telezhynskyi
20107a35f8 Cppcheck warning.
--HG--
branch : develop
2017-03-02 11:16:02 +02:00
Roman Telezhynskyi
71d10dbdcb Sync grainline and lable position after correcting to parent bounding rect.
--HG--
branch : feature
2017-03-02 09:12:48 +02:00
Roman Telezhynskyi
e91d037e0a Use pins to position grainline and label on layout.
--HG--
branch : feature
2017-03-01 11:13:36 +02:00
Roman Telezhynskyi
98f26cd417 Show pins if user activated Pattern Piece Data tab or Grainline tab.
--HG--
branch : feature
2017-03-01 07:43:51 +02:00
Roman Telezhynskyi
247dc910d5 Block actions with label depend on restrictions.
--HG--
branch : feature
2017-03-01 07:39:13 +02:00
Roman Telezhynskyi
0a94c5036b Fix label rotation.
--HG--
branch : feature
2017-03-01 07:38:43 +02:00
Roman Telezhynskyi
e3fdad1321 Update grainline after selecting each type.
--HG--
branch : feature
2017-03-01 07:10:04 +02:00
Roman Telezhynskyi
d47505b076 Merge with develop.
--HG--
branch : feature
2017-02-28 17:34:11 +02:00
Roman Telezhynskyi
04009746d5 Improve user expirience. Added grainline hover.
--HG--
branch : feature
2017-02-28 17:33:53 +02:00
Roman Telezhynskyi
360c5ef604 Use Qt built in functions qRadiansToDegrees and qDegreesToRadians.
--HG--
branch : develop
2017-02-27 23:03:07 +02:00
Roman Telezhynskyi
5fbdb4f7f0 Block actions with grainline depend on restrictions.
--HG--
branch : feature
2017-02-27 22:06:48 +02:00
Georg von Zengen
159432927a qmuparser: added triangular functions that work with degree
new functions are: degTorad, radTodeg, , sinD, cosD, tanD, asinD, acosD , atanD, sinhD, coshD , tanhD, asinhD, acoshD, atanhD

--HG--
branch : feature
2017-02-27 20:42:35 +01:00
Roman Telezhynskyi
83b9e3e5ff Fix grainline rotatio angle.
Now it follow mouse pointer.

--HG--
branch : feature
2017-02-27 14:35:55 +02:00
Roman Telezhynskyi
1d91df5216 Preparetions to be able to control moving actions: rotation and resizing.
--HG--
branch : feature
2017-02-27 14:30:02 +02:00
Roman Telezhynskyi
38740f7ef8 Fix incorrect saving grainline angle and length.
--HG--
branch : feature
2017-02-27 14:28:22 +02:00
Roman Telezhynskyi
93a59b9371 Use pin points to set size and angle.
--HG--
branch : feature
2017-02-27 12:01:38 +02:00
Roman Telezhynskyi
2be9110955 Override method shape() to improve selection of grainline.
--HG--
branch : feature
2017-02-27 11:59:08 +02:00
Roman Telezhynskyi
3b33eabc22 Clang warning.
--HG--
branch : develop
2017-02-26 15:52:00 +02:00
Roman Telezhynskyi
ae5650f1f0 Try to fix MSVC error.
--HG--
branch : develop
2017-02-26 12:25:14 +02:00
Roman Telezhynskyi
01612c4c7c GCC warning.
--HG--
branch : develop
2017-02-26 12:17:58 +02:00
Roman Telezhynskyi
5dff5b36d0 Fixed issue #631. Runtime Error when using elliptical arc and opening
Measurements Table of Variables or Formula Wizard.

--HG--
branch : develop
2017-02-26 09:00:40 +02:00
Roman Telezhynskyi
892e5f298f Fix bug. Piece must increase reference count for each pin.
--HG--
branch : feature
2017-02-24 19:48:54 +02:00
Roman Telezhynskyi
02fde1464d Fix infinite redrawing.
--HG--
branch : feature
2017-02-24 19:47:13 +02:00
Roman Telezhynskyi
449543f203 Show warning icon if only both requirements are false.
--HG--
branch : feature
2017-02-24 19:42:06 +02:00
Roman Telezhynskyi
1e525ed788 User should at least has valid pins or not null lengths of grainline.
--HG--
branch : feature
2017-02-24 17:23:02 +02:00
Roman Telezhynskyi
86cc0fa0b0 Fix typo.
--HG--
branch : feature
2017-02-24 17:21:43 +02:00
Roman Telezhynskyi
3a2752ef37 Move all grainline objects inside a group box.
--HG--
branch : feature
2017-02-24 17:21:17 +02:00
Roman Telezhynskyi
d9bf2d5d6c Get window text color from dialog palette. Set Ok color only for Active state.
--HG--
branch : feature
2017-02-24 17:17:56 +02:00
Roman Telezhynskyi
edf2b2e74a Fix typo.
--HG--
branch : feature
2017-02-24 16:37:11 +02:00
Roman Telezhynskyi
3ebbc53a01 Delete pin visualization when close Seam allowance dialog.
--HG--
branch : feature
2017-02-24 12:14:28 +02:00
Roman Telezhynskyi
757a5ec550 Fix typo.
--HG--
branch : feature
2017-02-24 12:11:00 +02:00
Roman Telezhynskyi
5f4760f06f Read/write info about pin points.
--HG--
branch : feature
2017-02-23 16:49:20 +02:00
Roman Telezhynskyi
8721a4a5d8 Dialog Seam allowance tool now allow select pin points.
--HG--
branch : feature
2017-02-23 16:33:15 +02:00
Roman Telezhynskyi
67a12ef86c Copy-on-write for class VPieceLabelData.
--HG--
branch : feature
2017-02-23 14:46:53 +02:00
Roman Telezhynskyi
2b1cd5c96c Copy-on-write for class VPatternLabelData.
--HG--
branch : feature
2017-02-23 14:36:08 +02:00
Roman Telezhynskyi
f36a4d6621 Copy-on-write for class VGrainlineData.
--HG--
branch : feature
2017-02-23 14:04:49 +02:00
Roman Telezhynskyi
9714e8cb07 Copy-on-write for class VAbstractFloatItemData.
--HG--
branch : feature
2017-02-23 13:50:13 +02:00
Roman Telezhynskyi
c5c3c73429 Added pin point ids.
--HG--
branch : feature
2017-02-23 13:36:56 +02:00
Roman Telezhynskyi
3cfefbe698 Refactoring. New parent VAbstractFloatItemData.
--HG--
branch : feature
2017-02-23 13:26:12 +02:00
Roman Telezhynskyi
1710e3cdb7 Refactoring. Prepare folder structure for new hierarchy.
--HG--
branch : feature
2017-02-23 11:37:19 +02:00
Roman Telezhynskyi
a287913500 Refactoring. Rename class VGrainlineGeometry to VGrainlineData.
--HG--
branch : feature
2017-02-23 11:33:17 +02:00
Roman Telezhynskyi
4e3ee3eefd Refactoring. Rename class VPatternInfoGeometry to VPatternLabelData.
--HG--
branch : feature
2017-02-23 11:26:25 +02:00
Roman Telezhynskyi
37efefe1ec Refactoring. Rename class VPatternPieceData to VPieceLabelData.
--HG--
branch : feature
2017-02-23 11:19:27 +02:00
Roman Telezhynskyi
e7651c7194 Merge with develop.
--HG--
branch : feature
2017-02-23 09:29:28 +02:00
Roman Telezhynskyi
5a2604d2bd "catch" a specific exception type.
--HG--
branch : develop
2017-02-22 19:49:17 +02:00
Roman Telezhynskyi
34b70cfb02 Add an explicit "return" statement with an expression.
--HG--
branch : develop
2017-02-22 19:40:50 +02:00
Roman Telezhynskyi
703a26a5cf Remove useless assignment to variable "date".
--HG--
branch : develop
2017-02-22 19:29:30 +02:00
Roman Telezhynskyi
67d69781f3 Remove the code after "return".
--HG--
branch : develop
2017-02-22 19:27:53 +02:00
Roman Telezhynskyi
3bf65edaa6 Merge with develop.
--HG--
branch : feature
2017-02-22 14:48:48 +02:00
Roman Telezhynskyi
e3d6b32aec Do not use "volatile" to sync threads.
--HG--
branch : develop
2017-02-22 14:04:47 +02:00
Roman Telezhynskyi
a0380f4d24 Warning. Initialize member in an initialization list.
--HG--
branch : develop
2017-02-22 12:22:04 +02:00
Roman Telezhynskyi
2921276cad Sync libdxf code with last from QCAD project.
--HG--
branch : develop
2017-02-22 12:08:58 +02:00
Roman Telezhynskyi
146c936ccf Clang warning.
--HG--
branch : develop
2017-02-22 08:11:13 +02:00
Roman Telezhynskyi
4ed5fd9329 QScopedPointer doesn't support deleting from outside.
--HG--
branch : develop
2017-02-22 08:02:28 +02:00
Roman Telezhynskyi
b31a8d4c6b Extend max size to 72 cm.
Request from a user. See
http://forum.valentina-project.org/t/extension-of-standard-measurements/957

--HG--
branch : develop
2017-02-22 07:54:42 +02:00
Roman Telezhynskyi
d84fd78a38 Fixed bug. Operation tools did not obey tool selection type.
--HG--
branch : develop
2017-02-21 16:16:02 +02:00
Roman Telezhynskyi
38abf5c9a0 Removed redundant forward declaration.
--HG--
branch : develop
2017-02-18 11:22:59 +02:00
Roman Telezhynskyi
8f0f2399e2 Use QScopedPointer to prevent memory leaks.
--HG--
branch : develop
2017-02-18 10:43:06 +02:00
Roman Telezhynskyi
ce4a217c57 Merge with develop.
--HG--
branch : feature
2017-02-17 21:01:11 +02:00
Roman Telezhynskyi
d038a22aa3 Fix broken build.
--HG--
branch : develop
2017-02-17 20:54:16 +02:00
Roman Telezhynskyi
5a0d9b0e00 Merge with develop.
--HG--
branch : feature
2017-02-17 20:38:45 +02:00
Roman Telezhynskyi
2f024db547 Resolved issue #611. Improve feature: Paths preferences.
--HG--
branch : develop
2017-02-17 20:37:49 +02:00
Roman Telezhynskyi
ca9bdbd3fb QSharedPointer doesn't support deleting object from outside.
--HG--
branch : feature
2017-02-15 16:43:12 +02:00
Roman Telezhynskyi
18bbca7b9a Cppcheck warning.
--HG--
branch : feature
2017-02-15 16:07:52 +02:00
Roman Telezhynskyi
ff2d9c28fe Init all pin comboboxes.
--HG--
branch : feature
2017-02-15 15:32:48 +02:00
Roman Telezhynskyi
a3d27bf9db Refacoring. Use marcos for getting current combobox data.
--HG--
branch : feature
2017-02-15 15:23:04 +02:00
Roman Telezhynskyi
6597f68dad Show all pins when tab Pins is active.
--HG--
branch : feature
2017-02-14 17:33:30 +02:00
Roman Telezhynskyi
79a1caa4d7 Translate path node names.
--HG--
branch : feature
2017-02-14 15:12:37 +02:00
Roman Telezhynskyi
fc86069f7c Dialog Seam allowance tool. Show pins in a list.
--HG--
branch : feature
2017-02-14 15:11:54 +02:00
Roman Telezhynskyi
71ac49a221 Merge with develop.
--HG--
branch : feature
2017-02-13 15:29:37 +02:00
Roman Telezhynskyi
a8bd44b63a Refactoring. Method VDrawTool::AddRecord has sense to call only when do
Document::FullParse.

--HG--
branch : develop
2017-02-13 08:55:42 +02:00
Roman Telezhynskyi
8814c07d14 Fixed bug. Grainline's formulas were not converted to internal look.
--HG--
branch : develop
2017-02-13 08:30:34 +02:00
Roman Telezhynskyi
b4e1a19b4f Clang warning.
--HG--
branch : develop
2017-02-12 22:04:09 +02:00
Roman Telezhynskyi
424f661112 Fix export to dxf.
--HG--
branch : develop
2017-02-12 21:13:03 +02:00
Roman Telezhynskyi
33cdac0db1 Fixed issue #627. Seam allowance artifacts
--HG--
branch : develop
2017-02-12 17:29:54 +02:00
Roman Telezhynskyi
16871a0466 Fix bug with Default button.
--HG--
branch : develop
2017-02-12 15:42:21 +02:00
Roman Telezhynskyi
b09cad8c42 GCC warnings.
--HG--
branch : develop
2017-02-12 15:02:07 +02:00
Roman Telezhynskyi
77aa8e6f0e Try to fix test on Windows.
--HG--
branch : develop
2017-02-12 13:20:41 +02:00
Roman Telezhynskyi
a800a01308 Fixed issue #626. Seam allowance bug on curves.
--HG--
branch : develop
2017-02-10 20:10:30 +02:00
Roman Telezhynskyi
6fd45d9e2c Path should also supports elliptical arc.
--HG--
branch : develop
2017-02-10 16:47:15 +02:00
Roman Telezhynskyi
ddd2e3054f Fixed issue #625. Seam allowance tool does not take decimals with locale
de_DE.utf8.

--HG--
branch : develop
2017-02-10 15:02:03 +02:00
Roman Telezhynskyi
d7f9898edc Fixed a typo.
--HG--
branch : develop
2017-02-09 17:16:47 +02:00
Roman Telezhynskyi
9c27e7bfed Fixed issue #624. Icon resulotion issues with some display setups.
--HG--
branch : develop
2017-02-09 15:43:17 +02:00
Roman Telezhynskyi
0ff63c57e4 MSVS error: C2065: 'not': undeclared identifier.
--HG--
branch : develop
2017-02-08 18:58:25 +02:00
Roman Telezhynskyi
aace2e0178 Internal paths in layout now support pen style.
--HG--
branch : develop
2017-02-08 13:48:05 +02:00
Roman Telezhynskyi
5edc241426 Fix corruption a pattern after using Union Details tool.
--HG--
branch : develop
2017-02-08 11:06:17 +02:00
Roman Telezhynskyi
a1774149f6 Fixed issue #622. Piece lost custom seam allowance data.
--HG--
branch : develop
2017-02-08 10:28:18 +02:00
Roman Telezhynskyi
a740d52861 Fix bug. QTemporaryFile blocks a file on Windows.
--HG--
branch : develop
2017-02-07 13:44:33 +02:00
Roman Telezhynskyi
ac6969d64f Resolved issue #620. Detail path not correct. Previous curve also should cut
segment.

--HG--
branch : develop
2017-02-06 17:19:59 +02:00
Roman Telezhynskyi
8a19d8a0b1 Fix bug with "internal variable" in localized form.
Some tools have internal variables, if click button Apply a dialog lost
information about such a variable.

--HG--
branch : develop
2017-02-06 13:38:47 +02:00
Roman Telezhynskyi
685f8a7d70 Create reserve copy only if a file is not a template.
--HG--
branch : develop
2017-02-05 11:27:30 +02:00
Roman Telezhynskyi
29c61b9778 Fix minore bugs in Seam allowance tool.
--HG--
branch : develop
2017-02-04 20:30:32 +02:00
Roman Telezhynskyi
7d78a0f63f Resolved issue #619. Non writable directory prevents opening.
--HG--
branch : develop
2017-02-04 13:28:47 +02:00
Roman Telezhynskyi
85078691ca New version of pattern format.
--HG--
branch : feature
2017-02-01 14:18:45 +02:00
Roman Telezhynskyi
8549e55fec Union Details tool now supports pin points.
--HG--
branch : feature
2017-02-01 13:31:14 +02:00
Roman Telezhynskyi
4831d263b9 Union Details tool. Small improvements and bug fixes.
--HG--
branch : develop
2017-02-01 13:27:38 +02:00
Roman Telezhynskyi
3f8dc54acb Union Details tool. Small improvements and bug fixes.
--HG--
branch : feature
2017-02-01 13:27:38 +02:00
Roman Telezhynskyi
415e5a25a5 Merge with develop.
--HG--
branch : feature
2017-02-01 12:26:08 +02:00
Roman Telezhynskyi
b5d50288a8 Union Details tool brokes a pattern.
--HG--
branch : develop
2017-02-01 12:22:36 +02:00
Roman Telezhynskyi
ad403850bc Save pin inside a piece.
--HG--
branch : feature
2017-01-31 18:09:18 +02:00
Roman Telezhynskyi
a58a479db5 Refactor VPiece class. Instead of method AppendInternalPath() use overloaded
getter.

--HG--
branch : feature
2017-01-31 16:26:28 +02:00
Roman Telezhynskyi
f2e88c71da Added class VToolPin.
--HG--
branch : feature
2017-01-31 16:04:51 +02:00
Roman Telezhynskyi
b9d635dab2 Dialog Pin tool.
--HG--
branch : feature
2017-01-31 14:28:48 +02:00
Roman Telezhynskyi
dcc36a253a Refactoring and bug fix in dialog Piece path.
--HG--
branch : develop
2017-01-31 14:28:05 +02:00
Roman Telezhynskyi
637eaa4256 Refactoring and bug fix in dialog Piece path.
--HG--
branch : feature
2017-01-31 14:28:05 +02:00
Roman Telezhynskyi
dc3c9511ed QPlainTextEdit widget crash a dialog if do not disable signal when closing a
dialog.

--HG--
branch : develop
2017-01-31 14:27:13 +02:00
Roman Telezhynskyi
21e034ef71 QPlainTextEdit widget crash a dialog if do not disable signal when closing a
dialog.

--HG--
branch : feature
2017-01-31 14:27:13 +02:00
Roman Telezhynskyi
d08282218b Optimized png files.
--HG--
branch : develop
2017-01-28 16:58:07 +02:00
Roman Telezhynskyi
b26eca13eb Optimized png files.
--HG--
branch : feature
2017-01-28 16:58:07 +02:00
Roman Telezhynskyi
d6c68a4df8 MSVC warning.
--HG--
branch : develop
2017-01-27 17:41:08 +02:00
Roman Telezhynskyi
01a04fdb09 Clang warning.
--HG--
branch : develop
2017-01-27 14:07:12 +02:00
Roman Telezhynskyi
6e054e2008 Clang warning.
--HG--
branch : develop
2017-01-27 12:12:27 +02:00
Roman Telezhynskyi
252e6a1368 Clang warning.
--HG--
branch : develop
2017-01-27 11:37:55 +02:00
Roman Telezhynskyi
c49f97d695 MSVC warning.
--HG--
branch : develop
2017-01-27 11:15:24 +02:00
Roman Telezhynskyi
40fce2dafa Clang warning.
--HG--
branch : develop
2017-01-25 19:48:38 +02:00
Roman Telezhynskyi
c3aea4e7dc Fix support old tool Union Details format.
--HG--
branch : develop
2017-01-25 19:21:44 +02:00
Roman Telezhynskyi
289157a511 Resolve broken dependecy.
--HG--
branch : develop
2017-01-25 18:07:18 +02:00
Roman Telezhynskyi
a7987422ae Cppcheck warnings.
--HG--
branch : feature
2017-01-25 17:04:53 +02:00
Roman Telezhynskyi
9a51b165ac Refactoring. Eliminate unneeded reverse points and two methods hidden in
anonymous namespace.

--HG--
branch : feature
2017-01-25 16:12:36 +02:00
Roman Telezhynskyi
7f1de2e044 Refactoring. Made strings static.
--HG--
branch : feature
2017-01-25 15:47:55 +02:00
Roman Telezhynskyi
ede59d003f Update formula value if node was changed.
--HG--
branch : feature
2017-01-25 14:42:51 +02:00
Roman Telezhynskyi
19400f5b83 A seam allowance value can be 0.
--HG--
branch : feature
2017-01-25 14:20:25 +02:00
Roman Telezhynskyi
d7d9deb536 Fix test.
--HG--
branch : feature
2017-01-25 13:51:44 +02:00
Roman Telezhynskyi
2c795281dd Merge with develop.
--HG--
branch : feature
2017-01-25 13:29:03 +02:00
Roman Telezhynskyi
8322c8d0ab Fix bug with point on curve.
--HG--
branch : feature
2017-01-25 13:21:23 +02:00
Roman Telezhynskyi
e206ef3d5d Instead of "-1" use local variable "CurrentSeamAllowance" if value is default.
--HG--
branch : feature
2017-01-25 11:40:10 +02:00
Roman Telezhynskyi
49167c0c3c Fix conversion to new seam allowance.
--HG--
branch : feature
2017-01-25 11:32:52 +02:00
Roman Telezhynskyi
1014cc86ca Resolved issue #612. Valentina crashes when network is disabled on Linux.
--HG--
branch : develop
2017-01-24 15:47:25 +02:00
fabrice salvaire
55509e523d fixed typo in code: allowence and greed
--HG--
branch : develop
2017-01-23 17:20:15 +01:00
Roman Telezhynskyi
7817936d3e Fix conversion bug.
--HG--
branch : feature
2017-01-23 14:03:07 +02:00
Roman Telezhynskyi
3d835be3b7 Fix test warning message.
--HG--
branch : feature
2017-01-23 14:02:34 +02:00
Roman Telezhynskyi
41c7031aea Remove unused anymore enum class EquidistantType.
--HG--
branch : feature
2017-01-23 14:02:05 +02:00
Roman Telezhynskyi
75efd4021b All united details should have appropriate flag setted up.
--HG--
branch : feature
2017-01-22 15:21:08 +02:00
Roman Telezhynskyi
426e24dccf Use predefined symbol degree variable.
--HG--
branch : feature
2017-01-22 15:08:59 +02:00
Roman Telezhynskyi
8c1bd37491 Show piece's internal paths on a layout.
--HG--
branch : feature
2017-01-22 14:32:25 +02:00
Roman Telezhynskyi
b99bdc4742 A seam allowance is alwayse closed.
--HG--
branch : feature
2017-01-22 13:21:07 +02:00
Roman Telezhynskyi
a1a25a39e7 Fixed typo.
--HG--
branch : feature
2017-01-22 13:20:04 +02:00
Roman Telezhynskyi
fb86e6c51f Remove class VAbstractDetail.
--HG--
branch : feature
2017-01-22 11:20:33 +02:00
Roman Telezhynskyi
10a13a499d Rename class VLayoutDetail.
--HG--
branch : feature
2017-01-22 11:02:02 +02:00
Roman Telezhynskyi
c6f529992b Switch parent for class VLayoutDetail to VAbstractPiece.
--HG--
branch : feature
2017-01-22 10:50:23 +02:00
Roman Telezhynskyi
8fb6c9c508 Code that converts VPiece to VLayoutDetail moved to static function.
--HG--
branch : feature
2017-01-22 10:32:01 +02:00
Roman Telezhynskyi
26c76bbc71 Replace VDetail by VPiece.
--HG--
branch : feature
2017-01-21 19:12:57 +02:00
Roman Telezhynskyi
ded6a9e76c Clean using class VNodeDetail.
--HG--
branch : feature
2017-01-21 17:47:53 +02:00
Roman Telezhynskyi
8b1e9e24d4 Tool path and piece now bring formulas, should cover this fact.
--HG--
branch : feature
2017-01-21 17:32:08 +02:00
Roman Telezhynskyi
669d295804 Class VToolDetail removed.
--HG--
branch : feature
2017-01-21 16:30:14 +02:00
Roman Telezhynskyi
0ef10c01b0 A piece seam allowance can be controlled by formula.
--HG--
branch : feature
2017-01-21 15:24:40 +02:00
Roman Telezhynskyi
25a2717682 Added new local variable "CurrentSeamAllowance".
--HG--
branch : feature
2017-01-20 15:58:35 +02:00
Roman Telezhynskyi
121f003e7c Refactoring. Move grainline and lable to library VWidgets.
--HG--
branch : feature
2017-01-19 12:23:42 +02:00
Roman Telezhynskyi
84b285cbe4 Refactoring. Grainline and label have common parent.
--HG--
branch : feature
2017-01-19 12:07:26 +02:00
Roman Telezhynskyi
6ee0c42d53 Used command "xmllint --format" to format files.
--HG--
branch : feature
2017-01-18 15:20:42 +02:00
Roman Telezhynskyi
ac58338fc4 Convert old tool union to format version 0.4.0.
--HG--
branch : feature
2017-01-18 15:17:16 +02:00
Roman Telezhynskyi
004c83a11f After each reset label or grainline need to repaint piece image.
--HG--
branch : feature
2017-01-18 14:01:51 +02:00
Roman Telezhynskyi
ccc8da800f Pieces should disappear from the list when deleted.
--HG--
branch : feature
2017-01-18 12:22:02 +02:00
Roman Telezhynskyi
d2ff75dedc Tool Union Details now works.
--HG--
branch : feature
2017-01-18 10:17:18 +02:00
Roman Telezhynskyi
8b839c7002 List of pieces should also be cleared.
--HG--
branch : feature
2017-01-18 10:15:51 +02:00
Roman Telezhynskyi
7490200806 Fix tool Union Details's dialog.
--HG--
branch : feature
2017-01-17 13:49:55 +02:00
Roman Telezhynskyi
bfd76b4e60 Code style.
--HG--
branch : feature
2017-01-17 13:49:21 +02:00
Roman Telezhynskyi
7aebc22d88 Use MessageHandler to show better error message when load xsd schema.
--HG--
branch : feature
2017-01-17 12:26:25 +02:00
Roman Telezhynskyi
8eba46ade1 The tool redesign was finnised. Code is not tested.
--HG--
branch : feature
2017-01-16 17:37:15 +02:00
Roman Telezhynskyi
6faa0bc318 First successful build. The redesign is not finished.
--HG--
branch : feature
2017-01-16 12:08:13 +02:00
Roman Telezhynskyi
60810c4d04 Use parent implementation for methods incrementReferens() and
decrementReferens() where possible.

--HG--
branch : feature
2017-01-16 12:06:50 +02:00
Roman Telezhynskyi
5442eb40b9 Move methods to class VAbstractPattern to be able to use them for tool Unite
Details.

--HG--
branch : feature
2017-01-16 11:59:02 +02:00
Roman Telezhynskyi
4cc232fc74 Fix crash. Valentina crashes when change name of piece.
--HG--
branch : feature
2017-01-14 12:10:21 +02:00
Roman Telezhynskyi
e974f75b51 Make Internal path first in list.
--HG--
branch : feature
2017-01-13 19:09:22 +02:00
Roman Telezhynskyi
af51e5e240 Seam allowance tool already initializated and can't init the path.
--HG--
branch : feature
2017-01-13 19:07:14 +02:00
Roman Telezhynskyi
970762d0b3 Allow a user to select a curve covered by visualization.
--HG--
branch : feature
2017-01-13 17:03:15 +02:00
Roman Telezhynskyi
59c9a0b400 Allow a user to select a point covered by visualization.
--HG--
branch : feature
2017-01-13 16:57:49 +02:00
Roman Telezhynskyi
dabac6b17d Better help messages.
--HG--
branch : feature
2017-01-13 16:06:39 +02:00
Roman Telezhynskyi
c065824306 Fix crash when create an internal path.
--HG--
branch : feature
2017-01-13 16:06:03 +02:00
Roman Telezhynskyi
548f7844f4 Missed to replace VDetail by VPiece.
--HG--
branch : feature
2017-01-13 15:19:27 +02:00
Roman Telezhynskyi
f51d32d88e Move static methods to private section.
--HG--
branch : feature
2017-01-13 10:24:48 +02:00
Roman Telezhynskyi
29490b9e66 Removed dialog Detail.
--HG--
branch : feature
2017-01-12 19:17:13 +02:00
Roman Telezhynskyi
297b73a951 VToolSeamAllowance add grainline and labels. Only the dialog.
--HG--
branch : feature
2017-01-12 19:09:00 +02:00
Roman Telezhynskyi
c9cb6adc36 VToolSeamAllowance add grain line and labels. Only the tool.
--HG--
branch : feature
2017-01-12 15:51:08 +02:00
Roman Telezhynskyi
3634867c47 Try to fix Qt error.
--HG--
branch : feature
2017-01-11 15:01:49 +02:00
Roman Telezhynskyi
12162e49e8 Port changes from develop branch.
--HG--
branch : feature
2017-01-11 14:53:16 +02:00
Roman Telezhynskyi
5a95ce9c8a Merge with develop.
--HG--
branch : feature
2017-01-11 14:05:06 +02:00
Roman Telezhynskyi
ff03f67663 Fix infinite loop in method VAbstractDetail::CheckLoops().
--HG--
branch : develop
2017-01-11 13:54:06 +02:00
Roman Telezhynskyi
5aa863cf3b Modified output to see point coordinates.
--HG--
branch : develop
2017-01-10 20:45:15 +02:00
Roman Telezhynskyi
e952260a9f Fixed issue #609. Bug in CheckLoops method. Better handling internal and
external loops.

--HG--
branch : develop
2017-01-09 18:25:13 +02:00
Roman Telezhynskyi
a842e2c2d1 Fixed issue #604. Seams allowances gets "weird" and turns inward when changing
measurment file.

--HG--
branch : develop
2017-01-05 17:16:36 +02:00
Roman Telezhynskyi
fe8179d1bf Do not update labels and grain line if disabled.
--HG--
branch : develop
2017-01-05 13:13:44 +02:00
Roman Telezhynskyi
d4317a61ec Fix division by zero.
--HG--
branch : develop
2017-01-05 13:11:18 +02:00
Roman Telezhynskyi
1882833ce7 Fixed issue #607. Cut tools do not support operation tools.
--HG--
branch : develop
2017-01-04 13:38:10 +02:00
Roman Telezhynskyi
b41ea624da Fix linker error on Windows.
--HG--
branch : develop
2017-01-03 14:37:27 +02:00