Commit Graph

2360 Commits

Author SHA1 Message Date
Roman Telezhynskyi
8dbcfb4874 Fix issue with elliptical arc. It should read but ignore attribute 'aScale'.
ref #768.

--HG--
branch : develop
2017-11-18 13:48:03 +02:00
Roman Telezhynskyi
604baa61d3 Improve Move tool. It should provide optional rotation origin point field.
ref #726.

--HG--
branch : develop
2017-11-17 12:28:57 +02:00
Roman Telezhynskyi
e6c59de3ca Fix bug in dialog Seam allowance tool.
Don't show the dialog if a main path doesn't contain at least one item.

--HG--
branch : develop
2017-11-15 15:25:38 +02:00
Roman Telezhynskyi
037d1daaaa Fix bug in dialog Seam allowance tool.
When create a piece and call a context menu Valentina blocks creating because
of wrong formulas.

--HG--
branch : develop
2017-11-15 15:25:05 +02:00
Roman Telezhynskyi
a0643e5712 Optimize tool piece visualization.
--HG--
branch : develop
2017-11-15 13:23:19 +02:00
Roman Telezhynskyi
016883110f Allow an arc to have the same start and end angles.
In such a case full circle will be drawn.

--HG--
branch : develop
2017-11-15 13:22:16 +02:00
Roman Telezhynskyi
12761dcfa6 SonarQube warning.
--HG--
branch : develop
2017-11-14 15:08:19 +02:00
Roman Telezhynskyi
bbee47fe35 Fix compatibility with Qt below version 5.5.
--HG--
branch : develop
2017-11-14 15:06:22 +02:00
Roman Telezhynskyi
ae52f58f6f Cppcheck.
--HG--
branch : develop
2017-11-14 15:05:05 +02:00
Roman Telezhynskyi
5f0d4ea586 Resolved issue #774. New feature. Matching Parentheses.
--HG--
branch : develop
2017-11-14 13:46:28 +02:00
Roman Telezhynskyi
3510843e44 Resolved issue #726. Improve Move tool. Add optional rotate option.
--HG--
branch : develop
2017-11-13 19:39:11 +02:00
Roman Telezhynskyi
f71b0fd328 Fix build on Windows.
--HG--
branch : develop
2017-11-13 12:59:25 +02:00
Roman Telezhynskyi
d5cd6095e5 Clang warning.
--HG--
branch : develop
2017-11-13 11:50:09 +02:00
Roman Telezhynskyi
5fb0eb42fd Fix Valentina crash.
Valentina crashes if remove piece node parent.

--HG--
branch : develop
2017-11-13 11:29:29 +02:00
Roman Telezhynskyi
8e44628b57 Fix bug. Update details list after creating or deleting a detail.
--HG--
branch : develop
2017-11-13 11:08:48 +02:00
Roman Telezhynskyi
736d21d71c Fix bug with mouse cursor when use line tool.
--HG--
branch : develop
2017-11-13 11:03:12 +02:00
Roman Telezhynskyi
132b7c9fc6 CSR - special modeling case.
--HG--
branch : develop
2017-11-13 10:53:27 +02:00
Roman Telezhynskyi
c180a26e09 Improve tool Point on middle visualization.
Show point on middle position when creating a point.

--HG--
branch : develop
2017-11-11 11:24:30 +02:00
Roman Telezhynskyi
ec3750e087 Resolved issue #773. Tool Point intersection curve and axis cannot find
desired intersection poin.
(grafted from 86bc49a9552fc4555956815a4d32abfa091ccfc1)

--HG--
branch : develop
2017-11-11 11:01:45 +02:00
Roman Telezhynskyi
b453d2b2d6 Fix bug in dialog Seam allowance tool.
The dialog should prevent user to save a detail with broken formula.

--HG--
branch : develop
2017-11-01 11:40:19 +02:00
Roman Telezhynskyi
d1e3531247 Write log output in UTF-8.
--HG--
branch : develop
2017-11-01 10:20:07 +02:00
Roman Telezhynskyi
e9abab4eb2 Fix bug in Valentina.
Each QGaphicsItem should make accepted mouse press event if it accept an event.

--HG--
branch : develop
2017-10-31 10:31:50 +02:00
Roman Telezhynskyi
790e276102 SonarQube warnings.
--HG--
branch : develop
2017-10-30 12:16:58 +02:00
Roman Telezhynskyi
7a11b3497a Fix bug with setting cursor QGraphicsPathItem without hover events.
--HG--
branch : develop
2017-10-30 11:08:25 +02:00
Roman Telezhynskyi
cbf3e4d5df When create group selecting a control point should also select a curve.
--HG--
branch : develop
2017-10-30 08:34:18 +02:00
Roman Telezhynskyi
55754d227b Fix bug with spline path.
--HG--
branch : develop
2017-10-30 08:20:03 +02:00
Roman Telezhynskyi
61efe97e6c Fix black square bug.
--HG--
branch : develop
2017-10-29 20:12:35 +02:00
Roman Telezhynskyi
1ce645fa16 Fix bug in undocommands.
--HG--
branch : develop
2017-10-29 19:49:51 +02:00
Roman Telezhynskyi
8309fa8c7a Save show curve details state between sessions.
--HG--
branch : develop
2017-10-29 15:13:13 +02:00
Roman Telezhynskyi
1cd126856c Fixes for spline control point.
--HG--
branch : develop
2017-10-29 13:48:28 +02:00
Roman Telezhynskyi
f16d26b659 Improve EnsureVisibleWithDelay feature.
Margins should to be scaled according to scene scale factor.

--HG--
branch : develop
2017-10-29 13:46:58 +02:00
Roman Telezhynskyi
09f3ba234c Fix bug with item highligh selected.
--HG--
branch : develop
2017-10-29 11:06:17 +02:00
Roman Telezhynskyi
def801a626 Call item update if curve detailed mode changed.
Need to show/hide a curve direction.

--HG--
branch : develop
2017-10-29 10:53:47 +02:00
Roman Telezhynskyi
969dd163bf Fix bug with spline's control point.
Fix infinite redrawing.

--HG--
branch : develop
2017-10-28 19:21:47 +03:00
Roman Telezhynskyi
d3cf15f5b8 Fix some bugs.
--HG--
branch : develop
2017-10-28 17:31:18 +03:00
Roman Telezhynskyi
46d6fcd29d Fix creating pieces.
--HG--
branch : develop
2017-10-28 14:11:52 +03:00
Roman Telezhynskyi
104a491a67 Fixing font problem on Windows.
Calc start label scale based on start font size and minimal visible font size.

--HG--
branch : develop
2017-10-28 13:02:51 +03:00
Roman Telezhynskyi
72dde072af New feature. Allow to exclude piece node point from it's context menu.
--HG--
branch : develop
2017-10-27 14:02:17 +03:00
Roman Telezhynskyi
91b4c7c8fa Fix bug with returning a piece to original position.
--HG--
branch : develop
2017-10-27 12:28:08 +03:00
Roman Telezhynskyi
dd5b276e5d Fix bug with exclude objects.
--HG--
branch : develop
2017-10-27 12:11:29 +03:00
Roman Telezhynskyi
29b23bbce3 Toggle piece node point label. ref #755.
--HG--
branch : develop
2017-10-27 11:53:35 +03:00
Roman Telezhynskyi
3df6c09934 Optimize adjusting scene rect after moving label.
--HG--
branch : develop
2017-10-27 10:36:55 +03:00
Roman Telezhynskyi
4af32961b0 Optimize adjusting new scene rect.
If we know an object that cause adjustment no need to recalc bounding rect for
all scene items.

--HG--
branch : develop
2017-10-27 09:13:51 +03:00
Roman Telezhynskyi
6dfe04e2bc Fixing issue with slow zooming.
Check if need to update scene rect before actual update.

--HG--
branch : develop
2017-10-26 22:59:28 +03:00
Roman Telezhynskyi
7777646a16 Fix font problem on Windows.
--HG--
branch : develop
2017-10-26 19:57:52 +03:00
Roman Telezhynskyi
5a07871a8d Fix Tool union Reatin pieces option.
--HG--
branch : feature
2017-10-26 17:22:12 +03:00
Roman Telezhynskyi
51e670bd84 Duplicate from GUI.
--HG--
branch : feature
2017-10-26 16:57:52 +03:00
Roman Telezhynskyi
e8ca7f575d Fix bug. Modeling objects should be separated from calculation objects and stay
in not copied container.

--HG--
branch : feature
2017-10-26 12:54:08 +03:00
Roman Telezhynskyi
9b54b0c069 Dialog Duplicate Detail.
--HG--
branch : feature
2017-10-25 17:49:04 +03:00
Roman Telezhynskyi
3362e8a4dc Fix font problem on Windows.
--HG--
branch : develop
2017-10-25 22:34:28 +03:00
Roman Telezhynskyi
feaa43a712 SonarCloud warning.
--HG--
branch : develop
2017-10-25 13:54:15 +03:00
Roman Telezhynskyi
7c0d17a7e3 Cppcheck warning.
--HG--
branch : develop
2017-10-25 11:56:24 +03:00
Roman Telezhynskyi
19fb13affe Resolved issue #771. Improve tool Point at intersection of arc and line.
--HG--
branch : develop
2017-10-25 11:27:43 +03:00
Roman Telezhynskyi
7fce20c98e Removed redundant calls UpdateGObject(). Undocommand for piece label.
--HG--
branch : feature
2017-10-24 20:25:51 +03:00
Roman Telezhynskyi
89a2323944 Fix problem with updating objects inside vcontainer.
--HG--
branch : feature
2017-10-24 19:50:16 +03:00
Roman Telezhynskyi
f78c122cb0 Show place label rect.
--HG--
branch : feature
2017-10-24 16:42:09 +03:00
Roman Telezhynskyi
7a2297ed6b Correct applying correction angle.
--HG--
branch : feature
2017-10-24 14:23:11 +03:00
Roman Telezhynskyi
14e19ced4b Refactoring. Move dialogs related to pieces.
--HG--
branch : feature
2017-10-24 14:14:59 +03:00
Roman Telezhynskyi
9c6160fa50 Fix bug with parent disappearing.
--HG--
branch : feature
2017-10-24 12:02:47 +03:00
Roman Telezhynskyi
f27c7e4e35 Fix recursive repaint after label scale.
--HG--
branch : feature
2017-10-23 21:10:48 +03:00
Roman Telezhynskyi
05cad85ab3 Fix bug with tool seam allowance cursor.
--HG--
branch : feature
2017-10-23 14:31:01 +03:00
Roman Telezhynskyi
233efde704 Always draw circle for Button type.
--HG--
branch : feature
2017-10-23 12:33:54 +03:00
Roman Telezhynskyi
6f5969a357 Use icon from default theme.
--HG--
branch : feature
2017-10-23 11:33:34 +03:00
Roman Telezhynskyi
660efa3844 Fix bugs.
* * *
Fix tool union bugs.
* * *
Fix preparing pieces for layout.
* * *
Fix bug with formulas.

--HG--
branch : feature
2017-10-23 10:45:58 +03:00
Roman Telezhynskyi
2a3d52ba88 Improve scene point.
Scale line to label and make the line more transparent.

--HG--
branch : feature
2017-10-21 16:26:22 +03:00
Roman Telezhynskyi
f4c5ad7213 Fix undo bug. Undocommand doesn't increment/decrement reference counters.
--HG--
branch : feature
2017-10-17 19:35:39 +03:00
Roman Telezhynskyi
ca79c7ff93 Added place label.
--HG--
branch : feature
2017-10-15 12:25:20 +03:00
Roman Telezhynskyi
7038b60e43 Fix black square bug.
--HG--
branch : develop
2017-10-22 11:31:32 +03:00
Roman Telezhynskyi
f0035e1f65 Refactor method VGObject::IsPointOnLineSegment.
--HG--
branch : develop
2017-10-19 19:50:00 +03:00
Roman Telezhynskyi
dd0025456b Fix crash in Free curve mode.
--HG--
branch : develop
2017-10-19 16:26:51 +03:00
Roman Telezhynskyi
52a8fb5bae Fix scale problem with selecting points.
We scaled point circle size, but forgot to adjust test size according to scale
too.

--HG--
branch : develop
2017-10-19 15:56:57 +03:00
Roman Telezhynskyi
3e80b6439a Fix bug with seam allowance. ref #767.
(grafted from 764b3537c0c8cac7804494f00436bdd152d286d7)

--HG--
branch : develop
2017-10-19 14:11:57 +03:00
Roman Telezhynskyi
71b5a17aa1 Refactor methods names for better readability.
--HG--
branch : develop
2017-10-19 11:24:21 +03:00
Roman Telezhynskyi
8eecfe78a3 New feature multi deletion pieces.
--HG--
branch : develop
2017-10-19 11:20:19 +03:00
Roman Telezhynskyi
6bbd54f6ef Improve Add piece undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 18:02:02 +03:00
Roman Telezhynskyi
614fd3a0f9 Improve Delete piece undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 16:40:20 +03:00
Roman Telezhynskyi
1fbb65d21d Fix SavePiecePathOptions undocommand.
Bug with increment/decrement reference counter.

--HG--
branch : develop
2017-10-18 11:58:01 +03:00
Roman Telezhynskyi
6b6c7aff52 Improve Save piece options undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 11:56:29 +03:00
Roman Telezhynskyi
ef41c700f8 Improve Move piece undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 11:24:15 +03:00
Roman Telezhynskyi
6b47894f16 Cppcheck warnings.
--HG--
branch : develop
2017-10-13 22:03:44 +03:00
Roman Telezhynskyi
cc66a2ccbb Fix compatibility issue with Qt 5.2.
--HG--
branch : develop
2017-10-13 17:48:54 +03:00
Roman Telezhynskyi
d15e507aeb Fix issue. User should be able to control tiled pdf export through command line.
--HG--
branch : develop
2017-10-13 17:48:20 +03:00
Roman Telezhynskyi
0f59db15db Clang warning.
--HG--
branch : develop
2017-10-12 10:35:22 +03:00
Roman Telezhynskyi
8981e77927 Clang warning.
--HG--
branch : develop
2017-10-11 14:26:05 +03:00
Roman Telezhynskyi
baa2f4fd92 Resolved issue #768. New feature. Custom curve approximation scale.
--HG--
branch : develop
2017-10-11 13:51:06 +03:00
Roman Telezhynskyi
38815727bb Fix bugs. ref #657.
--HG--
branch : develop
2017-10-11 11:34:22 +03:00
Roman Telezhynskyi
136b9f66ed Fixed issue. Curves look too wavy.
(grafted from 87dfd6a669e23585ed67982d043e6abd26a1f00b)

--HG--
branch : develop
2017-10-10 12:28:17 +03:00
Roman Telezhynskyi
67b01c0337 Resolved issue #657. Improve feature: Allow more paper formats for printing
tiled PDF.

--HG--
branch : develop
2017-10-10 12:22:59 +03:00
Roman Telezhynskyi
0fb0763191 Fixed issue #767. Valentina produces wrong main path.
(grafted from c07c9ff6a27a673f55e5c3d98242534ee2c6ca95)

--HG--
branch : develop
2017-10-07 15:19:36 +03:00
Roman Telezhynskyi
61172d46c4 Fix typo in headers.
--HG--
branch : develop
2017-10-05 12:20:01 +03:00
Roman Telezhynskyi
daa539378f Resolved issue #765. New feature. Free curve mode.
--HG--
branch : develop
2017-10-03 13:01:56 +03:00
Roman Telezhynskyi
08df3b4486 Scrolling delay.
When object is close to edge of view Valentina begins scrolling scene to ensure
that the object is visible. In many cases this happens to fast for user. As
solution after correction Valentina will wait 80 milliseconds before procedding
next move. This will give users enough time to react. Such delay is called only
if view was scrolled.

--HG--
branch : develop
2017-10-02 16:25:18 +03:00
Roman Telezhynskyi
da2cc857df Fix scaling point label.
--HG--
branch : develop
2017-09-30 21:13:22 +03:00
Roman Telezhynskyi
95a21e07cc Fix test crash.
--HG--
branch : develop
2017-09-30 11:31:41 +03:00
Roman Telezhynskyi
0adfbb8fb1 New math parser function "r2cm". Round to up to 1 decimal.
--HG--
branch : develop
2017-09-29 17:47:11 +03:00
Roman Telezhynskyi
be614ad9f8 Right way to suppress GCC warning Wstrict-overflow for method QVector::move().
--HG--
branch : develop
2017-09-29 17:13:30 +03:00
Roman Telezhynskyi
8de6fc4473 Fix XSD schema to accept number of user material placeholders up to 20.
--HG--
branch : develop
2017-09-29 11:40:57 +03:00
Roman Telezhynskyi
6ed9dce7bf Clang warning.
--HG--
branch : develop
2017-09-28 21:20:32 +03:00
Roman Telezhynskyi
d7b3ddc2d5 Resolved issue #758. Intersection Passmark - select which side is shown.
--HG--
branch : develop
2017-09-28 21:18:13 +03:00
Roman Telezhynskyi
d0150bccbd Removed redundant include.
--HG--
branch : develop
2017-09-28 20:27:33 +03:00