Commit Graph

6466 Commits

Author SHA1 Message Date
Roman Telezhynskyi
a009e25004 Fix (de)serialize enums into QDataStream.
It is very important to use exactly the same way across all Qt versions we need to support. Otherwise, it will break interchange between Valentina versions built on different Qt versions.
2020-05-09 12:36:03 +03:00
Roman Telezhynskyi
ab569feff8 Merge branch 'feature/manual-layout' into 'feature/manual-layout'
Work on the piece carrousel,  Feature/manual layout

See merge request smart-pattern/valentina!6
2020-05-02 07:51:52 +00:00
Ronan Le Tiec
e27e543fbc comments 2020-05-02 09:44:45 +02:00
Ronan Le Tiec
928c57f74b remove uncomment in LoadFile 2020-05-02 09:30:53 +02:00
Ronan Le Tiec
9a8fabc25e optimization current piece tab 2020-05-01 19:08:48 +02:00
Ronan Le Tiec
f5e325a235 Piece carrousel design and piece selection 2020-05-01 18:26:02 +02:00
Ronan Le Tiec
7bca5f41ec Optimize the carrousel piece fitInView 2020-04-26 22:32:08 +02:00
Ronan Le Tiec
4edcbfd0c5 work on the piece and carrousel 2020-04-26 15:36:20 +02:00
Ronan Le Tiec
39c889d43b Piece Name and UUID taken into account in *vlt reader / writer 2020-04-26 14:12:20 +02:00
Ronan Le Tiec
25cb7f9e6e Optimization piece carrousel 2020-04-26 14:03:43 +02:00
Ronan Le Tiec
bf09544d87 Piece Carrousel 2020-04-26 12:09:28 +02:00
Ronan Le Tiec
664c6dcd51 Typo 2020-04-24 17:25:43 +02:00
Ronan Le Tiec
1c598ab069 extend Q_ASSERT of ReadLayer function 2020-04-24 16:23:06 +02:00
Ronan Le Tiec
9c5b23e7eb Slot auto connection, name convention and comments 2020-04-24 16:10:42 +02:00
Roman Telezhynskyi
e09c8de9c8 Fix build on Mac OS X. 2020-04-23 21:17:49 +03:00
Roman Telezhynskyi
a6677523b8 Clang warnings. 2020-04-23 19:16:17 +03:00
Roman Telezhynskyi
b9c5aed236 Clang warnings. 2020-04-23 18:41:34 +03:00
Roman Telezhynskyi
e9f44d01e9 Cppcheck warning. 2020-04-23 18:09:48 +03:00
Roman Telezhynskyi
82ce2aadfe Added initial support for the manual layout format version converter. 2020-04-23 18:05:00 +03:00
Roman Telezhynskyi
aeebd2a095 Specialized methods to write attribute value.
Certain types must be treated in a certain way.
2020-04-23 17:24:06 +03:00
Roman Telezhynskyi
b2f26f02bc Specialized functions to read tag attributes.
Provide easier conversion, return default value if an attribute is not provided, throw exception in case of error.
2020-04-23 17:22:58 +03:00
Roman Telezhynskyi
dcfb00aec8 Fix warning about unsafe usage. 2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
61effa2a82 Define literals of each tags and attributes in manual layout format.
More efficient. A lot easier to maintain. Remove redundancy.
2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
8138c1b430 Disable copy methods as in parent class. 2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
abb0862c89 Cppcheck warning. 2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
a4e01d514b More issues with code style. 2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
222db34589 Fix potential memory leaks. 2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
55e4dceb06 Refactoring. Follow code style. 2020-04-23 15:51:07 +03:00
Roman Telezhynskyi
7a46b98f5b Use brace initialization to define default value for class members.
Requires less code.
2020-04-23 15:50:56 +03:00
Roman Telezhynskyi
d769e9d3e2 Use forward declaration where possible. 2020-04-23 15:50:56 +03:00
Roman Telezhynskyi
0e7149a695 Pass a variable as constant reference. 2020-04-23 15:50:56 +03:00
Roman Telezhynskyi
ffe8ffa322 Getters can be const. 2020-04-23 15:50:20 +03:00
Roman Telezhynskyi
a0fb0f8ee3 Merge branch 'feature/manual-layout' into 'feature/manual-layout'
Puzzle, work on the UI, the file reader and writer

See merge request smart-pattern/valentina!5
2020-04-23 08:04:43 +00:00
Ronan Le Tiec
828bd8dd3f Merge remote-tracking branch 'upstream/feature/manual-layout' into feature/manual-layout 2020-04-22 17:36:50 +02:00
Roman Telezhynskyi
b9fb53c21a GCC warnings. 2020-04-22 16:17:19 +03:00
Roman Telezhynskyi
46225d641d Merge branch 'develop' into feature/manual-layout 2020-04-22 15:14:50 +03:00
Roman Telezhynskyi
30a27ee85a UUID field for piece. 2020-04-22 14:32:25 +03:00
Roman Telezhynskyi
b2fd02b510 Reading the Raw Layout Data file in Puzzle. 2020-04-21 19:03:46 +03:00
Roman Telezhynskyi
3b37d22a0b Actions Open Puzzle, Create Manual Layout, Update Manual Layout in Valentina. 2020-04-21 19:02:21 +03:00
Roman Telezhynskyi
a9de60f515 Provide access to showHelp function. 2020-04-21 18:58:01 +03:00
Roman Telezhynskyi
3a675f0552 New default folder Manual layouts. 2020-04-21 18:57:11 +03:00
Ronan Le Tiec
f2ed6a12f2 Work on file opening and reader 2020-04-19 16:01:46 +02:00
Ronan Le Tiec
83f5d70f98 Persistence of Layout in UI 2020-04-19 12:47:38 +02:00
Ronan Le Tiec
8be95376f1 work on units, layout and reader 2020-04-19 11:58:43 +02:00
Ronan Le Tiec
c83ac5e493 Changes for vlt Format version 2020-04-19 10:38:28 +02:00
Ronan Le Tiec
9e2c0e9cc5 Work on the VPuzzleLayoutFileReader 2020-04-18 20:24:25 +02:00
Ronan Le Tiec
596707d5b1 Work on VPuzzleLayoutFileWriter 2020-04-18 16:32:54 +02:00
Ronan Le Tiec
13d42bfa62 Additional function in VPuzzleLayer 2020-04-18 12:12:04 +02:00
Ronan Le Tiec
cefb643d54 Definition of the VPuzzleLayer class 2020-04-18 11:54:34 +02:00
Ronan Le Tiec
213814f09f Small changes in VPuzzleLayout class 2020-04-18 11:31:55 +02:00