Commit graph

3814 commits

Author SHA1 Message Date
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 07021680a4 Little fix for translation string.
--HG--
branch : release
2017-04-21 13:11:51 +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 abb0d07a6f Fixed copy paste issue.
--HG--
branch : release
2017-04-19 14:25:45 +03:00
Roman Telezhynskyi ed76857cea Refactoring. Take the dialog result directly from exec() function.
--HG--
branch : release
2017-04-19 14:06:48 +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 fffd66ac53 Fix About Tape dialog width.
--HG--
branch : release
2017-04-18 14:35:31 +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 d354b99149 Fix crash.
Valentina crashes when a user uses a tool and select button Cancel to close a
tool dialog.

--HG--
branch : release
2017-04-17 19:24:41 +03:00
Roman Telezhynskyi 720366657f Fixed regression with UI on Mac.
--HG--
branch : release
2017-04-17 13:13:39 +03:00
Roman Telezhynskyi 45ed0c52d0 Minor fixes for tool box.
--HG--
branch : release
2017-04-17 10:36:27 +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 5c5db3d7e9 Cppcheck warning.
--HG--
branch : release
2017-04-14 15:59:13 +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 7b0253d95e Resolved resizing tables after update.
--HG--
branch : release
2017-04-14 12:04:03 +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 1e06446189 Improved editing custom measurement and increment.
Fixed case when a user input empty string. In this case return auto generated
name. Fixed case when the name is not unique. In this case find unique with
index "new_name" + "_number".

--HG--
branch : release
2017-04-14 10:35:44 +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 1ee0988f8a Refactoring Valentina's preferences dialog.
Instead of manual declaring used Qt Designer.

--HG--
branch : release
2017-04-12 13:31:11 +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 f384639ac3 Fix a crash.
--HG--
branch : release
2017-04-12 09:45:58 +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 14000924e2 Improve tooltipe of operation tools.
Should help to understand how to select multiple objects.

--HG--
branch : release
2017-04-11 13:11:59 +03:00
Roman Telezhynskyi 2915402526 Removed Community page from Preferences.
--HG--
branch : release
2017-04-11 12:21:15 +03:00
Roman Telezhynskyi 45080b7698 Add link to forum and Wiki.
--HG--
branch : release
2017-04-11 12:03:55 +03:00
Roman Telezhynskyi 534b948b52 Disable generation Wavefront OBJ.
Will be available only in debug mode.

--HG--
branch : release
2017-04-11 11:56:01 +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 3d9feaf3c5 Disabled several tests on Windows due to "undefined behavior" problem.
--HG--
branch : develop
2017-03-31 07:50:30 +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 330e831815 Fix multiple calling of method EndVisualization().
--HG--
branch : feature
2017-03-29 13:50:16 +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 e4cf5980c8 Fix bug. When we switch to the Detail mode should be activated specific tool
box section.

--HG--
branch : develop
2017-03-22 12:12:17 +02:00
Roman Telezhynskyi e995f6f68a Added new tool Insert node.
--HG--
branch : feature
2017-03-22 12:05:53 +02:00