Commit Graph

2187 Commits

Author SHA1 Message Date
Roman Telezhynskyi
c4262903d8 Clang warning.
--HG--
branch : develop
2017-08-21 18:59:11 +03:00
Roman Telezhynskyi
6a5e684d90 Fix conversion a piece label with multiple materials.
--HG--
branch : develop
2017-08-21 18:07:30 +03:00
Roman Telezhynskyi
ae870b8b2e Fix conflict of names.
--HG--
branch : develop
2017-08-21 17:10:55 +03:00
Roman Telezhynskyi
be83ff5a12 SonarQube warnings.
--HG--
branch : develop
2017-08-21 16:47:17 +03:00
Roman Telezhynskyi
31beeb0756 Clang warnings.
--HG--
branch : develop
2017-08-21 16:03:43 +03:00
Roman Telezhynskyi
c827152eb4 Fix error "QT_WARNING_PUSH does not name a type".
--HG--
branch : develop
2017-08-21 15:58:10 +03:00
Roman Telezhynskyi
3d9e4e7555 Promote QLineEdit to VLineEdit.
--HG--
branch : develop
2017-08-21 15:41:42 +03:00
Roman Telezhynskyi
be548269f6 Cppcheck warnings.
--HG--
branch : develop
2017-08-21 15:39:05 +03:00
Roman Telezhynskyi
20f5cb3694 Read measurements size and height from individual measurements file to insert
data into label template.

The size measurement was added as synonym of bust_arc_f.

--HG--
branch : feature
2017-08-21 14:25:27 +03:00
Roman Telezhynskyi
4841a7937d Refactoring. Remove unused method.
--HG--
branch : feature
2017-08-21 14:22:25 +03:00
Roman Telezhynskyi
acf429518d Added more additional Piece label fields.
--HG--
branch : feature
2017-08-21 13:16:43 +03:00
Roman Telezhynskyi
03e1256952 Removed unused field from preferences.
--HG--
branch : feature
2017-08-19 20:17:51 +03:00
Roman Telezhynskyi
464a54c7ee Update label after changing date/time format.
--HG--
branch : feature
2017-08-19 19:52:33 +03:00
Roman Telezhynskyi
6d06370f4f Use user define date/time format.
--HG--
branch : feature
2017-08-19 19:37:14 +03:00
Roman Telezhynskyi
a8d8efd889 Dialog DateTimeEditor.
--HG--
branch : feature
2017-08-19 19:10:57 +03:00
Roman Telezhynskyi
db6de640ce Fix crash.
--HG--
branch : feature
2017-08-18 14:56:31 +03:00
Roman Telezhynskyi
5961f52a73 Fix label conversion.
--HG--
branch : feature
2017-08-18 14:56:18 +03:00
Roman Telezhynskyi
f07fd426dd Clearing old code.
--HG--
branch : feature
2017-08-18 14:22:31 +03:00
Roman Telezhynskyi
96df1db48e Cleaning GUI.
--HG--
branch : feature
2017-08-18 09:25:57 +03:00
Roman Telezhynskyi
12fa4399e8 Convert piece label to new format.
--HG--
branch : feature
2017-08-18 09:02:03 +03:00
Roman Telezhynskyi
ae78373f88 Read/write piece label.
--HG--
branch : feature
2017-08-18 07:59:47 +03:00
Roman Telezhynskyi
c368a956b8 Fix bug. Changing pattern or measurements file name do not imidiatelly update
pattern label.

--HG--
branch : feature
2017-08-17 19:57:46 +03:00
Roman Telezhynskyi
d6898af23e Refactoring. Rename method.
--HG--
branch : feature
2017-08-17 19:42:48 +03:00
Roman Telezhynskyi
09c67a099a UI changes for piece label.
--HG--
branch : feature
2017-08-17 19:18:03 +03:00
Roman Telezhynskyi
6d967cddf8 Fix bug. Tags should contain only file base name.
--HG--
branch : feature
2017-08-17 16:04:52 +03:00
Roman Telezhynskyi
bc36e9bac3 Clear unused tags from code.
--HG--
branch : feature
2017-08-16 16:56:07 +03:00
Roman Telezhynskyi
3cd0c10f07 Convert old pattern label to new form.
--HG--
branch : feature
2017-08-16 16:39:16 +03:00
Roman Telezhynskyi
af5c82bdf6 Test to be sure that translation of placeholders are correct.
--HG--
branch : feature
2017-08-16 13:09:29 +03:00
Roman Telezhynskyi
4d58e05f3e New option Font size increment.
Add value to point size of base font.

--HG--
branch : feature
2017-08-15 18:10:15 +03:00
Roman Telezhynskyi
b212d04d11 Parse template and prepare pattern label.
--HG--
branch : feature
2017-08-15 15:22:33 +03:00
Roman Telezhynskyi
b80bd85dec Just replace() method is enough. It replaces all occurrences.
--HG--
branch : feature
2017-08-15 15:21:31 +03:00
Roman Telezhynskyi
3b60eaff08 List to speed up reading a template by many pieces.
--HG--
branch : feature
2017-08-15 11:38:36 +03:00
Roman Telezhynskyi
882cf360e2 We use implicit conversion. That's why check if values are still the same as
excpected.

--HG--
branch : feature
2017-08-15 11:23:48 +03:00
Roman Telezhynskyi
cd06b70c6f New pattern format version 0.6.0.
--HG--
branch : feature
2017-08-15 11:17:54 +03:00
Roman Telezhynskyi
8466e84eef Read/Write pattern label.
--HG--
branch : feature
2017-08-15 10:44:00 +03:00
Roman Telezhynskyi
b9bd1b60e4 Method SetTemplate.
--HG--
branch : feature
2017-08-14 20:00:19 +03:00
Roman Telezhynskyi
d5c2b1b50d GetTemplate after editing.
--HG--
branch : feature
2017-08-14 19:34:33 +03:00
Roman Telezhynskyi
0f4c993c83 Added default pattern label template.
--HG--
branch : feature
2017-08-14 17:17:40 +03:00
Roman Telezhynskyi
5a649d4747 Fix bug translation placeholders.
--HG--
branch : feature
2017-08-14 17:13:16 +03:00
Roman Telezhynskyi
0b3342fe3d Translation from/to user text.
--HG--
branch : feature
2017-08-14 15:48:14 +03:00
Roman Telezhynskyi
89ed92e93f Added more placeholders.
--HG--
branch : feature
2017-08-14 15:11:14 +03:00
Roman Telezhynskyi
4aa002f510 Added Preview tab.
--HG--
branch : feature
2017-08-12 13:19:13 +03:00
Roman Telezhynskyi
0c13d610eb Еext in QLineEdit selected on edit start.
--HG--
branch : feature
2017-08-12 11:57:46 +03:00
Roman Telezhynskyi
d81be4f778 Added placeholders list.
--HG--
branch : feature
2017-08-12 11:40:58 +03:00
Roman Telezhynskyi
9202418d7c Fix bug. Values "0" and "1" mean for us the same.
--HG--
branch : feature
2017-08-10 19:36:31 +03:00
Roman Telezhynskyi
c989cdf048 Added import the template.
--HG--
branch : feature
2017-08-10 19:32:05 +03:00
Roman Telezhynskyi
bc96184617 Merge with develop.
--HG--
branch : feature
2017-08-10 17:14:57 +03:00
Roman Telezhynskyi
b4c0651de4 Added export the template.
--HG--
branch : feature
2017-08-10 17:14:39 +03:00
Roman Telezhynskyi
d91f32be02 Proposed to always use mm as the default DXF export unit. ref #745.
--HG--
branch : develop
2017-08-10 16:50:10 +03:00
Roman Telezhynskyi
209a281cdc New standard path for label templates.
--HG--
branch : feature
2017-08-10 14:51:17 +03:00
Roman Telezhynskyi
7f570106db Finished basic functions.
--HG--
branch : feature
2017-08-10 14:47:56 +03:00
Roman Telezhynskyi
7b13020e4e Button to call Label editor.
--HG--
branch : feature
2017-08-09 19:32:14 +03:00
Roman Telezhynskyi
80f6a5a7d1 Redesign. The Label editor should be in separate dialog window.
--HG--
branch : feature
2017-08-09 17:33:20 +03:00
Roman Telezhynskyi
56bb45aee7 Added new icons to local icon theme.
--HG--
branch : feature
2017-08-09 14:17:21 +03:00
Roman Telezhynskyi
5fa0324185 Fix translation elarc variables.
--HG--
branch : develop
2017-08-08 18:27:36 +03:00
Roman Telezhynskyi
16ec3a3ea8 User should be able to rename increments.
--HG--
branch : develop
2017-08-08 17:43:41 +03:00
Roman Telezhynskyi
6f5199c5d1 Performance optimization.
--HG--
branch : develop
2017-08-05 11:03:19 +03:00
Roman Telezhynskyi
cc2b991e78 Performance optimization.
--HG--
branch : develop
2017-08-05 08:45:37 +03:00
Roman Telezhynskyi
8dc5b739ad Cppcheck warning.
--HG--
branch : develop
2017-08-04 22:50:06 +03:00
Roman Telezhynskyi
0cea5c3347 Performance optimization.
--HG--
branch : develop
2017-08-04 21:25:59 +03:00
Roman Telezhynskyi
0a500c52dd Performance improvement.
--HG--
branch : develop
2017-08-04 20:46:11 +03:00
Roman Telezhynskyi
3999ebd82e Fixed bug in Tape. Each Window should has own size and height values.
--HG--
branch : develop
2017-08-04 20:29:43 +03:00
Roman Telezhynskyi
825b0b1431 Don't need to prepare increments because they do not support multi size
measurements anymore.
(grafted from ca88ea9874acb7e08edafe84ca716e58b6e4b05e)

--HG--
branch : develop
2017-08-04 13:05:48 +03:00
Roman Telezhynskyi
474c0949e2 Fix translation variables.
(grafted from dff11ab321d8eb16de58f01b70913190f527809c)

--HG--
branch : develop
2017-08-04 10:28:44 +03:00
Roman Telezhynskyi
2be8bf2206 Fix bug. Set correct brush pattern for seam allowance.
--HG--
branch : develop
2017-08-03 15:59:16 +03:00
Roman Telezhynskyi
349a5cade0 Fixed issue #743. Valentina doesn't update update pattern after adding item.
(grafted from 9488967913032bb6c97488a8540309db771e7728)

--HG--
branch : develop
2017-08-03 15:25:14 +03:00
Roman Telezhynskyi
9acaaffce5 Fixed issue #742. Valentina produces wrong seam allowance.
(grafted from e5047109085c16f09270349bc020dbabfb64505f)

--HG--
branch : develop
2017-08-03 13:43:25 +03:00
Roman Telezhynskyi
4914d2c3e7 Fix grainline orientation in AAMA.
--HG--
branch : develop
2017-08-02 17:04:31 +03:00
Roman Telezhynskyi
07a7b033b7 Performance improvement. Speed up method VDomDocument::elementById.
Use integer key instead of string.

--HG--
branch : develop
2017-08-02 14:40:17 +03:00
Roman Telezhynskyi
7734b7a59d Refactoring. Remove unused method.
--HG--
branch : develop
2017-08-02 14:11:03 +03:00
Roman Telezhynskyi
acc340bff1 Performance improvement. Speed up method VDomDocument::elementById.
--HG--
branch : develop
2017-08-02 14:10:10 +03:00
Roman Telezhynskyi
ca66c8ebe2 Improve performance. Calling method RefreshDataInFile() slows down parsing.
--HG--
branch : develop
2017-08-02 11:34:44 +03:00
Roman Telezhynskyi
0894f686ef Improve working with mouse cursors. Instead of setting global value set cursor
for each item separately.

--HG--
branch : develop
2017-08-01 14:35:48 +03:00
Roman Telezhynskyi
145a0923cb NodePoint also should show a context menu of piece.
--HG--
branch : develop
2017-08-01 13:04:47 +03:00
Roman Telezhynskyi
c822464064 Fix bug. Hiding a main path making impossible to move a piece.
--HG--
branch : develop
2017-08-01 12:59:31 +03:00
Roman Telezhynskyi
651d22e488 Fix regression. Heavy method boundingRect() slows down the Details mode.
--HG--
branch : develop
2017-08-01 12:57:19 +03:00
Roman Telezhynskyi
a9367f7ae6 Prevent memory leak.
--HG--
branch : develop
2017-07-27 21:04:13 +03:00
Roman Telezhynskyi
b0348cbe9f Fixed issue #729. Moved Bezier curves can't be rotated.
(grafted from f22c4df1ff3a5d20398f3d07ed02e0c2e1847a3b)

--HG--
branch : develop
2017-07-27 18:20:21 +03:00
Roman Telezhynskyi
d8c5fafbc3 Refactoring.
--HG--
branch : develop
2017-07-27 17:43:10 +03:00
Roman Telezhynskyi
185636a550 Fix bug with simple curve. It should be hovered only if mouse pointer above a
path.

--HG--
branch : develop
2017-07-27 17:15:53 +03:00
Roman Telezhynskyi
d0e2facf94 Show direction when hover simple curve.
--HG--
branch : develop
2017-07-27 16:25:24 +03:00
Roman Telezhynskyi
139efc6b16 Fixed issue #738. Bug in transformation over arc and elliptical arc.
(grafted from 2274a082bae53cd5e10866c630e9446a1bcdaac1)

--HG--
branch : develop
2017-07-27 16:01:18 +03:00
Roman Telezhynskyi
d9f93a28e4 Regular expression should support french names.
--HG--
branch : develop
2017-07-26 20:58:37 +03:00
Roman Telezhynskyi
08945f71f2 Fix build on Windows.
--HG--
branch : develop
2017-07-26 20:13:15 +03:00
Roman Telezhynskyi
f9f241ac25 Fix variable name regular expression.
Forbid characters "." and ",".

--HG--
branch : develop
2017-07-26 19:28:26 +03:00
Roman Telezhynskyi
f648860c69 Fixed issue #737. Valentina produces corrupted file if unite two pieces with
pins.
(grafted from 0c048c920b8b495e756d87df63133187151e21e9)

--HG--
branch : develop
2017-07-26 13:56:19 +03:00
Roman Telezhynskyi
4636215929 Fix bug in exception "Bad id".
Local variable hides class member.
(grafted from acb225f6c0ffc307f185f993feebfdaed79bd43b)

--HG--
branch : develop
2017-07-26 11:56:16 +03:00
Roman Telezhynskyi
457c27dbda Fix Valentina crash.
Valentina crashes after uniting two pieces.

--HG--
branch : develop
2017-07-26 11:54:06 +03:00
Roman Telezhynskyi
1fff49936b Return resizing Increments Dialog.
--HG--
branch : develop
2017-07-26 09:13:29 +03:00
Roman Telezhynskyi
4d7d2ac607 Fix Valentina crash.
Valentina crashes if click on curve control point.

--HG--
branch : develop
2017-07-25 21:56:01 +03:00
Roman Telezhynskyi
99de6f8e22 Fix wrong piece bounding rect if disable a main path.
--HG--
branch : develop
2017-07-25 16:33:50 +03:00
Roman Telezhynskyi
ecb62110cb Fixed bug. Tape app saved default size value in wrong place.
(grafted from 25b8894231625632bc23776cb7fc59ac30a462cd)

--HG--
branch : develop
2017-07-24 20:59:38 +03:00
Roman Telezhynskyi
f69dabe007 Fixed Valentina crash. Used way to avoid Qt's bug QTBUG-61213.
(grafted from 07ea72e1470337f51b895efaae01deecfbac6aaf)

--HG--
branch : develop
2017-07-24 20:00:59 +03:00
Roman Telezhynskyi
a6bafb77e1 Resolved issue #734. Optimization. Stop increments/variables table from
updating immediately.

--HG--
branch : develop
2017-07-23 16:52:57 +03:00
Roman Telezhynskyi
51f89c9799 Do not round a piece data when export.
--HG--
branch : develop
2017-07-21 14:31:47 +03:00
Roman Telezhynskyi
a6976fd1ee Fix details position if export from Detail mode. red #391.
--HG--
branch : develop
2017-07-20 19:14:19 +03:00
Roman Telezhynskyi
d09de4155b Added new option for Internal path. ref #391.
This option is nedded for AAMA to determine a cut contour.

--HG--
branch : develop
2017-07-20 17:38:56 +03:00
Roman Telezhynskyi
83251364b0 Fix broken building on Windows.
--HG--
branch : develop
2017-07-20 14:21:14 +03:00
Roman Telezhynskyi
45f860e9b3 By default internal paths should be in draw mode.
--HG--
branch : feature
2017-07-19 10:35:00 +03:00
Roman Telezhynskyi
9ae393a462 For AAMA layer 1 must be default.
--HG--
branch : feature
2017-07-19 10:34:24 +03:00