Commit graph

7395 commits

Author SHA1 Message Date
Roman Telezhynskyi bdceb76316 Fix matching new line character at the end of label. Closes smart-pattern/valentina#46.
Because Perl returns a string with a newline at the end when reading a line from a file, Perl’s regex engine matches $ at the position before the line break at the end of the string even when multi-line mode is turned off. Perl also matches $ at the very end of the string, regardless of whether that character is a line break. So ^\d+$ matches 123 whether the subject string is 123 or 123\n.

Most modern regex flavors have copied this behavior. That includes .NET, Java, PCRE, Delphi, PHP, and Python. This behavior is independent of any settings such as “multi-line mode”.

In all these flavors except Python, \Z also matches before the final line break. If you only want a match at the absolute very end of the string, use \z (lowercase z instead of uppercase Z). \A\d+\z does not match 123\n. \z matches after the line break, which is not matched by the shorthand character class.
2020-06-01 17:42:20 +03:00
Roman Telezhynskyi 2da8f70f86 Optimize tool box position for big screen resolutions. Closes smart-pattern/valentina#45.
Instead of forcing users to one possible choice add an option to control size policy for the tool box.
2020-06-01 12:21:09 +03:00
Roman Telezhynskyi 813e100bca Fix missed initialization for visibility categories for tool Visibility group. Closes smart-pattern/valentina#39. 2020-05-30 18:39:44 +03:00
Roman Telezhynskyi 42ed025afa Fix validation of Curved path tool. Closes smart-pattern/valentina#41. 2020-05-30 18:14:50 +03:00
Ronan Le Tiec af40b52988 Refactoring Piece carrousel part 2 2020-05-24 19:53:51 +02:00
Ronan Le Tiec f00168e59b Refactoring Piece carrousel 2020-05-24 14:55:03 +02:00
Ronan Le Tiec b4b77c4cdf Introducing VPSheet and refactoring part 3 2020-05-23 17:51:00 +02:00
Ronan Le Tiec 61a2e17a78 Introducing VPSheet and refactoring part 2 2020-05-23 17:47:04 +02:00
Ronan Le Tiec 803a7b6caa Introducing VPSheet and refactoring 2020-05-23 17:46:46 +02:00
Ronan Le Tiec 22a5e2094c Refactoring VPuzzleSettings 2020-05-23 15:44:44 +02:00
Ronan Le Tiec 83666c090f Refactoring VPuzzlePiece 2020-05-23 15:42:51 +02:00
Ronan Le Tiec 6079d69c93 Refactoring VPuzzleMimeDataPiece 2020-05-23 15:38:59 +02:00
Ronan Le Tiec 2accd83d6b Refactoring VPuzzleMainGraphicsView 2020-05-23 15:36:46 +02:00
Ronan Le Tiec 5e785bfa79 Refactoring VPuzzleLayout 2020-05-23 15:34:11 +02:00
Ronan Le Tiec 34b67cc6e3 Refactoring VPuzzleLayer 2020-05-23 15:29:57 +02:00
Ronan Le Tiec 45be7271bb Refactoring VPuzzleGraphicsPiece 2020-05-23 14:50:22 +02:00
Ronan Le Tiec e43f970ea8 Refactoring VPuzzleGraphicsLayout 2020-05-23 14:48:31 +02:00
Ronan Le Tiec 9e532edc1a Refactoring VPuzzleCommandLine 2020-05-23 14:43:57 +02:00
Ronan Le Tiec fb78189d29 Refactoring VPieceCarrouselPiecePreview 2020-05-23 14:39:31 +02:00
Ronan Le Tiec 510d1bd931 Refactoring VPieceCarrouselPiece 2020-05-23 14:36:35 +02:00
Ronan Le Tiec 8ca77baef0 Refactoring VPieceCarrouselLayer 2020-05-23 14:33:02 +02:00
Ronan Le Tiec 690606b4e5 Refactoring VPieceCarrousel 2020-05-23 14:29:18 +02:00
Ronan Le Tiec 74112a43ac Refactoring stable 2020-05-23 14:19:12 +02:00
Ronan Le Tiec 1079ef2add Refactoring PuzzleMainWindow 2020-05-23 14:17:20 +02:00
Ronan Le Tiec e816e4d5a1 Refactoring puzzlecommands 2020-05-23 14:12:07 +02:00
Ronan Le Tiec 5bd695b646 Refactoring PuzzleApplication 2020-05-23 14:10:05 +02:00
Ronan Le Tiec 04e97b6e74 Refactoring class comments 2020-05-23 14:04:39 +02:00
Ronan Le Tiec 13c060f2fc Refactoring VPuzzleLayoutFileWriter 2020-05-23 14:02:39 +02:00
Ronan Le Tiec d9e3a08eac Refactoring VPuzzleLayoutFileReader 2020-05-23 14:01:03 +02:00
Ronan Le Tiec 63d5ac0158 refactoring layoutliterals 2020-05-23 13:51:57 +02:00
Ronan Le Tiec 213863ae98 refactoring dialog about 2020-05-23 13:49:38 +02:00
Ronan Le Tiec e2cfe7d0cc Merge remote-tracking branch 'upstream/feature/manual-layout' into feature/manual-layout 2020-05-23 13:11:06 +02:00
Ronan Le Tiec ed3022ae51 isEmpty test of graphic piece 2020-05-23 13:10:25 +02:00
Roman Telezhynskyi beaedae7b5 Improve the property browser. Show full arc name.
(cherry picked from commit 590e0089da)
2020-05-13 17:53:08 +03:00
Roman Telezhynskyi 590e0089da Improve the property browser. Show full arc name. 2020-05-13 17:52:43 +03:00
Roman Telezhynskyi f1057de239 Redesign. Move initialization in ui file. Use QListWidget instead of a custom solution. Basic functions do not work yet. 2020-05-11 17:48:08 +03:00
Roman Telezhynskyi 5fc927b32a Since we store a dockwidget size no need to handle size manually. 2020-05-11 17:46:25 +03:00
Roman Telezhynskyi 56ec768777 GCC warning. 2020-05-11 17:44:53 +03:00
Roman Telezhynskyi 21dd764d53 Code style. 2020-05-11 17:44:30 +03:00
Roman Telezhynskyi 067dd637a7 Cppcheck warning. 2020-05-11 17:40:53 +03:00
Roman Telezhynskyi a89259d47d Fix issue with VMainGraphicsView. 2020-05-11 17:39:54 +03:00
Roman Telezhynskyi 19fd03b66e Read/write window state. Will help with setting the carousel size. 2020-05-10 18:38:06 +03:00
Roman Telezhynskyi c1051783f6 Fix code style. 2020-05-10 18:35:25 +03:00
Roman Telezhynskyi 7b1449f11e Redesign settings.
All apps settings classes moved to binaries. Use common part to get access from static libraries. Fixed issues with VMainGraphicsView class.
2020-05-10 18:32:26 +03:00
Roman Telezhynskyi 02b21d818f Use fuzzy functions to compare floats. 2020-05-10 11:51:54 +03:00
Roman Telezhynskyi 3e4b82b3cc Correct user defined export scale factor.
(cherry picked from commit dda789e444)
2020-05-10 11:28:36 +03:00
Roman Telezhynskyi e2ef71faf6 Fix default value for a export scale factor.
(cherry picked from commit 1f310c2c2c)
2020-05-10 11:28:28 +03:00
Roman Telezhynskyi ddd4d735e8 Merge branch 'feature/manual-layout' into 'feature/manual-layout'
Feature/manual layout app behaviour optimization

See merge request smart-pattern/valentina!7
2020-05-10 08:27:19 +00:00
Roman Telezhynskyi dda789e444 Correct user defined export scale factor. 2020-05-10 11:25:25 +03:00
Roman Telezhynskyi 1f310c2c2c Fix default value for a export scale factor. 2020-05-10 11:24:49 +03:00