Commit graph

2580 commits

Author SHA1 Message Date
Valentina Zhuravska 0d8d9cb5e1 Resolved issue #487. True dart point always goes to origin when the label is moved.
--HG--
branch : develop
2016-05-17 13:46:52 +03:00
Roman Telezhynskyi b377042125 Merge with develop.
--HG--
branch : feature
2016-05-17 13:25:33 +03:00
Roman Telezhynskyi 970b876cf7 Show the tool visualization.
--HG--
branch : feature
2016-05-17 13:24:51 +03:00
Valentina Zhuravska 6e7b77b9de Added toolTip.
--HG--
branch : feature
2016-05-17 13:18:38 +03:00
Roman Telezhynskyi 18d3a297cd VToolRotation::SetFactor.
--HG--
branch : feature
2016-05-17 13:02:01 +03:00
Valentina Zhuravska b55c0ffff5 Little fix.
--HG--
branch : feature
2016-05-17 12:35:18 +03:00
Valentina Zhuravska 5933da7403 Resolved issue #472. Add 'Full Name' column to Formula dialog.
--HG--
branch : feature
2016-05-17 12:25:01 +03:00
Roman Telezhynskyi 35c1267672 Try catch more cases where adding new tool will produce issues.
--HG--
branch : feature
2016-05-16 22:14:59 +03:00
Roman Telezhynskyi 048a49f784 Return all formulas that provide tag Operation.
--HG--
branch : feature
2016-05-16 21:11:48 +03:00
Roman Telezhynskyi ac49d298f8 Refactoring. Use tag names from class VAbstractPattern.
--HG--
branch : feature
2016-05-16 20:59:04 +03:00
Roman Telezhynskyi 7dbba35919 Parse the tool in a file.
--HG--
branch : feature
2016-05-16 20:27:51 +03:00
Roman Telezhynskyi 02eb12ba3e Fix warning "Class implements the interface QGraphicsItem but does not list it
in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!"

--HG--
branch : feature
2016-05-14 22:58:00 +03:00
Roman Telezhynskyi e9d23a7a32 Refactoring. Each a static method has access to each method in a class. So, we
can declare a constructor in private section for each a tool class that has
"Create" methods.

--HG--
branch : feature
2016-05-14 22:54:57 +03:00
Roman Telezhynskyi 6187f16c6a Refactoring. Use conversion operator for conversion VPointF to QPointF.
--HG--
branch : feature
2016-05-14 22:28:09 +03:00
Roman Telezhynskyi 95a7553741 XSD scheme is now more correct.
--HG--
branch : feature
2016-05-14 21:24:27 +03:00
Roman Telezhynskyi d2efd50030 Delete visualization before closing the tool dialog.
--HG--
branch : feature
2016-05-13 20:59:15 +03:00
Roman Telezhynskyi 2f7138e69c Forgot to add apply button.
--HG--
branch : feature
2016-05-13 20:46:57 +03:00
Roman Telezhynskyi 80eb2649b9 Refactoring.
--HG--
branch : feature
2016-05-13 20:40:55 +03:00
Roman Telezhynskyi 4537106991 Updated XSD scheme.
--HG--
branch : feature
2016-05-13 20:33:52 +03:00
Roman Telezhynskyi 4ec4f276fc GCC warnings.
--HG--
branch : feature
2016-05-13 18:10:13 +03:00
Roman Telezhynskyi c8a041e4f2 Refactoring undocommands move label.
--HG--
branch : feature
2016-05-13 18:05:35 +03:00
Roman Telezhynskyi fc4054e49e Undocommand move a label of rotated point.
--HG--
branch : feature
2016-05-13 16:50:30 +03:00
Roman Telezhynskyi 80b415f258 Merge with develop.
--HG--
branch : feature
2016-05-12 22:52:31 +03:00
Roman Telezhynskyi 910c40a5b3 Commit successful build.
--HG--
branch : feature
2016-05-12 22:11:21 +03:00
Roman Telezhynskyi e5a84ccd14 Fixed issue #488. Error: Measurements File Sync dialog box never returns. Win10,
MSVC.

--HG--
branch : develop
2016-05-08 19:25:51 +03:00
Roman Telezhynskyi 49bee0cada Delete key did not work.
--HG--
branch : develop
2016-05-08 18:04:18 +03:00
Roman Telezhynskyi e3d582fc5e Fixed issue #481. Error: Valentina closes on 'Zoom Best Fit'.
--HG--
branch : develop
2016-05-08 17:15:41 +03:00
Roman Telezhynskyi 637ca7015e Unit test for the issue #485.
--HG--
branch : develop
2016-05-07 16:14:43 +03:00
Roman Telezhynskyi 043a3d4ee4 Fixed issue #485. Error when drawing a curved path.
(grafted from 28d51c1471759c1d6ff544ea92c7fc146dcac532)

--HG--
branch : develop
2016-05-07 11:56:14 +03:00
Roman Telezhynskyi 288b8dbca6 Merge.
--HG--
branch : develop
2016-05-07 11:55:49 +03:00
Roman Telezhynskyi 384d85dfae Fixed build with MSVC.
--HG--
branch : develop
2016-05-06 19:32:35 +03:00
Valentina Zhuravska 3914f11bab Resolved issue #435. Valentina doesn't change the cursor
--HG--
branch : develop
2016-05-05 18:01:05 +03:00
Roman Telezhynskyi 5f7c250415 Qt's but QTBUG-42846 "QNSView mouseDragged: Internal mouse button tracking
invalid (missing Qt::LeftButton)" was fixed. No need to hide the warning message
anymore.

--HG--
branch : develop
2016-05-04 16:40:15 +03:00
Roman Telezhynskyi a3b95f5927 Merged in curious_one/valentina (pull request #114)
Made compilable with msvc by adding compiler directive where necessary...

--HG--
branch : develop
2016-05-04 15:30:09 +03:00
Curious One 533968fca0 did a hg merge and it now wants me to commit. These are lots of changes that I don't know where they are from...
--HG--
branch : develop
2016-05-04 21:37:49 +10:00
Curious One f5f915cbe0 Again, made compilable with msvc by adding compiler directive where necessary...
--HG--
branch : develop
2016-05-04 21:35:35 +10:00
Valentina Zhuravska cd9c6c99ae Resolved issue #473. Tape 'Preferences' cause loss of focus
--HG--
branch : develop
2016-05-03 23:16:57 +03:00
Roman Telezhynskyi cc84b6e7d6 Fix problem with updating localization.
--HG--
branch : develop
2016-05-03 20:13:17 +03:00
Roman Telezhynskyi 6f56b46d26 Fixed Clang warnings.
--HG--
branch : develop
2016-05-03 19:50:37 +03:00
Roman Telezhynskyi acb8b57b24 Merge
--HG--
branch : develop
2016-05-02 20:49:43 +03:00
Roman Telezhynskyi 95bb0c054d Hide Qt's warning related to the bug 'Assertion when reading an icns file'.
--HG--
branch : develop
2016-05-02 19:45:36 +03:00
Roman Telezhynskyi 613fa5d6da Fixed build on Mac OS X with Qt 5.6. Minimally supported target is now 10.7.
--HG--
branch : develop
2016-05-02 19:41:23 +03:00
Valentina Zhuravska afb3c20820 Resolved issue #478
--HG--
branch : develop
2016-05-02 03:44:33 +03:00
Roman Telezhynskyi a23de6ab41 Merge
--HG--
branch : develop
2016-04-26 15:40:02 +03:00
Roman Telezhynskyi 433efd08c7 Little optimization for the layout generator.
--HG--
branch : develop
2016-04-26 15:39:50 +03:00
Roman Telezhynskyi 8651bcadd4 GCC warning.
--HG--
branch : develop
2016-04-26 15:38:49 +03:00
Valentina Zhuravska 86de5ba274 Resolved Issue #471. Add a 'Show/Hide' button for measurement diagram in Tape
--HG--
branch : develop
2016-04-25 20:00:03 +03:00
Valentina Zhuravska 66fbcab64c Better to use qDegreesToRadians than M_PI/180
--HG--
branch : feature
2016-04-11 05:52:32 +03:00
Valentina Zhuravska c95b162c0d Fixed build in win7
--HG--
branch : feature
2016-04-11 05:27:51 +03:00
Roman Telezhynskyi 2717382d71 Rotation VSpline and VSplinePath classes.
--HG--
branch : feature
2016-04-10 18:03:15 +03:00
Roman Telezhynskyi 8713c628dc Refactoring VArc and VEllipticalArc classes.
--HG--
branch : feature
2016-04-10 17:40:55 +03:00
Roman Telezhynskyi a7c4cc7aaf Merge with develop.
--HG--
branch : feature
2016-04-10 14:50:56 +03:00
Roman Telezhynskyi f98f897fd3 Resolved issue #193. Undeletable zombie arc objects.
--HG--
branch : develop
2016-04-10 14:48:34 +03:00
Roman Telezhynskyi 1d76a59ae7 Rotation VPointF, VArc, VCubicBezier and VCubicBezierPath.
--HG--
branch : feature
2016-04-10 14:40:04 +03:00
Roman Telezhynskyi a34d9ebde1 Updated measurement templates with all measurements. Added new template
Aldrich/Women measurements.
(grafted from 0c8e7ce25a9601d144397ebf1445b02feb189a9e)

--HG--
branch : develop
2016-04-08 13:21:26 +03:00
Roman Telezhynskyi f83c016c54 Updated description measurements N06 and N07. Add new measurements A23 and J10.
(grafted from cf140cecff83698ca48fcf563a5e8a857466f531)

--HG--
branch : develop
2016-04-08 13:21:18 +03:00
Roman Telezhynskyi 42e356ccbd New pattern format version 0.3.0.
--HG--
branch : feature
2016-04-07 19:56:41 +03:00
Roman Telezhynskyi 526363a84c Better look of group name.
--HG--
branch : feature
2016-04-07 19:56:06 +03:00
Roman Telezhynskyi be062fff7d Better tooltipe.
--HG--
branch : feature
2016-04-07 19:48:20 +03:00
Roman Telezhynskyi a0842b0f48 Merge with develop.
--HG--
branch : feature
2016-04-07 17:59:07 +03:00
Roman Telezhynskyi 48e411a3ce Working with group widget.
--HG--
branch : feature
2016-04-07 17:57:53 +03:00
Roman Telezhynskyi 85c45960e5 Removed button, added tooltipe.
--HG--
branch : develop
2016-04-07 13:11:21 +03:00
Roman Telezhynskyi 5697af33e8 Fixed tests.
--HG--
branch : develop
2016-04-07 12:35:08 +03:00
Roman Telezhynskyi 0759dba4ac GCC warnings.
--HG--
branch : develop
2016-04-07 12:33:34 +03:00
Roman Telezhinskyi 0b9562a3bd Merged in ValentinaZhuravska/valentina/feature (pull request #107)
We can add image to file.val

--HG--
branch : develop
2016-04-07 12:03:40 +03:00
Valentina Zhuravska d42a39de10 Disable save, show and delete actions when we have no image
--HG--
branch : feature
2016-04-07 03:20:15 +03:00
Valentina Zhuravska 5d38b188c4 Better looks if we have just one button "change image"
--HG--
branch : feature
2016-04-07 02:51:11 +03:00
Roman Telezhynskyi fe3bd88c17 Remember docks settings.
--HG--
branch : feature
2016-04-06 14:40:44 +03:00
Roman Telezhynskyi 9c63c4f794 The method SetGroupName.
--HG--
branch : feature
2016-04-06 12:36:33 +03:00
Roman Telezhynskyi a8feb5d0c0 New undo command DelGroup.
--HG--
branch : feature
2016-04-06 12:23:39 +03:00
Roman Telezhynskyi cb67249b54 New undo command Add Group.
--HG--
branch : feature
2016-04-06 12:03:34 +03:00
Valentina Zhuravska 8911fb5e11 Overrided setTagText method
--HG--
branch : feature
2016-04-06 05:34:08 +03:00
Valentina Zhuravska de221559f3 CheckTagExists returns QDomElement
--HG--
branch : feature
2016-04-06 05:31:42 +03:00
Valentina Zhuravska 9eeeb7baa8 Optimization
--HG--
branch : feature
2016-04-06 04:11:14 +03:00
Roman Telezhynskyi d73256f119 The method CreateGroup.
--HG--
branch : feature
2016-04-05 20:53:49 +03:00
Roman Telezhynskyi ada64305c0 Dialog Group.
--HG--
branch : feature
2016-04-05 20:14:12 +03:00
Valentina Zhuravska c002aec49a Little fixes
--HG--
branch : feature
2016-04-04 20:57:36 +03:00
Roman Telezhynskyi 844d3764c2 Group button.
--HG--
branch : feature
2016-04-04 18:03:40 +03:00
Roman Telezhynskyi b57354792c Fixed GUI issue. After full parse some widgets was incorrectly reseted.
(grafted from 49bad435c9e9a940fb91e6142cc0d9a951536f6a)

--HG--
branch : develop
2016-04-03 20:01:37 +03:00
Roman Telezhynskyi 297b32d5d9 Fixed issue #464. Crash. Issue with modeling node objects.
(grafted from 291ce7d161d51618e7164f6f7addb929e27ee8ac)

--HG--
branch : develop
2016-04-03 19:52:53 +03:00
Roman Telezhynskyi 371c352efc Tool "Curve intersect axis" store data about subpaths.
--HG--
branch : develop
2016-04-02 20:47:56 +03:00
Roman Telezhynskyi e3acc16a76 Resolved issue #444. Length along Path seems not valid.
--HG--
branch : develop
2016-04-02 20:47:04 +03:00
Roman Telezhynskyi 9470f76ba9 New method curve length by given point.
--HG--
branch : develop
2016-04-02 14:59:43 +03:00
Valentina Zhuravska 84d6e157bb Fixed InsertTag method
--HG--
branch : feature
2016-04-02 11:37:37 +03:00
Valentina Zhuravska 56db3f6f1a Optimization. Make const in InsertTag method
--HG--
branch : feature
2016-04-02 10:25:21 +03:00
Valentina Zhuravska ebab22d6ca Little fixes
--HG--
branch : feature
2016-04-02 03:00:00 +03:00
Roman Telezhynskyi c99cdb69ec Added new curve path segment variables.
--HG--
branch : develop
2016-04-02 00:15:04 +03:00
Roman Telezhynskyi d1480132a0 Don't separate data about spline and arc length and angles.
--HG--
branch : develop
2016-04-01 22:34:57 +03:00
Roman Telezhynskyi bb29984b4a Cut tools do not create subcurves anymore.
--HG--
branch : develop
2016-04-01 17:32:36 +03:00
Roman Telezhynskyi 9a6a5be59d No need anymore to disable the drawing of the selection border.
--HG--
branch : feature
2016-03-31 20:27:40 +03:00
Roman Telezhynskyi 9f5fd98865 Fixed tools Spline and Spline Path. For their work need section by mouse press
event, all other better work with mouse release event.

--HG--
branch : feature
2016-03-31 20:10:20 +03:00
Roman Telezhynskyi 351f01e0e3 Disable hover and selection when work with a tool.
--HG--
branch : feature
2016-03-31 17:01:41 +03:00
Roman Telezhynskyi 254ccf8f52 Toggle ScrollHandDrag mode by clicking a middle mouse button.
--HG--
branch : develop
2016-03-30 11:51:09 +03:00
Roman Telezhynskyi 77c09063ff Added horizontal scrolling by pressiong Shift + mouse wheel.
--HG--
branch : develop
2016-03-30 11:25:13 +03:00
Valentina Zhuravska 55a2da02cc Little optimization
--HG--
branch : feature
2016-03-29 01:08:07 +03:00
Roman Telezhynskyi 43660ce425 Fixed toolbar name.
--HG--
branch : develop
2016-03-28 23:24:33 +03:00
Roman Telezhynskyi e52fb734f0 Changed default layout settings.
--HG--
branch : develop
2016-03-28 17:19:29 +03:00
Roman Telezhynskyi 7328b207b7 The program crashed because of empty global contour.
--HG--
branch : develop
2016-03-28 17:18:38 +03:00
Roman Telezhynskyi 0d4c6c2208 By default user can select only labels by rubber band.
--HG--
branch : develop
2016-03-28 17:10:19 +03:00
Roman Telezhynskyi 2339a95585 Fixed broken redo/undo command moving of a label.
--HG--
branch : develop
2016-03-28 15:49:35 +03:00
Valentina Zhuravska bb98eeb54b Little fixes
--HG--
branch : feature
2016-03-28 13:08:20 +03:00
Roman Telezhynskyi 0c9b8453bf Optimization. No need to refresh a pattern when move a label.
--HG--
branch : develop
2016-03-28 12:21:24 +03:00
Roman Telezhynskyi 2e83967caf The layout generator optimization. Let QPainterPath check intersections.
--HG--
branch : develop
2016-03-28 11:53:02 +03:00
Roman Telezhynskyi dd586bf01e Little optimization for the layout generator.
--HG--
branch : develop
2016-03-28 11:22:15 +03:00
Roman Telezhynskyi 09d2b96e73 Endge of empty sheet shouldn't depend on shift value.
--HG--
branch : develop
2016-03-27 22:53:41 +03:00
Roman Telezhynskyi a2aaf0ccff GCC warnings.
--HG--
branch : develop
2016-03-27 19:35:55 +03:00
Roman Telezhynskyi c4ca41aa83 Fixed issue #463. Wrong export to DXF format.
(grafted from a2df4c627d50fcd0225cc63d924c065063af326f)

--HG--
branch : develop
2016-03-27 19:00:08 +03:00
Valentina Zhuravska b22c5b656a Fixed little bug when we try to save image
--HG--
branch : feature
2016-03-27 14:51:36 +03:00
Valentina Zhuravska e838ae811e Little fixes
--HG--
branch : feature
2016-03-27 14:39:52 +03:00
Valentina Zhuravska 5fda012b86 Added showImage to context menu
--HG--
branch : feature
2016-03-27 14:22:16 +03:00
Valentina Zhuravska ae53e505c4 Save image with correct extension
--HG--
branch : feature
2016-03-25 01:58:00 +02:00
Roman Telezhynskyi 0325e0a441 Changed code tree structure for visualization classes.
--HG--
branch : develop
2016-03-24 16:49:15 +02:00
Roman Telezhynskyi 70fd0be830 Use Q_REQUIRED_RESULT where it make sense.
--HG--
branch : develop
2016-03-23 17:27:17 +02:00
Roman Telezhynskyi be7277eeba Refactoring. Use more safe function VFuzzyComparePossibleNulls.
--HG--
branch : develop
2016-03-23 16:09:30 +02:00
Valentina Zhuravska fc27fa7fef Created a custom type imageExtension
--HG--
branch : feature
2016-03-23 14:32:15 +02:00
Roman Telezhynskyi 38dac0ada5 Small refactoring. Use M_2PI(2*pi), M_PI_2 (pi/2) and M_PI_4(pi/4) where
possible.

--HG--
branch : develop
2016-03-23 13:52:55 +02:00
Roman Telezhynskyi 910dadc871 New test. Check if epsilon value in method GetParmT() is enough for calculation.
--HG--
branch : develop
2016-03-23 13:23:03 +02:00
Valentina Zhuravska ecfdafddfc Little optimization
--HG--
branch : feature
2016-03-22 20:46:17 +02:00
Roman Telezhynskyi ff667c8602 The tool Detail now supports Cubic Bezier Path curve.
--HG--
branch : develop
2016-03-22 17:33:05 +02:00
Roman Telezhynskyi 4c1c0d4d0a Fixed empty point label in SplinePath name.
--HG--
branch : develop
2016-03-22 17:25:16 +02:00
Roman Telezhynskyi 2e0bf11261 The tool Cut Spline now supports Cubic Bezier Path curve.
--HG--
branch : develop
2016-03-22 17:14:53 +02:00
Valentina Zhuravska 1d959cb747 Now we can use PNG, JPG, JPEG and BMP images
--HG--
branch : feature
2016-03-22 12:18:05 +02:00
Roman Telezhynskyi baddba9e43 Resolved issue #366. Update 'Point from Distance and Angle' tool to read
distance and angle between points.

--HG--
branch : develop
2016-03-19 17:45:57 +02:00
Roman Telezhynskyi bd783d4df1 Check if next id is not bigger than UINT_MAX.
--HG--
branch : develop
2016-03-19 16:54:27 +02:00
Roman Telezhynskyi 02cb84c4a1 Show list of points from the begin of the list.
--HG--
branch : feature
2016-03-19 16:29:26 +02:00
Roman Telezhynskyi 505cec891d Several bug fixes.
--HG--
branch : feature
2016-03-19 16:20:09 +02:00
Roman Telezhynskyi 30ece7e856 Unfortunately we can't throw template. QGrapthisItem class is not reachable in
this case.

--HG--
branch : feature
2016-03-19 10:38:29 +02:00
Valentina Zhuravska 2efe06f444 Added tr for all strings
--HG--
branch : feature
2016-03-19 10:36:16 +02:00
Roman Telezhynskyi 19265e1f93 Succesful build.
--HG--
branch : feature
2016-03-18 23:11:14 +02:00
Valentina Zhuravska 7d8a959c56 Fixed size of imageLabel
--HG--
branch : feature
2016-03-18 20:23:42 +02:00
Valentina Zhuravska a2619d8584 Added saveImage button to context menu
--HG--
branch : feature
2016-03-18 20:23:19 +02:00
Roman Telezhynskyi ca020c4c7f Improved visualization for tool Cubic Bezier.
--HG--
branch : feature
2016-03-18 12:28:28 +02:00
Roman Telezhynskyi f61bd5f42a Skip history for Detail's mode tools.
--HG--
branch : feature
2016-03-18 12:27:20 +02:00
Roman Telezhynskyi 56496aaa59 Refactoring. More switch tests. Added tool button for tool Cubic bezier path.
--HG--
branch : feature
2016-03-17 20:12:48 +02:00
Roman Telezhynskyi 54294f1a71 Updated icon for tool Cubic Bezier curve.
--HG--
branch : feature
2016-03-17 16:35:14 +02:00
Valentina Zhuravska 58b1e84917 Added context menu
--HG--
branch : feature
2016-03-17 16:34:40 +02:00
Roman Telezhynskyi 037e91484a For tool Cubic Bezier curve show connection to control points.
--HG--
branch : feature
2016-03-17 16:26:25 +02:00
Roman Telezhynskyi 2c4312046c New classes VAbstractCubicBezierPath and VCubicBezierPath.
--HG--
branch : feature
2016-03-16 20:07:50 +02:00
Roman Telezhynskyi 4841123d40 Merge with develop.
--HG--
branch : feature
2016-03-16 14:13:48 +02:00
Roman Telezhynskyi c5c3862bfc More human readable angle of line.
--HG--
branch : develop
2016-03-16 14:09:56 +02:00
Valentina Zhuravska d2e0c7822f Added delete button
--HG--
branch : feature
2016-03-15 20:32:52 +02:00
Roman Telezhynskyi b99ca5de46 Merge with develop.
--HG--
branch : feature
2016-03-15 17:52:02 +02:00
Roman Telezhynskyi f5c5995117 Fixed issue with deleting detail nodes.
(grafted from dc69de0a2dd73ae3cbbc6ce6b7007407540e4c4c)

--HG--
branch : develop
2016-03-15 17:38:36 +02:00
Roman Telezhynskyi ba5ac8a04b Fixed issue #458. Issue with segment of curve.
(grafted from 4d70b5b863bcad171e8185265cdcf4e177c5c90d)

--HG--
branch : develop
2016-03-15 17:38:07 +02:00
Roman Telezhynskyi 4a9302ee4e For modeling no need to seek parent tool id.
(grafted from b84438717fd8436e747b3982461cee3c4124d935)

--HG--
branch : develop
2016-03-15 17:32:12 +02:00
Roman Telezhynskyi a56c3354e1 Better way to seek value of t.
--HG--
branch : develop
2016-03-15 17:31:58 +02:00
Valentina Zhuravska ae66acd4d6 Fixed schema version
--HG--
branch : feature
2016-03-13 21:13:58 +02:00
Roman Telezhynskyi 74c60d6008 Icons for tool Cubic Bezier Path.
--HG--
branch : feature
2016-03-13 16:51:25 +02:00
Roman Telezhynskyi a91112faee Refactoring.
--HG--
branch : develop
2016-03-13 16:22:15 +02:00
Roman Telezhynskyi 2201ca9ec0 This check helps to find missed tools in the switch.
--HG--
branch : develop
2016-03-13 16:16:49 +02:00